Hello again James, and thanks for quick answer
Its seems almost there, the only point: instead of manually create copy name array:
var names = ['One', 'Two', 'Three', 'Four', 'Five', 'Six'];
I need to fetch names from 'params.toggle' parameter - since the labels is dynamic and could be changed from time to time. So, i believe it have to be something like this:
var names = [];
var array = params.getAllValues ('params.toggle');
for (var i = 0; i < array.length; i++){
names[i] = params.getValueAsString('params.toggle',i)
}
But something wrong with that.
params.getAllValues (that by the ogscript reference pdf should retrieve the entire array of values) returns only one string with the current selection value, neither params.getElementCount do the work (returns 1 always). The params.getValueAsString('params.toggle',index) also returns always only the chosen value. Maybe the parameter type should be changed to string array and constraint type to string key/value constraint (i will check it tomorrow, for today i'm done)? How to achieve this?
Also, is it possible to set some variant of "read only"/inactive for single button in toggle buttons?
Best regards,
Alex.
#DashBoard