Page 1 of 1

quick pick table no longer positions next to QP icon

Posted: 29 Sep 2025, 23:13
by gracehsu
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");
}

Re: quick pick table no longer positions next to QP icon

Posted: 01 Oct 2025, 01:01
by gracehsu
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.