‎2007 Oct 25 10:04 AM
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
‎2007 Oct 25 10:07 AM
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.
‎2007 Oct 25 10:06 AM
Hi,
Whilw writing the PFstatus use excluding statement following that pushbuttons names .
Ex. PFSTATUS 'ZSTAT' excluding push1 push2
Regards,
Prashant
‎2007 Oct 25 10:07 AM
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.
‎2013 Oct 16 11:12 AM
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.