AnsweredAssumed Answered

.js to .json

Question asked by dafiter Champion on Jun 1, 2015
Latest reply on Jun 2, 2015 by dafiter

I know this is stupid but I cannot figure out how to get my js to pull some of my config.json into it.

 

Does it have to be a function?

 

After viewing sample code, I see that it can be done with a function.

 

LocalLayer widget:

this.config.layers.layer.forEach(function (layer) {

 

Is there any documentation/ videos/ examples on how this can be done.

I am looking for a way to amend the config json and have the script reflect that.

 

Such as

js

var Exp = "fromjson";

 

json

"fromjson": "crime = 'Larceny/Theft' ",

 

Thanks!

Outcomes