Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Using list TITLE instead of ID in Data View WebParts

  Asked By: Zackary    Date: Feb 20    Category: Sharepoint    Views: 1697

Is it possible to use the list's Title (or relative URL) in the query of
a Data View WebPart

So something like:
<dsp:dsQuery select="/list[@name='announcements']"

<dsp:dsQuery select="/list[@DefaultViewUrl
='sites/customers/announcements']"

instead of the ID
<dsp:dsQuery select="/list[@id
='{AB368D6C-7EAD-46F8-8865-AF1053F0BAFE}']"


I tried these selects, but FP then tells met I have a syntax error.

I think this will help many, since it makes DVWP webparts more portable

Any help will be appreciated.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Using list TITLE instead of ID in Data View WebParts Or get search suggestion and latest updates.




Tagged: