Forum Discussion

shubh260393's avatar
shubh260393
Ideator I
6 years ago

Not getting selected item in search dialog box

Hello,

I have a Document relationship on Part ItemType. I have added a method on "OnBeforeNew" client event of that relationship. When I add a new relationship from the form a search dialog box gets open and it shows me all the Document item present in the system. When I select the item in search dialog box and click on the green color tick on the top right, I get the details such as id and name etc in my method but when I double click the item in search dialog box then I dont get the item details in my method.

window.parent.findCurrentRelationshipsTab().itm - This is the line of code which gives me null value when I double clicks the row in search dialog.

Please sugggest me how to get the selected item search dialog box.

8 Replies

  • Hello,

    Could you provide some more details on what you're ultimately trying to accomplish? Also, could you let us know what version of Aras Innovator you are using?

    Chris


    Christopher Gillis

    Aras Labs Software Engineer

    • shubh260393's avatar
      shubh260393
      Ideator I

      Hello,

      I am using Version: 11.0 SP14 of ARAS.

      I have a method at OnBeforeNew client event of Realtionship. To add a relationship item, a search dialog box is opening. I want to get the details of the selected item in search dialog box. let me remind that the event is ONBeforeNew.

      • christopher_gillis's avatar
        christopher_gillis
        Community Manager

        Could you also elaborate on what you want to do with the details of the selected item once you have them? For example, are you trying to do some validation so that the user can only add certain items as a relationship?

        Chris