Quantcast
Viewing all articles
Browse latest Browse all 10045

How to pass report parameter to Sharepoint GetListItem CAML query

Hi,

I need to pass Report Parameter to CAML query using GetListItems using web service and the connection type is "XML".

Following is my CMAL query that i am using to pass report parameter

<Parameter Name="query" Type="xml">
       <DefaultValue>
     <Query>
  <Where>
  <Eq>
     <FieldRef Name="Region" />
          <Value Type="Text">=CStr(Parameters!Region.Value)</Value>
  </Eq>
  </Where>
     </Query>
     </DefaultValue>
  </Parameter>

I tried following variations, as referred above in this thread

<Value Type="Text">=CStr(Parameters!Region.Value)</Value>

<Value Type="Text">" & CStr(Parameters!Region.Value) & "</Value>

<Value Type="Text">Parameters!Region.Value</Value>

<Value Type="Text">Str(Parameters!Region.Value)</Value>

<Value Type="Text">" & Str(Parameters!Region.Value) & "</Value>

<Value Type="Text">=Parameters!Region.Value</Value>

however none of them worked.

Any suggestions on this would be highly appreciated


Regards, Ketan Gandhi


Viewing all articles
Browse latest Browse all 10045

Trending Articles