How to close relationship search dialog box dynamically?

Hi Team,

I have custom result binding code on 'OnSearch' event. On return of result if it is true it works fine but on false I want to close search dialog box that appear in relationship on click of pick related dynamically. 

I tried following method but it is not working.

parent.dialog.close();

Any one can please help how to achieve this?

Thanks & Regards

Gaurav

Parents
  • 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

Reply
  • 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

Children