Hi everyone! Can you help me with this??
I’ve search the entire forum and tried every sample on the documentation, but cannot find a way to create a select box with a SQL sequence like “Select Field_1, Field_2 from Table Where field_3 = 1”
Here is the Client Side Code:
...
{name:"contact", height:21, map_to:"type", type:"select",
options:scheduler.serverList("type") },
...
And the Server Side Code:
...
$scheduler = new schedulerConnector($res);
$list = new OptionsConnector($res);
$list->render_sql("Select contact_id, contact_name from sd_Contacts Where user_id=7","contact_id ","contact_id (value),contact_name(label)");
$scheduler->set_options("type", $list);
...
If I put the basic code:
[code]$scheduler = new schedulerConnector($res);
$list = new OptionsConnector($res);
$list->render_table("sd_Contacts","contact_id ","contact_id (value),contact_name(label)");
$scheduler->set_options("type", $list);[/code]
works fine.
Am I done something wrong or it´s not possible to do this?
Thank´s in advance.
Marcos Satorres