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

How to hide PUSHBUTTON on Module pool .

Former Member
0 Likes
2,495

Hi Experts,

In my module pool program has 2 pushbuttons, in some cases both of those are been needed to hide in the screen. How can i achieve this?

Anybody can help me to resolve this problem?

Thanks in advance..

Regards,

Ranjith

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,158
HI Ranjith,

  Double click on the push buttons and in the attributes assign one group to them , say GRP to both of them

in PBO

module disable_buttons.


module disable_buttons.

IF XXXXXX.            <---------ur condition here
   loop at screen.
    if screen-group1 eq 'GRP'.
       screen-invisible = 'X'.
       modify screen.
    endif.
   endloop.
ENDIF.
endmodule.
3 REPLIES 3
Read only

former_member386202
Active Contributor
0 Likes
1,158

Hi,

Whilw writing the PFstatus use excluding statement following that pushbuttons names .

Ex. PFSTATUS 'ZSTAT' excluding push1 push2

Regards,

Prashant

Read only

Former Member
0 Likes
1,159
HI Ranjith,

  Double click on the push buttons and in the attributes assign one group to them , say GRP to both of them

in PBO

module disable_buttons.


module disable_buttons.

IF XXXXXX.            <---------ur condition here
   loop at screen.
    if screen-group1 eq 'GRP'.
       screen-invisible = 'X'.
       modify screen.
    endif.
   endloop.
ENDIF.
endmodule.
Read only

0 Likes
1,158

Hi Ranjith,

Try this code in the PBO of the Screen.

IF "CONDITION".

LOOP AT SCREEN.


       IF screen-group1 = 'IV0'.     " Give the Group name"


         screen-invisible = '1'.        "Set the Screen element as Invisible".


         MODIFY SCREEN.


       ENDIF.


     ENDLOOP.


   ENDIF.