Quantcast
Channel: CamlJs: SharePoint JavaScript Caml Builder
Viewing all articles
Browse latest Browse all 199

Created Unassigned: CamlJs ToString undefined error [9]

$
0
0
I am running a simple CamlJs, it works from Chrome Console and from the Chrome Extension. However when I try from a Content Editor Webpart (Sharepoint Online / O365) it gives me an error.

```
<script src="/sites/intranet/Style%20Library/CI/scripts/document_library/camljs.js"></script>
<script type="text/javascript">
var str = new CamlBuilder()
.Where()
.LookupMultiField("Tag")
.IncludesSuchItemThat()
.ValueAsText()
.In(['a', 'b', 'authorization form'])
.ToString();
console.log(str);
</script>
```

This is the error:

```
camljs.js:948 Uncaught TypeError: Cannot read property 'create' of undefined
at Builder.Finalize (camljs.js:948)
at QueryToken.ToString (camljs.js:304)
at doclib.aspx:1123
```

Viewing all articles
Browse latest Browse all 199

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>