Init combo in form

migrating 3.6->4.0

in 3.6

personf = new dhtmlXForm("inviteperson");
		personf.loadStruct("source/xml/invite.php?invite="+actionv+"&id_stud="+id_stud_v+"&t="+new Date().getTime(),function(){
            	if (actionv!='promote') {
		 var combocountry = personf.getCombo("countrycombo");
         combocountry.enableFilteringMode(true,"source/xml/country.php",true,true); 
				}
[i]other conditions .....[/i]
}

xml

<item type='input' value='38(xxx)xxx-xxxx' rows='1' label='Mobile telephone' name='telephone'/>
			<item type='combo' label='Citizenship' name='countrycombo' value=''/>
			<item type='combo' label='Duty Station name' name='dutycombo' value=''/>
			<item type='select' label='Position' name='position'>

form loaded but combo not working ;(
same with dutycombo

Hello
Seems kike code is fine
We need a demo to test it with oho files
Could you provide it?
docs.dhtmlx.com/auxiliary_docs__ … pport.html

has temporary solution onXLE event with

personf.getCombo("countrycombo").load("source/xml/country.php");

but what about filtering ???
demo.7z (240 KB)

Hi

rename country.php to country.xml (in code also change)
or add first line into country.php <?php header("Content-Type: text/xml"); ?>

true country.php

[code]

<?PHP require_once("../../config.php"); require("../../../Connector/db_oracle.php"); require("../../../Connector/combo_connector.php"); $strn = new ComboConnector($res,"Oracle"); $strn->dynamic_loading(50); $strn->render_table("T_COUNTRY","ID_COUNTRY","NAME_OF_COUNTRY"); ?>[/code]

nesmax
Please, send us on support@dhtmlx.com link to this topic + a direct link to your app

lost and found

after couple hours …

disable appfsw.attachURL("group_proj.php", false, {action:pr_gr, pr_group:id, project_gr:userid, })}

and add new <link rel="stylesheet" type="text/css" href="../dhtmlx/skins/terrace/dhtmlx.css"/> <script src="../dhtmlx/dhtmlx.js"></script>

work perfectly