F4 for Searches/Prompts
Posted: Tue Feb 21, 2012 1:59 pm
Let me start off by apologizing if this is simple. I am new to ProfoundUI.
In the green-screen environment, I have a screen that has three fields on in. Each of these three fields is searchable. Meaning, that I press F4 and the DSPF uses the RTNCSRLOC to return the field name to my program and I call the appropriate search/prompt program based on the field name.
In ProfoundUI, I have put a button next to each field and assigned the shortcut key as F4 and response as *IN04. I want to be able to click on the button next to one of the fields and have my RPG program continue using the field name to determine what search program to call. My problem is this does not work when I click the button, unless I position the cursor into that field before clicking the button.
Is there a way to set the cursor position when I click on a particular button, so my program gets the correct field name?
In the green-screen environment, I have a screen that has three fields on in. Each of these three fields is searchable. Meaning, that I press F4 and the DSPF uses the RTNCSRLOC to return the field name to my program and I call the appropriate search/prompt program based on the field name.
In ProfoundUI, I have put a button next to each field and assigned the shortcut key as F4 and response as *IN04. I want to be able to click on the button next to one of the fields and have my RPG program continue using the field name to determine what search program to call. My problem is this does not work when I click the button, unless I position the cursor into that field before clicking the button.
Is there a way to set the cursor position when I click on a particular button, so my program gets the correct field name?