Not sure if this is a bug.
I have a couple menu options that call an RPG program to update/delete records.
I like the idea of using Row Click Set in the Link Widget Properties in my grid widget and having app variables set anytime I click. This saves me time in setting up app variables for every single menu option, especially if they all use the same app variables in the RPG that's called.
I noticed that if I enable right click menu options, the app variables are set on right click, most of the time.
There are occasions when app variables are not set on right click. I use the NAB Developer console to confirm that app variables are not always set on right click.
In my case, when I right click on a row then left click a menu option, an RPG is called to update/delete records using the correct app vars.
The RPG call returns success = true and I refresh the grid. Then I right click another record, and the app vars stay as the previous values. I click on the menu option, the RPG is called but its updating/deleting a record incorrectly as its using app variables that were not changed.
I can work around this by setting app variables on each menu click, but it'd be great if Row Click Set worked every time, left or right click.
Thanks
I have a couple menu options that call an RPG program to update/delete records.
I like the idea of using Row Click Set in the Link Widget Properties in my grid widget and having app variables set anytime I click. This saves me time in setting up app variables for every single menu option, especially if they all use the same app variables in the RPG that's called.
I noticed that if I enable right click menu options, the app variables are set on right click, most of the time.
There are occasions when app variables are not set on right click. I use the NAB Developer console to confirm that app variables are not always set on right click.
In my case, when I right click on a row then left click a menu option, an RPG is called to update/delete records using the correct app vars.
The RPG call returns success = true and I refresh the grid. Then I right click another record, and the app vars stay as the previous values. I click on the menu option, the RPG is called but its updating/deleting a record incorrectly as its using app variables that were not changed.
I can work around this by setting app variables on each menu click, but it'd be great if Row Click Set worked every time, left or right click.
Thanks

Comment