New answers tagged

-1

Please keep in mind that <where> or &lt;Where&gt; tag should go on the same line with <property name="QueryOverride" type="string"> like this <property name="QueryOverride" type="string">&lt;Where&gt; &lt;Or&gt; &lt;Eq&gt; &lt;FieldRef Name="AssignedTo"/&gt; ...


0

I use custom webservice at the every site collection to get query results and webpart with datagrid to show it together


0

You shall prefer content search web part over content query that will work better.


0

I would highly suggest using CamlDesigner. I don't want to go through your caml query because your formatting is horrendous. Please clean that up if you want us to look at it. Here is an example Caml Query i made with CamlDesigner on a random list <Where> <And> <Or> <And> <Eq> ...


0

Try to replace <UserID /> tag by UserID number (int). Moreover, if you want to ensure that your query is correct, check the server response: if you receive a 400 Bad Request HTTP Error, then it's very probable that your query is malformed. If the answer is 200 OK, then you should check the rest of the code.


0

If you return a column containing Site Name within it, you can then: <GroupBy><FieldRef Name="**SiteNameField**" /></GroupBy> Hope this helps


0

Try using these enums instead. They work for me. 0 - Approved 1 - Rejected 2 - Pending 3 - Draft 4 - Scheduled However I personally still have the issue where Approval Status only works for administrators and not team site visitors.


0

If the date you are trying to format is part of a string value with other than just a date, you cannot change it. I.e. if you're @Description field contains a string like "This is my string with a date 06/11/2016 that I want changed to Sunday, November 2016" then you cannot change the date format. The example you mention that you've copied, that just ...



Top 50 recent answers are included