Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
20

Since you are using SharePoint 2013 I would recommend you to consider the following approach. In SharePoint 2013 was introduced a so called Client Rendering Mode (CSR) which is intended for rendering of List Views and Forms using HTML and JavaScript and which is a default rendering mode. About View selector menu As part of CSR ClientPivotControl control (...


9

I'm not sure if XSLT 1.0 have today's date method. However, XSLT 2.0 has an equivalent current-date() Have you tried? ddwrt:Today() <xsl:value-of select="ddwrt:Today()"/> ddwrt:TodayIso() <xsl:value-of select="ddwrt:FormatDateTime(ddwrt:Today(),1033,'yyyyMMdd')"/>


8

When you add a DVWP to the page in SharePoint Designer, SPD defined a variable which contains the current date for you in the ParameterBindings section: <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/> Be sure to declare Today as a param at the top of the stylesheet: <xsl:param name="Today" /> Then you can ...


6

This blog post from Microsoft is highly linked to and describes what you want to do. I've used it before, these days I typically use jQuery and SPServices. Setting lookups typically requires you to pass in the Lookup ID value or the ID;Descriptor. Here's an actual example from a site of mine, it's setting a person/group field, not a lookup though. You ...


6

I do not think that can be done. It shows the 4th view only once we click on it. (Dynamic HTML) But I found a workaround. Go to Edit Page. Click on Add web part and add a content editor with the links to all 4 views. Edit list view web part and disable the view selector menu. Also if needed, set tool bar to no tool bar and remove search. (Look where to ...


5

If you are using SP2010 you can connect to a SQL Server table using BCS External Content types and read/write them pretty easily. What version of SharePoint are you using?


5

On your DVWP field, do you have disable-output-escaping="yes" added to the xslt reference for that item? This will display apostrophe's and ampersands properly.


5

It's rendering as HTML character code. Check out this article: http://www.petestilgoe.com/2010/07/displaying-html-in-the-dataview-webpart-dvwp/ The article suggests changing your XSL to: xsl:value-of disable-output-escaping="yes" select="@MyHTMLFormattedColumn"


5

You don't need to manipulate the web part settings manually in the code. These settings are also available on the ribbon. Select the DVWP in SharePoint Designer 2010 in Design View and then use the Paging command on the Options ribbon of the Data View Tools:


4

If you use a Dataview Webpart of one site in another site, It will not work as it refers sites and lists by GUIDs which will change even if their name are same. Try to update the GUIDs as well.


4

In the Ajax properties of the webpart, uncheck "enable asynchronous update" (the text may be slightly different, Im working with SP with Spanish language pack)


4

Basically, it can be done with css with header and table changing: .s4-wpTopTable { background: #FEE; } .ms-WPHeader { background: #FEE; } If you want to apply this to particular web-part, you can add additional css-marker class on you web-part render methods to find you web part instance later or use js/jQuery-client bases techniques to apply/change ...


4

Use this: <xsl:value-of select="substring-after(@Manufacturer.,'#')"/> instead of <xsl:value-of select="Manufacturer."/> for the look up column


4

The master page of the mysite is the normal v4.master and doesn't load any user profile. There is a web control in every article page in the mysite that makes sure the profile gets loaded. <SPSWC:ProfilePropertyLoader id="m_objLoader" LoadFullProfileOfCurrentUser="true" runat="server" /> If you like to get this done in the masterpage you need to add ...


3

Try using the "disable-outscape-escaping" property after xsl:value-of select="@YourField" like this: xsl:value-of select="@Body" disable-output-escaping="yes"


3

You can add the additional filter clause inside the brackets with and. If both conditions are true, the row (item) will be included in the sum. @Author is a Person or Group column, so you'll need to parse out the part of the HTML which represents the person that you need. See my XSL templates at the SPXSLT Codeplex Project (http://SPXSLT.codeplex.com).


3

Solved this by using one of these links with the title. Link to view item in popup window <a href="javascript:OpenPopUpPage('{@FileDirRef}/DispForm.aspx?ID={@ID}');"><xsl:value-of select="@Title"/></a> View item without popup. The GoToLink adds "source" to URL so it will return to the site with the link. <a href="{@FileDirRef}/...


3

You need to modify the XSLT generated to create your custom look. Once you add your DVWP, SPD adds the XSLT to the page. If you switch to split view, you can click your DVWP, and the code block will be highlighted. Before you modify the XSL directly, there are a couple of things you can do to make it easier. Select the base layout that is closest to ...


3

Sounds like you need to change your ReadItem operation to include all fields that are provided in your various views (ReadList) operations. To put it simply ReadItem should provide the full set of fields for use in the list.


3

Assuming you already have a working data view webpart: Open SharePoint designer and the page that the data view web part exists on From the Options tab of the Data View Tools section in the ribbon, select Parameters Create a new parameter of type Query String - specifiy the parameter name, the query string variable name (what its called in the URL), and ...


3

Your nearly there its just the syntax of the parameter filter. Try:- <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[ActiveStatus='Yes']"/> There are some good examples in this MSDN article. http://msdn.microsoft.com/en-us/library/ms950787.aspx


3

I think the friendly URL is stored in the catalog, not the page itself. You'd probably be better off using a Content Search Web Part (in most cases). It's the "new" way to do DVWP-like stuff, but it's also different tech than you are used to. You can build your own Display Template that sits underneath the CSWP to display the data.


3

With a little help from the guys over at stackoverflow I got this figured out. Putting a handler on the <a> tag that stops event propagation. What I added: groupby.find("a").click(function(e) { e.stopPropagation(); }); What it all looks like: $(document).ready(function() { var groupby = $(".ms-gb"); groupby.click(function(){ ...


3

From MSDN for SharePoint 2013. If you want complete control over how a Web Part appears on your site, and if you want that Web Part to appear on all pages of a certain type, add the Web Part directly to a page layout. If you want a Web Part to appear on all pages in a site, you can also add a Web Part directly to a master page. Try with this ...


3

One way to deal with the issue is by utilizing the content by search and filters/refiners. You can also create a result source which retrieves the indexed results from the specified list. If your columns in a list were created as a site column, it will automatically have crawled properties. You can use 'RefinableString' property and map your indexed crawled ...


2

I'm going to answer this as this is the only outcome, last name, first name. If anyone comes across any other definitive information on this and ways to output it, I'll unmark this as the answer and award them the points.


2

To do this, you need think about how XSL works, it basically does pattern matching and uses that to process node sets. So you basically have 2 patterns, rows of users and columns of statuses. Getting the rows is easy (i.e. the default), but for the columns you need a second pattern: the distinct set of statuses. I would go about this by performing the ...


2

The path turned out to be a lot more tortured than I thought. Thanks to one of Gary Lapointe's SP2010 cmdlets (Replace-SPWebPartContent), I was able to see and step through a working example with source code. To make a long story short, checking out the current page causes the Limited Web Part Manager to lose track of who exactly has this page. To rectify ...


2

I've had issues using the xsl:import before when I am importing items that are in a SharePoint library. If I'm importing a file from the filesystem then I have no trouble; but from the Style Library for example I get an error about not being able to load the XSL file (in the ULS Logs). If you are unable to deploy your XSL to the filesystem then I think the ...


Only top voted, non community-wiki answers of a minimum length are eligible