How to handle controls when two instances of dialog are open, even after service call back

How to handle controls when two instances of dialog are open

One solution is given by Vic Patterson (below):

http://www.tibcommunity.com/message/28503#28503

service.getCustomerData = function(objJSX) {

var objService = myapp.loadResource("CustomerAdminRules_xml"); // the ones by "DOM (map and create)"
objService.setOperation("getCustomerData");

var strValue = "";

//find the input TextBox and get the value

var objDialog = objJSX.getAncestorOfType("jsx3.gui.Dialog");

if (objDialog != null){

var objTextBox = objDialog.getDescendantOfName("searchField", true, false);

if (objTextBox != null){

strValue = objTextBox.getValue();

objService.searchField = strValue;

}

}

But after service callback how can we get the decendent control of the current dialog.

in code above we have "objJSX" control to get parent dialog but after service call back how can we get parent dialog?

Manish Sain

Login