How to hide tabstrip Control at runtime?

hi to all.
i used a tabstrip control in my screen.
i want to make my tabstrip visible or invisible based on t-code
for my screen.
it will be total based on t-code.
if i will enter t-code zins11 it will show me tabstrip for screen 100.
if i will enter t-code zins12 it will hide me tabstrip for screen 100.
Reply me.
thanks.

If you don't mind seeing the blank grey Tab Strip control box and simply hiding the tabs, this code will help.
  LOOP AT SCREEN.
    IF screen-name CP 'TS_TEST1_TAB*'.
      screen-active = 0.
      modify screen.
    ENDIF.
  ENDLOOP.
where my Tab Strip name was 'TS_TEST1

Similar Messages

  • How to insert tabstrip control in module pool screen painter

    Hi all!
    plz tell e how to use tabstrip control in module pool screen painter.Also plz give me an example program using tabstrip control.

    To insert tabstrip just open layout of screen and press on the tabstrip button there .
    Use this souce code further to activate it .
    CONTROLS tabstrip TYPE TABSTRIP.
    DATA: okcode TYPE sy-ucomm,
    dynnr TYPE sy-dynnr,
    flag type flag,
    active like tabstrip-activetab .
    call SCREEN 100.
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    data: lv_okcode type syucomm.
    lv_okcode = okcode.
    clear okcode.
    case lv_okcode.
    WHEN 'TAB1'.
    dynnr = '0110'.
    WHEN 'TAB2'.
    dynnr = '0120'.
    WHEN 'TAB3'.
    dynnr = '0130'.
    WHEN 'TAB4'.
    dynnr = '0140'.
    WHEN 'TAB5'.
    "check authorization, if authorization fails
    flag = 'X'. "set the global flag
    active = 'TAB1'. "store active tab in global variable
    dynnr = '0110'. "set the screen number
    WHEN 'BACK' or 'EXIT'.
    leave program.
    ENDCASE.
    IF lv_okcode(3) = 'TAB'.
    tabstrip-activetab = lv_okcode.
    ENDIF.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'MAIN'.
    SET TITLEBAR 'xxx'.
    IF tabstrip-activetab IS INITIAL OR
    dynnr IS INITIAL.
    tabstrip-activetab = 'TAB1'.
    dynnr = '0110'.
    ENDIF.
    "set the activetab explicilty here
    if flag eq 'X'. "from authorization failure
    tabstrip-activetab = active. "'TAB1'
    clear flag.
    endif.
    ENDMODULE. " STATUS_0100 OUTPUT

  • How to hide table control in a screen

    Hi, Gems,
    I want to hide the table control.Using "loop at screen" I am able to hide all other components except table control.
    Can anyone tell me how to hide table control in a screen?
    Any help will be appreciated.
    -Thanks
    Surajit.

    Hi,
    In the PBO (in a module outside to the LOOP...ENDLOOP), use this
    MODULE status_0100 OUTPUT.
    IF sy-ucomm EQ space.   "Give the function code on which you want to make your table control go invisible
                                              "Give a space if you want your table control to remail invisible on display of the screen
        CLEAR: t_header[].
        LOOP AT tabcontrol1-cols[] INTO wa_control1.
          wa_control1-invisible = '1'.
          MODIFY tabcontrol1-cols[] FROM wa_control1 INDEX sy-tabix.
        ENDLOOP.
    ENDMODULE. 

  • How to hide the window of Runtime Parameter Form?

    I have a form and I call a report from this form.I have passed some parameters to this report.Before the browser of reports appear the window of Runtime Parameter Form.I want to hide this window of Runtime Parameter Form but I don't know how.
    Please help me!

    When calling the report, set the property PARAMFORM to NO. IF you using parameter list to pass values to report you can do as follows:
    ADD_PARAMETER(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');

  • How to hide video controls

    All-
    I have a video that i want to play automatically when a button is clicked.  I have it all figured out but the controls for the embedded video show up.  How do i hide the controls? 
    Here's my code on a triggered get element event
    var vid = sym.$("vidCon");
    vid.html('<video width="640" height="480" src="zoom.mp4" poster="black.jpg" type="video/mp4" autoplay="autoplay" controls="false"  </video>');
    I've read that an html 5 element must be ommitted if you don't want it to show but when i get rid of the controls attribute, the vid will not play. 
    Thx

    ok i figured it out
    here's the code i used on trigger if anyone's interested
    var vid = sym.$("vidCon");
       vid.html("<video width='640' height='480'  autoplay='autoplay' poster='black.jpg'>" + 
                "<source src='zoom1.mp4' type='video/mp4' >" +
                "<source src='zoom.webm' type='video/webm'  />" +
                "<source src='zoom.ogv' type='video/ogg'  />" +
       "</video>");
    i also had to convert my video to webm and ogg bc firefox has licensing issues with mp4
    ugh!  can't we all just get along!!!  :-)

  • How to hide/show chart at runtime

    Hi All,
    Can anyone help me in how to Hide/Show a chart at runtime.
    Thanks & Regards
    K.Srinivas

    Hi
    THere is simple way of doing it. Follow the steps below -
    1. Create 'Radio Button' in another form.
    2. Create 2 buttons in it e.g - 1=Show & 2=Hide.
    3. THen there is option as 'Visibility Condition' on Chart 'Properties'.
    4. Write condition as - IF('Form Tech name'@ST1=="1",true,false)
    here ST1 is tech name of the radio button you can select it in formula option.
    5. Then make 1 or 2 as default value.
    You can change radio button at run time & you can show or hide the chart.
    Let me know if you have any issue.
    Regards
    Sandeep

  • How can i add control at runtime??

    hi,
    please help me! how can i add control(textfield, dropdownlist or subform...) at run time???
    thanks

    this option had no relation about editing items or not , i hadn't notice it was accessible true pop up
    when you rigt click is properties disable also ?
    may be i 'm wrong i talking about that :
    see attachement
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Attachments:
    example.jpg ‏57 KB

  • How to hide a control in jdeveloper adf

    hi guys,
    I am using jdeveloper 11 release 02
    I would like to implement a control which is displayed based on the of the value of first control.
    example
    I have list choice control with options as
    yes and no
    if the user select yes
    the input text appear
    if the user select no
    no input text appear
    regards
    steve kalenga

    Other way could be this, without having to implement any managed bean method (just replace #{viewScope.socValue} for your af:selectOneChoice's value):
    <af:selectOneChoice label="Show inputText" id="soc1"
                        value="#{viewScope.socValue}"
                        autoSubmit="true">
      <af:selectItem value="Y" label="Yes" id="si1"/>
      <af:selectItem value="N" label="No" id="si2"/>
    </af:selectOneChoice>
    <af:inputText label="Label 1" id="it1"
                  visible="#{viewScope.socValue ne 'N'}"
                  partialTriggers="soc1"/>AP

  • Hiding of tabstrip control

    Hi ,
    Can anybody please hiding of tabstrip control along with a simple example.
    Thanks ,
    Ahmed.

    Hi Ahmed,
    Please refer the below thread(s),
    Re: How to make a tabstrip visible and invisible again?
    how to hide tabstrip Control at runtime?
    Best Regards.

  • How to hide report engin

    I am a new one in oracle and want to know how to hide report engin at runtime....
    Can anybody help me.....
    Thank you
    Farhan

    The following coding will help you to hide oracle report engin,
    ADD_PARAMETER(idparam,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');

  • How can i hide a tabstrip control

    On my screen there are a pushbutton and a tabsrtip control which contain two tabs.
    initial,the tabstrip is visible,and the button with icon_collapse icon.
    then,i click the button ,and the tabstrip must be invisible,and the button's icon will change to icon_expand.
    if i use screen-name conditions to set the tab invisible,but the tabstrip has a shadow on the screen.the color of the space obtained by the tabstrip is different with other space's color.
    How can i set the color same with other if i want to hide the tabstrip.
    ths very much.

    see the example of custom tabstrip control for 0591 infotype
    MODULE ztab_strip_active_tab_set OUTPUT.
       IF  psyst-dsubt EQ 'BNPF'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab2.
         LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ELSEIF  psyst-dsubt EQ 'BNES'.
         g_ztab_strip-pressed_tab = c_ztab_strip-tab1.
         LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
       ENDIF.
       IF   psyst-dsubt NE 'BNPF' AND psyst-dsubt NE 'BNES'.
          LOOP AT SCREEN.
           IF screen-group4 = '050'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
          LOOP AT SCREEN.
           IF screen-group4 = '060'.
             screen-active = 0.
             MODIFY SCREEN.
           ENDIF.
         ENDLOOP.
         g_ztab_strip-pressed_tab = ' '.
       ENDIF.
       ztab_strip-activetab = g_ztab_strip-pressed_tab.
       CASE g_ztab_strip-pressed_tab.
         WHEN c_ztab_strip-tab1.
           g_ztab_strip-subscreen = '0201'.
         WHEN c_ztab_strip-tab2.
           g_ztab_strip-subscreen = '0203'.
         WHEN OTHERS.
           g_ztab_strip-subscreen = '0202'.
       ENDCASE.
    ENDMODULE.                    "ZTAB_STRIP_ACTIVE_TAB_SET OUTPUT
    check this for hiding one tabstrip in one subtype and another in next subtype

  • How to hide/show and move screenelements at runtime

    Hi Guys
        Currently, i have a requirment that, in the same screen, when user choose different different option in the dropdown list, there should be different screenelements and table control with different columns showing below it.
    Now, i have two plans below:
    1), hide/show and move position of screen elements and table control at runtime
    2), call different subscreen
    I hope i can take the first way since the second way will modify structure of program ( As it is infotype screen ), any one knows how to implement the first solution?

    Hi,
    I would suggest you to call different subscreens and load them dynamically based on your parameters.Since different subscreen are called your coding and functionality could also be seperated by writing in the PAI and PBO of the correspondiong Screens.
    if you have decided to go by your first method then try the below code.
    a) if it is normal UI elements like text box etc
    LOOP AT SCREEN.
        IF <var> = ' value '.
            screen-invisible = '0'.
            MODIFY SCREEN.
      endif
    ENDLOOP.
    Here <var> refers to the screen field name and value refers to its value.
    b) To hide columns in a Table control.
    DATA cols LIKE LINE OF tc-cols.
      LOOP AT tc-cols INTO cols.
        IF cols-screen-group1 = 'G1'.
          cols-invisible = 'X'. "HIDE THIS COLUMN
          MODIFY tc-cols
          FROM cols
          TRANSPORTING invisible.
        ENDIF.
        CLEAR cols.
      ENDLOOP.
    PS: here TC refers to the name of the table control.
    Lemme know if you face any problems.
    Cheers,
    RK

  • Button is generated at runtime how to hide it in WD4A

    Hi Experts,
    i am using SAles processing application thru Portal , there i have Customer search in the customer search iview i want to hide create sales order button.
    i found the technical details by using personalization option
    Technical Information for UI Element
    General Information About the Application and Component
    Application: POWL
    Web Dynpro Component: SALV_WD_TABLE
    Window Information: TABLE
    View Information: VIEW_TABLE
    Configuration ID: O200705080740527294200
    Information on Field
    Field ID: F_CREA
    Type of UI Element: TOOLBAR_BUTTON
    UI Element Library: STANDARD
    Attributes of UI Element
    List of Attributes
    Attribute Name Value Context Path Type
    COLLAPSIBLE      
    DESIGN standard (00)    
    EXPLANATION      
    TEXT Create Sales Order    
    IMAGE_FIRST X    
    IMAGE_SOURCE      
    TEXT_DIRECTION inherit (02)    
    ENABLED      
    TOOLTIP      
    VISIBLE visible (02)    
    ON_ACTION      
    VALUE_HELP_KIND      
    VALUE_HELP      
    what i found is Create sales order button is generated dynamic at runtime , how to hide dynamic generated button.

    Hi,
    First you need to figure out where the button is being dynamically generated. Then you can use the enhancement framework to hide the button (Change the visibility of the button) once it is generated. The enhancement framework allows you to add code at certain positions within the application. You will have to find a point after the  button is generated.
    Hope this helps
    Wenonah

  • How to hide or supress availability control screen in VA01

    Hi,
    I want to hide Availability Control Screen in VA01. Can you please help me how can i supress that screen.
    Regards
    Malik

    Hi Nabheet ,
    disabling the Button wont solve the problem , System automatically do availability check based on the stock and scheduled delivery date , if no sufficient stock then system will  propose new schedule line dates....
    so disabling the Button wont stop doing all these checks........it needs to be done thru config/E Spot which will skip all these validations...
    regards
    Prabhu

  • How to create subscreens in tabstrip control using  module pool

    hai experts,
    can u plz give me step by step procedure to create subscreens in tabstrip control using  module pool,

    hi,
    You can check this program
    <b>  DEMO_DYNPRO_TABSTRIP_LOCAL </b>
    This will help you in understanding the concept and how to create subscreens.
    Regards
    Nishant

Maybe you are looking for