Hello;
I have this one screen where a quick pick is used for the sub-file options. I changed the on-select script to be more flexible & the options, but now when I hover over the quick pick icon, the table always appears in the middle of the screen!
Not sure if it matters, but original script:
var sOption = "";
var optf = FIELDS("opt05");
/* Set the correct subfile value for the menu item number */
switch (ENV.itemNumber)
{
case 1: sOption = "."; break;
...
default: sOption = "";break;
}
/* If an option was set, put into the 5250 subfile field */
/* and press the enter key */
if (sOption !== "")
{
optf.setValue(sOption);
SENDKEY("Enter");
}
new script:
var optf = FIELDS("opt01"); /* fill this with name of option field */
var foo = ENV.itemCaption.split('='); /* this splits the caption & uses whats before the "=" */
if (foo[0] !== "")
{
optf.setValue(foo[0]);
SENDKEY("Enter");
}
quick pick table no longer positions next to QP icon
Moderator: jeanmichel
quick pick table no longer positions next to QP icon
- Attachments
-
- original: quick pick next to icon
- FE5_2025_prev.png (57.76 KiB) Viewed 1522 times
-
- changed: quick pick in middle of screen
- FE5_2025_new.png (53.69 KiB) Viewed 1522 times
Re: quick pick table no longer positions next to QP icon
facepalm; I just realized I had the "position: absolute" in the containerStyle. Which means I have to manually position it. not sure why that was put there- so I am just going to call it a "I needed to turn my brains off and back on" aka step away & possibly ask people to embarrass myself before I can see the problem.