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

TABSTRIP: Hide a tab

oleg_sukharenko
Explorer
0 Likes
1,908

I am trying to hide one tab of my tabstrip dynamically in PBO. It is seems very simple but my code does not work in 6.0

LOOP AT SCREEN.

IF screen-name = 'D_MAIN_TAB4'.

screen-invisible = 1.

screen-input = '0'.

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Does anyone have any idea what am I doing wrong?

Thank you for your help.

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
1,009

It looks OK, assuming the name of your tabstrip control is 'D_MAIN' (strange name though). Where did you place the code? Is it after the tabstrip call in your main screen?


PROCESS BEFORE OUTPUT.

* PBO FLOW LOGIC FOR TABSTRIP 'TS_DOCUMENT'
  MODULE TS_DOCUMENT_ACTIVE_TAB_SET.
  CALL SUBSCREEN TS_DOCUMENT_SCA
    INCLUDING G_TS_DOCUMENT-PROG G_TS_DOCUMENT-SUBSCREEN.

  MODULE M9200_SET_STATUS.
  MODULE M9200_SET_FIELD_ATTRIBUTES.


LOOP AT SCREEN.
...
*     Header 2
      IF screen-name EQ 'TS_DOCUMENT_TAB11'.
        screen-invisible = '0'.
        screen-active    = '1'.
      ENDIF.
...
    MODIFY SCREEN.

  ENDLOOP.

I am trying to hide one tab of my tabstrip dynamically in PBO. It is seems very simple but my code does not work in 6.0

LOOP AT SCREEN.

IF screen-name = 'D_MAIN_TAB4'.

screen-invisible = 1.

screen-input = '0'.

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

Does anyone have any idea what am I doing wrong?

Thank you for your help.

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
1,010

It looks OK, assuming the name of your tabstrip control is 'D_MAIN' (strange name though). Where did you place the code? Is it after the tabstrip call in your main screen?


PROCESS BEFORE OUTPUT.

* PBO FLOW LOGIC FOR TABSTRIP 'TS_DOCUMENT'
  MODULE TS_DOCUMENT_ACTIVE_TAB_SET.
  CALL SUBSCREEN TS_DOCUMENT_SCA
    INCLUDING G_TS_DOCUMENT-PROG G_TS_DOCUMENT-SUBSCREEN.

  MODULE M9200_SET_STATUS.
  MODULE M9200_SET_FIELD_ATTRIBUTES.


LOOP AT SCREEN.
...
*     Header 2
      IF screen-name EQ 'TS_DOCUMENT_TAB11'.
        screen-invisible = '0'.
        screen-active    = '1'.
      ENDIF.
...
    MODIFY SCREEN.

  ENDLOOP.

Read only

oleg_sukharenko
Explorer
0 Likes
1,009

i had different problem there, but thanks for the replying.