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 get selected item id in on search dialog event of property

rrt - Tuesday, July 26, 2016 7:30 AM:

i want to get selected item id in on search dialog event

i tried
var rowId = gridApplet.getSelectedId();

but it not work in on search dialog event of property

it work in on edit , oneditfinish event of property

edonahue - Tuesday, July 26, 2016 12:09 PM:

Hi R,

The OnSearchDialog event occurs before the search dialog grid has loaded, so there isn't any item selected to retrieve an id from yet.

rrt - Wednesday, July 27, 2016 12:39 AM:

i take on search dialog event on property of relationship item so i want to get id of selected relationship item

means i want get id of relationship item for which i call on search dialog event

i create one property with datatype item on relationship item

i create event on that property when i click on that property only item having specific state is searched for that i write code and it works but i want id of relation item for which i click on property.

edonahue - Tuesday, September 27, 2016 3:30 PM:

Hi R,

Based on what I see in the OnSearchDialog context, I don't think it's possible to get the currently selected id in your method. The context item is the Item search, not the selected Item. 

As an alternative to using the OnSearchDialog event,  you could create a custom action to implement your use case, or create a grid event to execute the action you are trying to perform.