Button or Image carries over to another menu

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
jtaljaard
Posts: 11
Joined: 06 Sep 2023, 18:51

Button or Image carries over to another menu

Post by jtaljaard »

Currently changed a caption option into a button/image and created an on click event:

var F = FIELDS("OptionCL");
F.setValue("3");
SENDKEY("Enter");
visible = false;
var F = FIELDS("opt3");
F.setProperty("visible", false);
F.refresh();

Reason I am trying to hide it, is because the image remains on the screen when entering a new menu, is there a work around for this? Perhaps a way to lock it to a certain menu code?
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

Re: Button or Image carries over to another menu

Post by Dino »

If an extension you added to an screen continues in a different screen, most likely both screens are sharing the same criteria for identification.

Like if you use the name of the program in the corner, let's say menupgm as the identification.

If you want to have one button in one screen but no another, they need to be different screens. you have to identify them differently like using the menu title. Check tutorial for screen identification
jtaljaard
Posts: 11
Joined: 06 Sep 2023, 18:51

Re: Button or Image carries over to another menu

Post by jtaljaard »

Awesome, I played around with screen identification and managed to separate the screens successfully. much appreciated.
Post Reply