quick pick table no longer positions next to QP icon
Posted: 29 Sep 2025, 23:13
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");
}
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");
}