Get value of "context menu id" property from grid
Posted: Thu Jun 27, 2019 3:39 pm
I have a grid that will have a different popup menu when a row is right clicked depending on the user.
I have set a variable for the "context menu id" property on the subfile and change it accordingly depending on which user is running the program.
The issue i'm having is determining how to set up the onrowclick for this grid. I tried binding the "value" property for the grid to be the same variable that was bound to the context menu id to retrieve the menu name, but this did not seem to function as I had expected. (PS1022_S is the id of the grid in this example)
Is there a way for the onrowclick of the grid that I can retrieve the menu name for the context menu id property to be passed to applyProperty?
Thanks!
I have set a variable for the "context menu id" property on the subfile and change it accordingly depending on which user is running the program.
The issue i'm having is determining how to set up the onrowclick for this grid. I tried binding the "value" property for the grid to be the same variable that was bound to the context menu id to retrieve the menu name, but this did not seem to function as I had expected. (PS1022_S is the id of the grid in this example)
Code: Select all
menuName = getElementValue("PS1022_S");
applyProperty(menuName,"user defined data",row);
Thanks!