Hi
Need to execute in the Begining of the code
component.setComponentNested("comments", args,component.getContext(),new IReturnListener() {
public void onReturn(Form form, Map map)
{
if(map!=null)
{
result=map.get("buttonvalue").toString();
System.out.println("On Return Value"+result);
f("OK".equalsIgnoreCase(result))
{
isOk=true;
System.out.println("Is Ok Value If"+isOk);
}
else
{
isOk=false;
System.out.println("Is Ok Value Else"+isOk);
}
}
}
});
But setComponentNested is calling at the end of the code even thought i am writing in the first line in the method(Its exceuting remaining code and finaaly its executing setComponentNested
I need to execute setComponentNested first