A data view web part is very useful when comes to SharePoint display forms customization. You can add this web part by using the SharePoint designer tool.
1. Insert a data view web part onto the page you want to display in the list by selecting Data View > Insert Data View from the main menu.
2. Using the Data Source Library Task Pane in SharePoint designer select ‘Connect to another library‘ and browse to the site that contains the list you wish to display.
3. Expand the new site in the Data Source Library Task Pane and select the list or library that contains the information you wish to display. From the drop down select ‘Show Data‘ to populate the Data Preview tab.
4. From the list of columns, select the ones that you wish to display and select ‘Insert selected fields as multiple item view from the drop down menu at the top of the window. This will populate the data view with sample information (in a table by default). At this stage you may get an error in the design view that states:
“The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator”.
This can be corrected by modifying the
tag of the
element of the data view to contain the reletive url of the site for the WebUrl parameter (look at the default parameters to find this out – should be something similar to ‘/news/’).
No comments:
Post a Comment