Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Button Caption (Text)

Former Member
0 Likes
839

How can we change the button caption (Text) on run time?

Example

“Send”, “Receive” in dynamically for situation

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
598

Hi,

when you define the button in the screen painter as a output field, you can move dynamically a text for this button. The fieldname in the program and the screen has to be the same.

Stefan

4 REPLIES 4
Read only

Vinod_Chandran
Active Contributor
0 Likes
598

Hi Asheek,

There are many ways to do this. One of that is.

Define both the buttons 'Send' and 'Receive' in Gui Status. Now based on your condition you can enable and disable the buttons using SET PF-STATUS 'XXXX' addition EXCLUDING. You can get more information on SET PF-STATUS. Press F1 on this.

Thanks

Vinod

Read only

0 Likes
598

Hi Vinod

Thank you very much

It is a good idea that I can continue

Regards

Asheek

Read only

Former Member
0 Likes
599

Hi,

when you define the button in the screen painter as a output field, you can move dynamically a text for this button. The fieldname in the program and the screen has to be the same.

Stefan

Read only

0 Likes
598

Hi Stefan

Thank you

I solved the problem earlier with two buttons.

But After I have seen your suggestion I move my coding to your method and its working fine and it’s an excellent method.

Thank you again

Regards

Asheek