Thank you in advance. We have placed a combo box in the Lightbox that is suppose to list our customers and is populated from our MySQL table. When we run the scheduler, Firebug indicates that all of the customers are selected; but only the first record, “Bayer” appears in the combo box. Can anyone point us in the right direction to correct this?
HTML code:
scheduler.config.lightbox.sections= [
{name:“Bill of Lading#”, height:20, map_to:“text”, type:“textarea”, focus:true},
{name:“Customer”,height:30, type:“combo”, filtering:true,
image_path:"…/…/dhtmlxSuite/dhtmlxCombo/codebase/imgs/",map_to:“text”,
script_path:“php/customerLightboxCombo.php”},
{name:“Appt
Type”, height:30, options:apptTypeRadioLabel,map_to:“apptTypeRadioLabel”, type:“radio”, vertical:false},
{name:“Door”,height:30,options:sections,map_to:“section_id”, type:“select”},
{name:“time”,height:72, type:“time”, map_to:“auto”, time_format:["%H:%i","%m","%d","%Y"]}
];
PHP code:
<?php require_once("../../../dhtmlxScheduler/codebase/connector/combo_connector.php"); $conn = mysql_connect("localhost","root","") or die("cannot connect to server"); mysql_select_db("customer"); $combo = new ComboConnector($conn,"MySQL"); $combo->render_table("customerDetail","id","custID"); ?>The Firebug results:
Bayer Dow Dupont Syngenta UPI Monsanto FMC