Create a DataVIew WebPart page by following guide :
1. Go to the SharePoint Site using SharePoint Designer.
2. Create a ASPX page
a. File > New > ASPX > OK
3. Inherit the MasterPage
a. Format > MasterPage > Attach Master Page … > custom Masterpage > /_catalogs/masterpage/xxx.master
4. Create on the arrow on the maincontent placeholder > Create Custom Content
5. Add WebPart Zone
a. Insert > SharepointControl > WebpartZone
6. Add Data View Webpart
a. Insert > SharepointControl > DataView
7. Drag “ListName” List to the DataView WebPart
8. Do Styling and Filtering Accordingly.
b. These lists contain folder, in order achieve to see the file only, the scope need to be defined as Recursive. To do that, just click on the current Data Source: on the position top right, and then select Recursive from Item and folder scope. Please apply this for both history and history details page in this case.
c. For the first field please custom it as <a href="<DetailsPage>.aspx?ItemId={@ID}"><xsl:value-of select="@Title" /></a> in your code behind.
d. Set the filter to only Created by equal to [Current User].
9. Now repeat step 1 to step 8 to create history detail page, note that the layout and column display is different.
10. Add a parameter to the DataView Webpart.
11. Set Filter ID field equal to [ItemId]
12. Save it and test on it.
14. Happy Coding !
No comments:
Post a Comment