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

Show/hide button in application toolbar

Former Member
0 Likes
5,037

Is it possible to dynamically enable/disable some buttons in application toolbar in GUI Status regarding to some parameter chosen on selection screen.

F.a. I have 5 plants and I want to enable some option (button) just for one plant.

Thanks in advance

Tomy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,752

Using

SET PF-STATUS 'STATUS' excluing 'FUNCTION'.

you can hide the Button.

if plant  = '1000'.
 SET PF-STATUS 'STATUS' .
else.
 SET PF-STATUS 'STATUS' excluing 'FUNCTION'.
endif.

3 REPLIES 3
Read only

Former Member
0 Likes
1,753

Using

SET PF-STATUS 'STATUS' excluing 'FUNCTION'.

you can hide the Button.

if plant  = '1000'.
 SET PF-STATUS 'STATUS' .
else.
 SET PF-STATUS 'STATUS' excluing 'FUNCTION'.
endif.

Read only

Former Member
0 Likes
1,752

Hi,

You can check the condition in use the command

SET PF-Status <name> excluding '<function code>' Immediately.

regards

padma

Read only

Former Member
0 Likes
1,752

Thanks a lot! Problem solved!

Rewards to Vijay Babu Dudla - he was the first one