I have a dhtmlxLayout (5H).
In frame “C” I have a Combo - Showing the pre-Selected ComboText.
The Combo resides in an HTML Table and DIV implemented via attachURLObject().
Now I change something in Frame “D” and I want the Combo Text in Frame “C” to update with the New Information.
How is the best done?
In order to call functions of layout cells you can use the following approach:
dhxLayout.cells(cell_id).window._frame.contentWindow.someFunction();
to call parent methods from iframe - a known JS approach:
parent.someFunction();
Thanks! I got it to work best from JavaScript insde dhxLayout.cells(‘d’) HTML by using the following:
//Get The Remote Layout Window’s myCombo Actual Option Value
combosActualValue=parent.dhxLayout.cells(‘c’).window._frame.contentWindow.myCombo.getActualValue();
//Update The Actual Option
parent.dhxLayout.cells(‘c’).window._frame.contentWindow.myCombo.updateOption(combosActualValue,combosActualValue,newComboText,’’);
//Update The User’s View Of The Selected Option
parent.dhxLayout.cells(‘c’).window._frame.contentWindow.myCombo.setComboValue(combosActualValue);