How to change the caption of the command handler

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
piogaurav
Posts: 5
Joined: Tue Feb 25, 2025 1:35 am

How to change the caption of the command handler

Post by piogaurav »

I want to change the caption of the command handler. As you can see in the screenshot below, we are not getting the complete policy number. How can we retrieve the whole policy number?

Policy Number: 09 9000044634 X 00

Also, as you can see in the screenshot below, "inquiry" is the name of the business object. Now, we want to change this based on the condition. If the transaction is an "IN", then show "Inquiry". If the transaction is "NB", then show "New Business".
Attachments
793.png
793.png (117.73 KiB) Viewed 122532 times
davidbalansa
Posts: 92
Joined: Mon Feb 01, 2016 10:08 am

Re: How to change the caption of the command handler

Post by davidbalansa »

Hi,

You can change the Command Handler caption inside your command handler reusable part.

In the uExecute method routine, after you have retrieved the instance list values use:

#Com_owner.avHandlerCaption := 'Whatever you want it to be'

Regards
piogaurav
Posts: 5
Joined: Tue Feb 25, 2025 1:35 am

Re: How to change the caption of the command handler

Post by piogaurav »

Hi davidbalansa,

Thanks for the solution, but I am displaying the RAMP screen on the command handlers. When I tried to edit the VF_CH006O reusable part of the command handler, I was not able to open that reusable part.
Do we have any other way to do the same?
command handler.png
command handler.png (332.84 KiB) Viewed 122482 times
VF_CH006O.png
VF_CH006O.png (51.26 KiB) Viewed 122482 times
Thank you
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: How to change the caption of the command handler

Post by Dino »

From ramp you can refer to many objects in vlf like these:

http://docs.lansa.com/15/en/lansa050/in ... f130186090

But only for read...

You may have to signal an event in ramp passing whatever text you want from the script and the vlf component processing the signal may do the change for you
piogaurav
Posts: 5
Joined: Tue Feb 25, 2025 1:35 am

Re: How to change the caption of the command handler

Post by piogaurav »

Thank you for the help this is working fine.
Post Reply