Suggestion: Include SP.SOD support

Sep 6, 2013 at 8:45 AM
Hi Andrey!
It would be great to add support for loading camljs on demand
Sep 8, 2013 at 11:04 AM

Great idea, thanks, I'll include this into the plan for the next version!

In case you're interested, another feature I'm planning for the next version is method .ToCamlQuery(); that would return SP.CamlQuery object.

Sep 19, 2013 at 9:43 AM
Edited Sep 19, 2013 at 9:44 AM
Yea that would be great. Cos this library is an abstraction above complex Caml, but now It is not possible to use it without combining ToString() with caml strings in some cases. For example "In" query with "ViewFields"
var caml = camlbuilder.Where().CounterField('ID').In(itemIds);
        var query = new SP.CamlQuery();
        query.set_viewXml('<View><Query>' + caml.ToString() + '</Query><ViewFields><FieldRef Name="ID"/><FieldRef Name="ServerUrl"/></ViewFields></View>');
Sep 19, 2013 at 7:14 PM
Yep, unfortunately the <View> element is not covered yet.

Thanks for the suggestions, I'm quite confident it will not be very difficult to implement.
I'll try to include this stuff in the coming release as well.