Forum Discussion
Hi Gaurav,
your problem sounds quite interesting. Unfortunately, I don't quite understand it completely. Could you provide some more details about your setup, please? Do you have a client event onClick of the "Pick related" button in the standard relationship grid? Could you share/explain some of the code that you implemented, as well?
If you opened the search dialogue with custom code (and with some onSearchDialog event from a sourcePropertyName parameter that contains your business logic) it should be straightforward to close that window in your custom code as well. Seeing as you have this problem, I assume your setup is different, which is why I'm asking :).
Cheers,
C
Hi Cogres,
Senario:
I am using aras innovator 11 SP 12. I have Itemtype A and Itemtype B. Created relationship of Itemtype A in Itemtype B. In related_id property of relationship Itemtype I have wrote one client method for "OnSearchDialog" event. Method is totally running fine. Now I have to put one validation, on satisfying false condition I want to close Search Dialog box dynamically through code. I have tried following different option to close Dialog but it is not working
1.) parent.dialog.close();
2.) this.args.dialog.close();
Following is my method that check and validate condition and execute code
----Method Code(Client Side)----
bool Result = false; //this is getting initialized dynamically. Currently assuming it has false value
If(Result)
{
//Do Something
}
else
{
close(); //Need to close Search dialog box on satisfying false condition. Tried above options too.
}