I am new to scheduler and need some additional info how to define/load options for multiselect section. In documentation definition of options is defined like:
options: scheduler.serverList(“fruit_id”),
script_url: ‘php/events_multiselect_options.php’,
What is the format of options found in scheduler.serverList(“fruit_id”)?
Can I use any url in script_url? What should it return?
So I can define the options like this:
var myoptions[
{key:1, label:“Section A”},
{key:2, label:“Section B”},
{key:3, label:“Section C”},
{key:4, label:“Section D”}
]
…, options: myoptions …;
And I must use some valid url for script url (empty url gives an error as I noticed when testing) to load selections for current event. For new event this can be null or empty? What is the format for this list of cheched selections?
Martti
Yes, this seems to be working ok with new events:
{ name:“control”, height:100, options: controls, type:“multiselect”, map_to:“control”, script_url:"" }
The question remains in what format information for existing events is returned by url call .
Martti