From: http://spservices.codeplex.com/discussions/397146
Okay, here's what I changed to allow people to add any query options they want. I created this as a patch in WinMerge. So, to translate, that means at line 1422 I added a line as written. Added more lines at 1492 (new lines 1494-1496). Removed the line at 1512 and replaces it with the new line as written below the removed line.
1422a1423
> var QOptions = " <IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns> ";
1492a1494,1496
> if(opt.QueryOptions.length > 0) {
> QOptions += opt.QueryOptions;
> }
1512c1516,1517
< CAMLQueryOptions: "<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns></QueryOptions>",
---
> CAMLQueryOptions: "<QueryOptions>" + QOptions + "</QueryOptions>",
>
Comments: Hey Marc, I realized that I forgot one thing. You need to add a line QueryOptions: "", // Option to allow passing in query options around line 1313 - to set the default to be nothing. Also, I'm guessing that for consistency it should really be queryOptions (lowercase first "q") to match the way you've done the rest of your options.
Okay, here's what I changed to allow people to add any query options they want. I created this as a patch in WinMerge. So, to translate, that means at line 1422 I added a line as written. Added more lines at 1492 (new lines 1494-1496). Removed the line at 1512 and replaces it with the new line as written below the removed line.
1422a1423
> var QOptions = " <IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns> ";
1492a1494,1496
> if(opt.QueryOptions.length > 0) {
> QOptions += opt.QueryOptions;
> }
1512c1516,1517
< CAMLQueryOptions: "<QueryOptions><IncludeMandatoryColumns>FALSE</IncludeMandatoryColumns></QueryOptions>",
---
> CAMLQueryOptions: "<QueryOptions>" + QOptions + "</QueryOptions>",
>
Comments: Hey Marc, I realized that I forgot one thing. You need to add a line QueryOptions: "", // Option to allow passing in query options around line 1313 - to set the default to be nothing. Also, I'm guessing that for consistency it should really be queryOptions (lowercase first "q") to match the way you've done the rest of your options.