Announcements
No record found.
I have a menu item button call a class when it is clicked. I need to add param to args class received by main method before calling super, how can I do this in the clicked method ?
*This post is locked for comments
In come cases, setting properties directly on the menu item may do the job. For example: this.parameters("xyz"). Just be aware of that the value is property doesn't get automatically removed.
In more complex scenarios, remove super() and run the menu item by yourself:
Args args = new Args(); args.parmObject(…); this.menuFunction().run(args);
I added the below code which seems similar to what you suggest
_args= new Args();
CalculateAllowance="1";
_args.parm(CalculateAllowance);
_args.record(hrmAbsenceTable);
HRMAbsenceEnter::main(_args);
The only problem that I face now is that I need to fill _args.caller() since this value is checked in HRMAbsenceEnter::main method, how can I get the correct value for caller ?
regarding this.parameters() , how can access its value in side main method of the menu item class ???
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CP04-islander 44
Michel ROY 14
imran ul haq 8