dataviewwebpart - How to query a list by name using the SharePoint DataView Web Part? -



dataviewwebpart - How to query a list by name using the SharePoint DataView Web Part? -

i have multiple dataview web parts getting items list in sharepoint 2010. web parts in subweb , info list in root web. can web part work fine specifying id of list:

<dsp:dsquery select="/list[@id='guid goes here']" resultcontent="both" resultroot="rows" resultrow="row" columnmapping="attribute">

however! cannot utilize method of selecting list id because using export-spweb/import-spweb , moving subwebs different location (this command re-assigns ids... after export/import web parts break). want select list more definite... below (which not work):

<dsp:dsquery select="/list[@name='list name goes here']" resultcontent="both" resultroot="rows" resultrow="row" columnmapping="attribute">

to summarize, need dataview web parts utilize dsquery goes list name , not id. has done before or stuck editing hundreds of web parts' ids? awful =)

any help appreciated!

you can changing list guids list name. here example: http://salaudeen.blogspot.com/2012/02/how-to-make-dataview-portable.html

sharepoint dataviewwebpart

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -