quick pick table no longer positions next to QP icon

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
gracehsu
Posts: 13
Joined: 23 Dec 2022, 04:06

quick pick table no longer positions next to QP icon

Post 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");
}
Attachments
original: quick pick next to icon
original: quick pick next to icon
FE5_2025_prev.png (57.76 KiB) Viewed 1522 times
changed: quick pick in middle of screen
changed: quick pick in middle of screen
FE5_2025_new.png (53.69 KiB) Viewed 1522 times
gracehsu
Posts: 13
Joined: 23 Dec 2022, 04:06

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

Post 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.
Post Reply