Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

ProjectProperty and ListProperty with CrossListQueryInfo

  Asked By: Heriberto Robles         Date: Jul 18, 2009      Category: Sharepoint      Views: 1100
 

I am running a CrossListQueryInfo and the ViewFields for the CAML includes

<ProjectProperty Name="Title"/>
<ProjectProperty Name="Url"/>
<ListProperty Name="Title"/>
<ListProperty Name="DefaultViewUrl"/>

I am getting empty values for Url and DefaultViewUrl, although it is returning
Titles correctly. Is this some limitation or I am missing the trick.


 

1 Answer Found

 
Answer #1       Answered By: Carsten Winsnes          Answered On: Feb 04, 2012       

Same here. I was not able to get a value from ProjectProperty.URL. You might get a WebId back and then can convert that to the URL. Not the most efficient way, but one way.

string fullUrl = site.AllWebs[new Guid(resultRow["WebId"].ToString())].Url;

 
Didn't find what you were looking for? Find more on ProjectProperty and ListProperty with CrossListQueryInfo Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].