dhtmlcombogroups in scheduler

Hi all,
I have this custom combobox with autosuggestion, the 2 data is from 2 different MySql Select, name.php and surname.php:

[code]scheduler.form_blocks[“combo_select”]={
render:function(sns){
var html="

";
return html;
},
  set_value:function(node,value,ev){
  if (!this._node_init){

     node.combo1 = new dhtmlXCombo("c1", "c1", 150);
     node.combo1.loadXML("php/name.php");
     node.combo2 = new dhtmlXCombo("c2", "c2", 150);
     node.combo1.attachChildCombo(node.combo2, "php/surname.php");


     this._node_init = true;
     }
  },

  get_value:function(node,ev){
     var a = node.combo1.getComboText();
     var b = node.combo2.getComboText();

        return a+b;
  },

}[/code]
This works very well, when i select name in first select, appears the second select with surname rows.
My question is:

There is the possibility when I select the name in first combo in second combo appears the associated surname value and not the all list of surname?

Thank you.

Sondra

In case of grouped combos , child one will include in server request “parent=ID” , so server side script can use this parameter to filter list of possible values.

Hi Stanislav, thank you for answer.
My working code for my goal is this:

scheduler.form_blocks["combo_select"]={
      render:function(sns){
         var html="<div class='dhx_cal_ltext'><table><td><div id='c1' style='height:10px;'></div></td><td><div id='c2' style='height:10px;'></div></td><td><div id='c3' style='height:10px;'></div></td><td><div id='c4' style='height:10px;'></div></td></table></div>";
         return html;

      },

      set_value:function(node,value,ev){
      if (!this._node_init){

         node.combo1 = new dhtmlXCombo("c1", "c1", 150);
         node.combo1.loadXML("php/category.php");
         node.combo2 = new dhtmlXCombo("c2", "c2", 150);
         node.combo1.attachChildCombo(node.combo2, "php/name.php?parent=$mask");
         node.combo3 = new dhtmlXCombo("c3", "c3", 50);
         node.combo2.attachChildCombo(node.combo3, "php/surname.php?parent=$mask");
         node.combo4 = new dhtmlXCombo("c4", "c4", 150);
         node.combo2.attachChildCombo(node.combo4, "php/types.php?parent=$mask");
         this._node_init = true;
         }
      },

      get_value:function(node,ev){
         var a = ev.name = node.combo2.getComboText();
            return a;
      },

   }

my lightbox section:

{name:"name", height:21, type:"combo_select", map_to:"name"},

This code insert only the combo2 value in my DB and seems to work fine.
After insert the value of combo2 in DB and EDIT the events I view the relative value in my combo2 select but when i refresh the scheduler page and re-edit the events it’s blank.
Can you help me?
Thank you in advance.
Sondra

Sorry my code don’t work fine.
If I insert a new event without refresh page , in lightbox I view the previous value of combo2.
Some problem of event ID ?
Can you help me?
Thank you.
Sondra