Tag Info

New answers tagged

0

Have you validated the field is being pulled into your view by dropping it in an xsl:value-of select="@fieldname" You could also use identity transform as your xsl to validate the variable is coming through and the value. http://en.m.wikipedia.org/wiki/Identity_transform


1

Your data view web part will only refresh on page load by default. Since your code runs in response to a button click, modifying the data, your data view is now displaying stale data that is no longer accurate. There are three ways you can handle this: Refresh the page. i.e. window.location = window.location;. This is easy to accomplish, and guaranteed ...


1

Regarding your first question: you can also use PowerShell to accomplish this. Powershell has built in cmdlets to open and process XML and the SharePoint cmdlets will allow you to easily insert this data into a list. This snippet shows how easy it can be: Use the [XML] type accelerator to convert results from Get-Content into an XML document, and then ...


0

You can get a list description of the code: public String GetDescriptionList(SPList list) { return list.Description; } public String GetDescriptionList(SPWeb web, String listName) { return GetDescriptionList(web.Lists[listName]); }


0

There is not a way to do this out of the box. You will need to do this using the API or Web Services. Your code would parse the XML and then create a list with the required columns based off of the nodes in your file. OR you can open the excel file with your xml content,then you can import the same excel sheet to sharepoint list as well. Source



Top 50 recent answers are included