04-30-2009 10:30 AM
Hi,
I have a tabstrip on which there are 2 tabs.On both the tabs there are few fields on which the user enters the data.These subscreens of the tabstrip are used in differenet screens.I want a field to be hidden in one subscreen though it should be displayed when called by another screen.I mean I want to disable the field in the PBO module of the screen.how can i do it. Do I need to use the group property in the layout.If yes what is the code I need to write in the PBO module.Please suggest.
04-30-2009 10:34 AM
need to maintain group id for the required fields in the field attribute.
if it should display in the PBO,
loop at screen.
if screen-group = 'XXX'
update the req. logic here (enable/disable using the screen fields)
ENDIF.
endloop.
04-30-2009 10:44 AM
Hi,
you need to use the tabstrip-activetab
LOOP AT SCREEN.
IF <tabstrip>-activetab = <Selected Tab>.
IF screen-name CS 'PNPKOKRS' OR
screen-name CS 'PNPKOSTL' OR
screen-name CS 'PNPORGEH'.
screen-active = '0'.
screen-invisible = '1'.
MODIFY SCREEN.
CLEAR screen.
ENDIF.
ENDIF.
ENDLOOP.