This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to retreive selected item IDs from a relationship grid?

BMoberg - Thursday, November 20, 2014 6:52 AM:

I can't find any way to get the selected item IDs from a relationship grid.
I want to create an action/method that picks up those selected items.
Could anybody support with code for this?

Ps I already have a method (java) that handles this in the search grid, but it doesn't work on the relationship grid.



newcomer - Friday, November 21, 2014 5:33 AM:

You need to get the grid handle and then you can use the method GetSelectedItemIDs (see Aras API).

For example:

var grid = top.main.work.gridApplet;

var idArray = grid.GetSelectedItemIDs(",").split(",");