Tag Info

New answers tagged

0

Hi Aparna, You can create a condition to test for no rows count($Rows) = 0 Then put this into a choose block <xsl:choose> <xsl:when test="count($Rows) = 0"> <span>No items</span> </xsl:when> <xsl:otherwise> <!--Things to do when there are rows --> </xsl:otherwise> ...


-1

The "Add new Announcement" link on the Announcements web part will only show up for people that have "Write" permissions for the site anyway. For example: I have full control along with 2 others, everyone else that uses the site has Read/View Only permissions so cannot update the web part. So if you "Copy Shortcut" on the "Add an announcement" link and then ...


0

OK, figured it out. The function is DeselectAllWPItems() in core.js. The following code (you have to make sure core.js is already loaded using either ExecuteOrDelayUntilScriptLoaded or something similar). In my case I have actions which fire when the first item is selected so I apply it then. The key for me was using the debug versions of the ...


0

Add the List View Web Part to a page, set the properties how you want them, and then export the XML using the web part's dropdown menu. If Export isn't included in the menu, change the Export Mode property (Advanced tab) of the Web Part.


0

Got a hint from this How to add a listviewwebpart by code AddWebPart doesn't require SaveChanges call, so I called another function after adding all the webparts to SaveChanges and it helped. function SaveChanges($siteUrl, $pageUrl,$viewName) { $web = Get-SPWeb $siteUrl $publishingWeb = ...


0

Add the xsltlistviewwebpart in your .aspx page. <WebPartPages:XsltListViewWebPart runat="server" IsIncluded="True" GhostedXslLink="main.xsl" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="My Request" PageType="PAGE_NORMALVIEW" Default="FALSE" ...



Top 50 recent answers are included