Tab strip - handling event of button on one of tabs

Hallo,
I used wizard for creating tab strip. I put button on certain tab. I'd like to change screen of current tab after click on this button. I'm not interested in change whole screen, but screen of mentioned tab in tab strip (tab strip is always visible, only tab subscreen is changing).
Can anybody help me?
Best regards,
Josef Motl

Ok, I just tested it.  You can modify the subscreen by using the LOOP at SCREEN procedure in the PBO of the subscreen.  Look at the following example.  main screen is 100, the tabstrip subscreens are 101, 102, 103. I have one field PTEST1 on subscreen 101.  I am making it output.
report zrich_0002.
start-of-selection.
  call screen 100.
*&      Module  STATUS_0100  OUTPUT
*       text
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
endmodule.                
* FUNCTION CODES FOR TABSTRIP 'TAB1'
constants: begin of c_tab1,
             tab1 like sy-ucomm value 'TAB1_FC1',
             tab2 like sy-ucomm value 'TAB1_FC2',
             tab3 like sy-ucomm value 'TAB1_FC3',
           end of c_tab1.
* DATA FOR TABSTRIP 'TAB1'
controls:  tab1 type tabstrip.
data:      begin of g_tab1,
             subscreen   like sy-dynnr,
             prog        like sy-repid value 'ZRICH_0002',
             pressed_tab like sy-ucomm value c_tab1-tab1,
           end of g_tab1.
data:      ok_code like sy-ucomm.
* OUTPUT MODULE FOR TABSTRIP 'TAB1': SETS ACTIVE TAB
module tab1_active_tab_set output.
  tab1-activetab = g_tab1-pressed_tab.
  case g_tab1-pressed_tab.
    when c_tab1-tab1.
      g_tab1-subscreen = '0101'.
    when c_tab1-tab2.
      g_tab1-subscreen = '0102'.
    when c_tab1-tab3.
      g_tab1-subscreen = '0103'.
    when others.
*      DO NOTHING
  endcase.
endmodule.
* INPUT MODULE FOR TABSTRIP 'TAB1': GETS ACTIVE TAB
module tab1_active_tab_get input.
  ok_code = sy-ucomm.
  case ok_code.
    when c_tab1-tab1.
      g_tab1-pressed_tab = c_tab1-tab1.
    when c_tab1-tab2.
      g_tab1-pressed_tab = c_tab1-tab2.
    when c_tab1-tab3.
      g_tab1-pressed_tab = c_tab1-tab3.
    when others.
*      DO NOTHING
  endcase.
endmodule.
*&      Module  STATUS_0110  OUTPUT
*       text
module status_0110 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
<b>  loop at screen.
    if screen-name = 'PTEST1'.
      screen-input = '0'.
      modify screen.
    endif.
  endloop.</b>
endmodule.                
Regards,
Rich Heilman

Similar Messages

  • Open tabs are not on tab strip. Have to click on List All Tabs button to find tabs. Tabs used to display on tab strip and stopped doing this. Suggestions?

    Been using Firefox for years, running Windows XP. This morning when I opened pages in another tab, did not see them on tab strip. Only way to find them is to click on List All Tabs Button and it shows list. Cannot get them to display on tab strip. If I open in another window, it works, like it should. If I click on plus sign on tab strip it opens another tab, but can't see the previous ones except with List All Tabs Button. Any suggestions on how to turn tab strip back on? Thanks, jayem33

    If it works in a new window then you can drags tabs from the not working window to that new window.
    You can also try to close the tabs via Ctrl+W and restore the closed tabs via Shift+Ctrl+T

  • Need script to handle event on button.

    Hi All,
             I need to handle some event on Button click.
    My requirement is quite simple. There is a DropDown List in PDF and a button.
    Depending the value selected by the user in DropDownList i want to display relevent blocks(Subforms) in PDF on Button Click. All the Blocks are made hidden initially.
    i.e User will select a value from Drop Down and click on 'Display' Button then
    I want to make Any peticular Subform Visible.
    I am unable to write scripting for it. Can anybody please help.
    Thanks and Regards,
    Atul.

    Hi,
    your adobe form must be dynamic for this functionality.
    Do you have Acrobat Reader 7.0 or later?
    Does it work in PDF Preview? If not, go to menu Edit -> Form Properties in LiveCycle Designer, tab Defaults. Preview Type must be Interactive Form, XDP Preview Format must be Acrobat 7.x Dynamic PDF.
    Does it work in PDF Preview now? If not your script is wrong.
    If you use Java WebDynpro, you must insert following code in wdDoModifyView:
      if(firstTime) {
        IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("YOUR FORM");
        iForm.setDynamicPDF(true);
    If you use ABAP and you create pdf by function module, you must set dynamic = 'X' in structere for exporting parameter /1BCDWB/DOCPARAMS .
    Michal

  • Condition Type Event for button doesnt fire after Tab Change?

    Hi,
    I have 3 Tabs (Interactive Reports) and when I change between these Tabs (without submit) my parameters getting null values, which is OK. For this situation my "condition type" of a button doesn't fire (button should disappear when parameter is null)?
    cheers,
    Bernhard
    Edited by: boffman on 05.07.2010 17:12

    IR reports use all the bells and whistles of DHTNL and Ajax. So without the Submit evnt you do not reload the page but only reload relevant regions (PPR).
    Net result is that the other items that have already been loaded when the page was loaded remain as they are, hidden or dispayed as the case may be.
    One could theoritically use Javascript to hide/show ($x_Hide and $x_Show) to toggle the buttom. But I am not clear how one would trigger that! which event on which HTML element? The tabs are generated by Apex as DHTML and that I believe is a black box.
    If a eent to trigger JS can be found then it will work.
    Regards.

  • Tab Strip Selection - Client Side Eventing

    Hello All,
    I have one tab strip with 5 tab strip item. Inside 1st tab strip I have one htmlb button and I want to trigger 2nd tab strip item while I am clicking the 1st tab strip buttonu2019s client side event.
    Is it Possible?
    I need Sample Code!
    Note: JspDynPage Client Side Event of Htmlb Button.

    Hi,
    Mainly tab strip utilized for random selection.
    So i Closed this Thread.
    Thank You,
    Devasarathy Pandi.

  • Radio Buttons and Tab Strips

    How Do Everyone!
    I have 3 tab strips in one selection screen.
    Each tab strip has 3 radio buttons on them. How can one
    find out out which button is pressed?
    e.g. Click on the second tab, the first radio button
         will be highlighted. However, the first radiobutton
         on the first and third tabstrips will also
         be highlighted.
    Can the radio buttons be set to null?
    Cheers
    Andy

    Each group of 3 radiobuttons needs to be associated with its own group.
    For example.
    report zrich_0001
           no standard page heading.
    selection-screen begin of screen 101 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    parameters: P_rad1 radiobutton group grp1 default 'X'
                                             user-command check,
                p_rad2 radiobutton group grp1,
                p_rad3 radiobutton group grp1.
    selection-screen end of block b1.
    selection-screen end of screen 101.
    selection-screen begin of screen 102 as subscreen.
    selection-screen begin of block b2 with frame title text-002.
    parameters: P_rad4 radiobutton group grp2 default 'X'
                                             user-command check,
                p_rad5 radiobutton group grp2,
                p_rad6 radiobutton group grp2.
    selection-screen end of block b2.
    selection-screen end of screen 102.
    selection-screen begin of screen 103 as subscreen.
    selection-screen begin of block b3 with frame title text-003.
    parameters: P_rad7 radiobutton group grp3 default 'X'
                                             user-command check,
                p_rad8 radiobutton group grp3,
                p_rad9 radiobutton group grp3.
    selection-screen end of block b3.
    selection-screen end of screen 103.
    selection-screen begin of tabbed block one for 20 lines.
    selection-screen tab (15) name1 user-command ucomm1
    default screen 101.
    selection-screen tab (17) name2 user-command ucomm2
    default screen 102.
    selection-screen tab (17) name3 user-command ucomm3
    default screen 103.
    selection-screen end of block one.
    initialization.
      name1 = 'Tab 1'.
      name2 = 'Tab 2'.
      name3 = 'Tab 3'.
    start-of-selection.
    Regards,
    Rich Heilman

  • Installed 3.6.8 and now cannot switch from one open tab to another

    my home page automatically opens 4 tabs, I updated to 3.6.8 on my mac laptop. Now when the tabs are open I cannot go from one open tab to another even though the tabs are still up.

    Download iTunes from Apple's web site and install it.  Don't use Software Update.

  • TABLE CONTROL IN TAB STRIP CONTROL

    hi experts,
    I have a problem with table control in tab strip control  i have table control in first tab
    and some text fields in second tab .
    i enter data into table control in  first tab and enter into second tab and i fill data into second tab also .
    then i press save after filling data into these two tabs  at that time table control data is not updating into corresponding table ,Because when the time  we enter into second tab data in table control is cleared .
    please give me a solution for this problem as early as possible.
    Note  : saving data is done after filling two tabs only.
    Regards,
    k.Rajesh.

    Hi,
    go through this code,
    DIALOG PROGRAMMING
    TABSTRIPS
    IN SE51 FLOW LOGIC MAIN SCREEN
    PROCESS BEFORE OUTPUT.
    CALL SUBSCREEN PER_REF1 INCLUDING 'YMODULE_PR8' '0200'.
    CALL SUBSCREEN SALE_REF1 INCLUDING 'YMODULE_PR8' '0300'.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    IN SE51 FLOW LOGIC FOR SCREEN 200. 1st TAB IN SUBSCREEN AREA.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0200.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0200.
    IN SE51 FLOW LOGIC FOR SCREEN 300. 2nd TAB IN SUBSCREEN AREA.
    PROCESS BEFORE OUTPUT.
    LOOP AT ITVBAK WITH CONTROL TABCTRL.
    MODULE STATUS_0300.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0300.
    LOOP AT ITVBAK.
    ENDLOOP.
    IN FLOW LOGIN OF MAIN SCREEN
    PROGRAM YMODULE_PR8 .
    TABLES : KNA1, VBAK.
    DATA : BEGIN OF ITVBAK OCCURS 0,
           VBELN LIKE VBAK-VBELN,
           ERDAT LIKE VBAK-ERDAT,
           ERNAM LIKE VBAK-ERNAM,
           NETWR LIKE VBAK-NETWR,
           END OF ITVBAK.
    CONTROLS : TABCTRL TYPE TABLEVIEW USING SCREEN 300,
                            TABSTRIP1 TYPE TABSTRIP.
    *&      Module  STATUS_0300  OUTPUT
    MODULE STATUS_0300 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    MOVE-CORRESPONDING ITVBAK TO VBAK.
    ENDMODULE.                 " STATUS_0300  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
      WHEN 'EXIT'.
        LEAVE PROGRAM.
      WHEN 'PERSONAL' OR SPACE.
        SELECT * FROM KNA1
         WHERE KUNNR = KNA1-KUNNR.
        ENDSELECT.
        TABSTRIP1-ACTIVETAB = 'PERSONAL'.  ## TO ACTIVATE TABSTRIP & MAKE IT                                                                               
    FUNCTIONAL
      WHEN 'SALES'.
        SELECT VBELN ERDAT ERNAM NETWR
          FROM VBAK
          INTO TABLE ITVBAK
         WHERE KUNNR = KNA1-KUNNR.
        DESCRIBE TABLE ITVBAK LINES TABCTRL-LINES.
        TABSTRIP1-ACTIVETAB = 'SALES'.  ## TO ACTIVATE TABSTRIP & MAKE IT                                                                               
    FUNCTIONAL
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100
    reward if usefull

  • Element container & tab strip

    Hi All,
        I creating z transction for my customer requirment . actualy i am new in dialog program. i want three subscreen in a main screen thru tab strip. but i dont know how to create element container and view and tab strip and how to assign sub creen to tab strip. plz help me out.
    Thanks in Advance
    Jitendra

    hi jeetu
    Yes u can make three sub screen in a main screen thru tab strip. You have to use tab strip (with wizard) option on his main screen.
    Step 1: When u choose tab strip and gives a area in screen then u got a screen of tab strip control wizard: start
                Choose continue and put the tab strip name TAB (optional) and select scrolling in the application server option
    Step 2: In the next screen u got the tab text here u can define header text for his screen at least two in your case it's three.
    Step 3: You’re got the three-sub screen and function code u can change them as u required .
    Step 4: Here u defines the program name where u want code in each box and select complete.
    Now u have three-sub screen, which is, define in step 3 with the program name and u can define each screen as u need.
    xxxxxxxxxxxxxxxxx (see forum rules)
    Kuldeep Singh Rawat
    Edited by: kuldeep singh rawat on Jan 19, 2008 5:56 AM
    Edited by: Armin Reichert on Jan 19, 2008 12:20 PM

  • Blocking Status Tab strip in VA02 for Certain users

    Hi,
           I have to block the status tab strip for certain users in VA02 tcode .
    this tab strip is shown when user double cick the line item.points will be rewarded
    Thanks and regards
    Prakash B.

    Hi,
    you can use in MV45AFZZ the PERFORM USEREXIT_FIELD_MODIFICATION.
    You can set the desired screen fields to inactive.
    Rgds,
    JP

  • Tab Strip eventing

    Hi,
    I have 4 tabs in data container, each tab associated with different event. Whenever i click on a tab , i want to display some data on top of the tab as dispaly only.  what is the better approach?
    I am thinking to create 4 web dynpro views and based on the selected tab, i  will show that perticular view or is there any efficient way to do this instead o creating 4 web dynpro views , can i create one and flip te data based on selected event?
    Please write the detailed steps to achieve the above task?
    Thanks
    Sri

    Hi Sri,
    Instead of creating 4 views, try to use 4 different transparent containers. Place the in corresponding containers. Create 4 different context attributes of the type com.sap.tc.webdynpro.progmodel.api.WDVisibility.
    Procedure:
    Click on "..." button in the properties of the context attribute. Select Local Dictionary -> Expand uielementdefinitions ->  Select WDVisibility. 
    After binding each context attributesto the corresponding visibility property of the transparent containers.
    Use this code to change the visibility in Tab strip  event handler.
    If (selectedTab.EqualsIgonreCase("Tab1")  )
    wdContext.currentContextElement().set<conatiner1Vis>(WDVisibility.VISIBLE);
    wdContext.currentContextElement().set<conatiner2Vis>(WDVisibility.NONE);
    wdContext.currentContextElement().set<conatiner3Vis>(WDVisibility.NONE);
    wdContext.currentContextElement().set<conatiner4Vis>(WDVisibility.NONE);
    else if (selectedTab.EqualsIgonreCase("Tab2")  )
    Feel free to revert in case of any issues.
    Regards,
    Siva

  • How do i set the home button to refresh open tabs instead of opening new ones each time i click on it

    Everytime i click on the "home" button, FF 3.6 opens my three home pages as three new tabs. If i click twice, it opens three more. In IE, if i click the home button i have a choice to either refresh the three tabs starting with which ever one is open (for example, if my second tab page is where I am, that becomes home page #1 and so forth) OR i can select the specific home page i want to return to via a drop down.
    At a minimum, I'd like to set my home button to just open using currently open tabs and not appending. It must be possible b/c DH's FF browser does not do this. What am I missing?

    The best way to keep your home page in the tab is to open other links in a new tab with a middle-click.<br />
    Clicking the home page always open a new set, so you would have to close the current tabs first to prevent getting multiple home page sets.<br />
    I don't know if there is still an extension that can open the home pages and replace the current set.
    See also:
    *https://addons.mozilla.org/en-US/firefox/addon/multiple-tab-handler/

  • How to handle event structures for two buttons and two counters.

         *I have two buttons A and B, and have to compare the difference in hits between them.  So do I place an event structure within a while loop for each button (2 buttons, 2 event structures, 2 while loops), or does it need to be one event structure with cases for both buttons whithin one while loop? 
         *How do I pass the values of buttons A and B's hit counters out of the while loop in order to calculate the differences between them after each increment, not just the final count after the stop button is hit? 
         *How would I make one stop button work to handle both buttons A and B?   I tried to place the actual stop button in one button A's structure and its global in B's structure, but It wont seem to let me use a local variable for a latchable control
    Checker

    You should probably have not started a new thread and waited until your question in the original thread was answered. You can modify altenbach's example for a second button. You have a single event structure with a new event for the second button. You have a second shift register to track the number of times the second button is pressed. Inside the while loop but outside the event structure, you just have a subtract function in or to report the difference. do not modify the posted example for the stop button. It works perfectly as is.

  • How do I put my Tab Strip up beside my Firefox button?

    I have one computer that is a Windows 7. On that computer my Tab Strip is beside my Firefox button, at the very top. Beside it I have added cut, copy, paste, and print icons. I just got a new computer and it is Windows 8. The Tap Strip is one level down, essentially taking up more space and leaving useless, empty space at the top. It also will not let me add any icons there. How can I get the new computer set up like the old one?

    The Firefox button and tab bar appear on the same row when the window is maximized. If you want the same thing when the window size is normal ("restored"), install the following add-on.
    * https://addons.mozilla.org/firefox/addon/tabs-always-in-titlebar/
    The above is no longer needed in the upcoming Firefox 29. Anyone interested in removing the gap at the top in that version of Firefox should have a look at the following thread.
    * http://forums.mozillazine.org/viewtopic.php?f=38&t=2813465

  • On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?

    On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?
    In my current Firefox, the "new tab" icon/item from the "customize" pop-up window menu of items is placed next to my home, back, forward buttons near the top-left of my header (Button 1 for "new tab"). Then, the tab bar automatically come with a small tab (with a + sign) to the right of your last tab opened (so you click on + and a new tab opens. Button 2 for "new tab"). I like to have this "new tab" button twice (as a + mini tab, and next to my "home icon".
    When I upgraded to Firefox 4, I seemed to be only able to "customize" or use the "new tab" in one place. Either as an icon next to home button, or as a "+ minitab", but NOT both.
    What can I do to put this button in Firefox 4 on BOTH places???
    Your help is really appreciated. I want to upgrade, but I want my buttons on both places...
    I upgraded to FF 4, but downgraded again just because this feature... that's just me of coarse :-)

    *New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

Maybe you are looking for

  • How many finger prints can be stored for use on the iPhone 6 plus and iPad air 2?

    my wife and I share the iPhone 6 plus can we both enter a finger print for access and payments On one device?

  • User status for production order

    From which table i can get the USER STATUS for a  production order?

  • "N/A" representation of a NULL field

    Hello... In one of our forte applications we have a rule entry / QBE type of window. On this screen the null columns represent "don't cares". For this window we would like to replace the standard "N/A" with '*' or blank. Is there a way we could chang

  • Please tell.........

    Hi all, Please tell me how a sample program is executed from development server via testing server to production server in realtime system.Please tell me all these in steps. Thanks in advance. Regards, Praveen

  • Library-directory in application.xml

    Will WL pick up all the jars that are specified in the lib directory or the directroy specified in the library-directory element of application.xml ? Do the classes all HAVE to be jarred up ? Can I just put a classes directory under lib and get WL to