Problem to focus a subfile field
Posted: Fri Jun 06, 2014 8:46 am
Hello everybody,
I have a subfile grid with input fields on each line.
In 5250 mode my RPG detects through INFDS data structure the position of the cursor and if you press F11 an help or search panel is shown based on the field contents.
In the converted DDS web page I added a search button for each grid field I want help to be invoked.
I kept the row and column cursor proprieties as converted by the tool and I added a script to the onclick event of the search button, trying to focus the related input field and submit F11 keypress to the RPG.
The script doesn't work: I'm not able to focus the subfile field.
Please find attached my script and some more details.
Thank you very much in advance for your help.
Giovanni Broggi
I have a subfile grid with input fields on each line.
In 5250 mode my RPG detects through INFDS data structure the position of the cursor and if you press F11 an help or search panel is shown based on the field contents.
In the converted DDS web page I added a search button for each grid field I want help to be invoked.
I kept the row and column cursor proprieties as converted by the tool and I added a script to the onclick event of the search button, trying to focus the related input field and submit F11 keypress to the RPG.
The script doesn't work: I'm not able to focus the subfile field.
Please find attached my script and some more details.
Thank you very much in advance for your help.
Giovanni Broggi