To pass value of a field from page properties dialog to component dialog
Hi All,
Suppose in my page properties I have some custom tabs and there is a textfield in it.
In my component dialog, there is a text field which should be pre-populated with values from the above mentioned field.
Tried with the below listener functions, but not working properly.
function(box,val){var dlg = box.findParentByType('dialog');var sel = dlg.getField('./pagepropfield').getValue();var field = dlg.getField('./componentdialogfield');field.setValue(sel);}
function(comp) { var dlg = comp.findParentByType('dialog'); var sel = dlg.getField('./pagepropfieldl').getValue();alert(val); var field = dlg.getField('./componentdialogfield');field.setValue(sel);}
Any thoughts/pointers on this will be really helpful.