2006 Feb 01 9:58 AM
Hi,
How can I grey-out button dynamically in the application toolbar?
It's not an ALV grid, where it's easy.
SET PF-STATUS '100' EXCLUDING 'SOMETHING'. hides completely the button.
Thanks,
Peter
2006 Feb 01 10:22 AM
Hi,
How can I grey-out button dynamically in the application toolbar?
It's not an ALV grid, where it's easy.
SET PF-STATUS '100' EXCLUDING 'SOMETHING'. hides completely the button.
Thanks,
Peter
2006 Feb 01 10:22 AM
2006 Feb 01 10:31 AM
2006 Feb 01 11:58 AM
Thanks Raja for the link, it worked exactly as I wanted.
Peter
2006 Feb 01 10:31 AM
Hi ,
May be u can have another PF status wid the button disabled .. then u can dynamically set the PF status to this new PF status.
regards,
Sumeet Mishra
reward points if this helps
2006 Feb 01 10:34 AM
Hi,
since you are telling dynamically,
so you need to loop at screen.
conditionally do this..
loop at screen.
if screen-name = 'BUTTON'.
screen-active = 0.
endif.
modify screen.
endloop.regards
vijay
2006 Feb 01 10:39 AM
guys, there is a clear cut solution provided in the link i had given, check that out.
Regards
Raja
2006 Feb 01 10:47 AM
Hi Raja,
that is manually done while creating the PF-status.
if you do that settings it will always invisible/disable or visible. But in runtime i want to do means how?
it won't take care of that...
by default it show disable/enable buttons what ever settings you gave while creating or editing the status.
that doesn't take care of Dynamic part.
regards
vijay
2006 Feb 01 11:08 AM
yes its manually set when you define the GUI status. once that step is done. when you do set pf-status excluding <itab> all those buttons in the exclude tab will be grayed out.
the dynamic portion comes from set pf-status execulding <itab>
Hope this is clear.
Regards
Raja
2006 Feb 01 11:19 AM
Yeah i do agree, suppose if i want to make the grayed out button to enable in the runtime or enable to garyed out. how can that be done automatically..
regards
vijay
2006 Feb 01 11:29 AM
<i>suppose if i want to make the grayed out button to enable in the runtime or enable to garyed out</i>
remove the function code of that button or add the function code of that button to the exclude tab and
do a
set pf-status excluding <exclusion itab> .
Regards
Raja
2006 Feb 01 11:48 AM
2006 Feb 01 10:39 AM
Hi ,
thats right the thread contains the exact answer to your problem...
Actually it depend on the Push Button assignment option where u can set what u want to do with disable functions on application tool bar. Whether u want to display them as grey buttons or Hide them completely.
regards,
Sumeet Mishra
2006 Feb 01 10:45 AM
Hi,
Sorry forgot to add something to my previous reply...
The complete steps will be as follows :
1. Create Two PF status , One with active Button and Function code and Second with Inactive Function code and Greyed button (This can be acheive by using Push Button assignment as specified in the thread)
2. Dynamically change the PF status to Second one when you want to deactivate the specified Function from the application tool bar.
regards,
Sumeet Mishra
Reward point if this helps : )
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |