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

Similar Messages

  • 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.

  • 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

  • Messages issue in message area of Tab Strip

    Hi ,
    Iu2019m having 2 tabs in my Tab strip.
    Tab1 u2013 First tab.
    Tab2 u2013 Second tab.
    In both the tabs I have message areas.
    On click of a button in Tab1, iu2019m displaying an error message in the message area,
    but the same message is appearing in the message area of the tab2.
    I want to display messages to its corresponding tab only.
    Thanks,
    Shravan

    Hello Shravan,
    the message area is a common container so the messages that are raised in that serverrountrip will be displayed in all the message area ui element.
    solution would be to create an action handler method for the tabStrips' onSelect event (inorder to trigger the server roundtrip). this roundtrip will flush the stateless messages and you can raise new messages for second tab elements.
    hope this solves your problem.
    BR, Saravanan

  • Refreshing tab strip

    Hello Experts,
    I am working on Web Dynpro Java and I have created two tab strips and when I select the first tab for the first time the contents of that tab strip gets generated and the same with the second one. Now when I make changes in the second tab and then come back to the first tab... the changes in the second tab is not reflected in the first tab, it shows the same content.  but when I refresh the page the changes are seen.  Can any one help me out on refreshing the tab strip when I select it each time.
    I think WDPortalEventing.fire might be a solution but dont know how to implement it. If this will solve my question then can any one help me out on this too please
    the short form : I want to refresh the tab strip each time i select it.
    Thanks in advance

    Hi Satish,
    Just bind a new action to onSelect Event of the TabStrip. You don't have to write any code within to trigger this event when you make a switch from one tab to another within a tab strip. In case. you want to perform any function/validation to switch of tab then you can write the in the implementation of this action bound to onSelect Event of the TabStrip.
    Regards,
    Tushar

  • ALV tab strip tree and container

    Hi Gurus,
    i have a requirement , in which a list of records are displayed as tree ALV at output and when user clicks on any of the records then in the bottom of the screen , it should display its item detials as tab strip in the same screen ( i mean the reords which are initially diplayed and the tabstrip in the same screen) , initailly i should not get the tabstrip after double clicking only it should disply at bottom. this is achieved using OOPS ABAP....Pleas e help me on this......or any demo program.
    Thanks and regards,
    Rajesh.

    Hello Rajesh,
    Generally speaking, if you want to display records and record detail in the same screen, you can use docking container or splitter container.
    How to find sample code & report for the two?
    1. SE38, menu Enviroments->Examples->Controls Examples
    2. workbench Demos->Controls->Container  Controls->Splitter container and docking containers. From there you can see the source code of the two.
    In order to fulfill your requirement, you can use following code:
        CALL METHOD splitter->get_container
                          EXPORTING row      = 1
                                    column   = 1
                          RECEIVING container = container_1.
        CALL METHOD splitter->get_container
                      EXPORTING row      = 2
                                column   = 1
                      RECEIVING container = container_2.
    and put your record ALV into container_1 and put detail ALV into container2. Once you click hotspot in ALV in container1, you have to implement event handler so that the detailed information of the selected record is displayed in ALV2. You can refer to this PDF about how to achieve it, in SDN there is also lots of article to guide you.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Best Regards,
    Jerry

  • 2 message areas in tab strip

    Hi,
    I am facing the following problem:
    My application has 2 tabs in a tab strip. each tab hosts 1 view.
    I need to have 1 message areas in each view.
    However, if I define 2 message areas, one for each view, all the messages I raise, go to only one of the views...
    Is it impossible to have 2 message areas in the application?
    This is how i raise messages to the messager area:
    errorMsg = wdComponentAPI.getTextAccessor().getText(IMessageTaskList.MSG__TASK__NAME__ALREADY__EXISTS);
    wdComponentAPI.getMessageManager().reportException(errorMsg, true);
    Please assist.
    Reagrds,
    Oren.

    Hi,
    Create a event handler on onSelect of the tab Control UI.
    Map the parameter tab as one of the parameter.
    @tab will return you the currently selected tab.
    Your method signature will be as shown below
    public void onActionTabSelectionChange(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String tabName )
    tabName should be mapped to tab.
    write the following code snippet in wdDoModify
    if(firstTime)
    IWDTabStrip tabStrip = (IWDTabStrip)view.getElement("tab");
                     IWDParameterMapping mapping = tabStrip.mappingOfOnSelect();
                     mapping.addSourceMapping("tab", "tabName");
    Regards
    Ayyapparaj
    Message was edited by:
            Ayyapparaj KV

  • TAB STRIP in a componet

    Hi
    I am new in SAP CRM 2007. I am developing a new component. I want to use the element htmlb/xhtmlb TAB STRIP, but when I use this in my view, a javascrip error occurs (object expected) and Tabs are not shown.
    I dont know if I need a label or anything else...
    My code is
    <xhtmlb:tabStrip id                       = "ts3"
      <xhtmlb:tabStripItem title = "Tab N 1"
                           name  = "ti1" >
       Test1
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem title = "Tab N 2"
                           name  = "ti2" >
       Test2
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem title   = "Tab N 3"
                           tooltip = "Tooltip for Test 3"
                           name    = "ti3" >
        Test3
      </xhtmlb:tabStripItem>
      <xhtmlb:tabStripItem title   = "Tab 4"
                           tooltip = "Tooltip for Test 4"
                           name    = "ti4" >
        Test4
      </xhtmlb:tabStripItem>
    </xhtmlb:tabStrip>
    Thank you for help me.

    Hi,
    I was also trying to find the same tab strips but could not find relevent material. So used substitute solution. I created buttons seperated by '|'. My screen looks some what like this.
    View
    Button1  |  Button2  |  Button  3|  Button 4
    Field 1
    Field 2
    Field 3
    Now when i click on button 1 i called even and from event to outbound plug which navigate me to view 1. Similarly click on button 2 helps me to navigate to view 2 and similarly button 3 and 4 to view 3 and 4 respectively. It works like tab strips but not same as it..
    Best regards
    Pankaj Kumar
    Edited by: Pankaj Kumar on Nov 14, 2008 7:00 PM

  • How to remove the search bar in the tab strip?

    My latest firefox update includes a search bar IN THE TAB STRIP on top of the page (not the one in the navigation toolbar). It takes up too much space for the tabs and it is useless (since there is already a search bar below it in the navigation toolbar). How do I remove it?

    I was able to fix the problem in Safe Mode. It was an extension disguised as a Firefox original part, named itself as "firefox default tabs." I am not sure how I got it since I have not downloaded anything recently. My Kaspersky did not block anything as well. But, huge thanks!

  • Data not storing in Custom infotype build with tab strips

    Hi All,
    I have created one custom infotype 9030,
    With screen 2000.
    which is having tab strips, I have build the screens refering to p9030-zztest its not storing in database.
    where I am doing wrong...please let me know what should be done in this case.
    Regards
    Satish.v

    Hi,
    Checkout the below link :
    <link to blacklisted site removed by moderator>
    Shailaja Ainala.
    Edited by: Thomas Zloch on Jan 28, 2012 9:06 PM

  • How can i keep multiple tabs in the tab strip without them compressing into one tab?

    when i open more than 6 windows , they all compress into one tab from where i have to access pages with a drop down menu. i want all the tabs to open up and the individual tabs to appear separately on the tab strip which can be scrolled up or down. thank you

    hi
    the problem is in the firefox tab strip at the bottom of the page. i have attached two screenshots . when i open more than 6 tabs, they all get compressed into 1 tab. i want all tabs to stay open individually, and the tab strip should therefore have a page scroller icon forming when many tabs open. i have had this in the earlier computer i had, but recently got a new one. now i cant figure how to set firefox to do what i need.
    thanks

  • In FF 7.0.1, the New Tab button on the Tab Strip disappeared after clicking the Tab Group icon and trying to return, so I'm looking for advice on how to get the New Tab to reappear on the Tab Strip.

    In Windows Vista, FF 7.0.1, I selected the Tab Group button to try it out. However, when I selected the Tab Group button again to close that view, the New Tab button in the Tab Strip no longer appears. I'm requesting help to restore the New Tab button (has the "+" sign on it) on the Tab Strip just to the right of the currently open tabs.

    You can find the New Tab button showing as a '+' on the Tab bar.
    You can open the Customize window and drag the New Tab button that shows as a plus sign (+) from the Tab bar on another toolbar and it will become a regular toolbar button like the New Tab button that you have in Firefox 3 versions.<br />
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    If you can't find the New Tab button then click the "Restore Default Set" button in the Customize window.
    If you want the New Tab button at the far right end of the Tab bar then place a flexible space to the left of it.

  • 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

  • Tab Strip with multiple views refresh issue

    I have created a tab strip with two tabs.  Each tab has a view container element.  Each view has an iFrame which points to an ABAP report exposed as a web service (url).  I put a refresh button on the first view which fires an outbound plug which is directed to the same view.  This refreshes the first view just fine.  However, it also refreshes the second view.  I don't want to refresh the second view.  Is there a way around this?

    Hello Kenneth,
    i would try another way and use [Suspend&Resume|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/19bf8c16f25d7ae10000000a11466f/content.htm]. But that works only on component-level. So i would create 3 components A,B,C.
    Comp A has a tabstrip and inside each tab a ViewContainer Element (VCUI). Inside the VCUI's you call (the used) components B and C using Suspend & Resume Plugs. Components B and C only have one view each with an iframe calling the specific report.
    So you can refresh both components differently.
    Kind regards, Andreas

  • How to get active tab strip name using standard function ?

    Dear all,
    I have 5 Tab strip in my view, how can i know which tab strip is active during runtime ?
    Best Regards
    Fernand

    HI
      I hope you may be looking  at this thread , hope its  a  similar requirement as yours
      How to get the selected Tab from a TabStrip.
    Thanks

Maybe you are looking for

  • I am trying to trigger a custom event using a program but does not work ..

    HI ....i am trying to trigger a custom event of a custom object type using a program but does not work. If trigger the same event using SWUE it works. below is the code... {Key = '0010001115'. "Sales Order Number (hard-coded) CALL FUNCTION 'SWE_EVENT

  • How to rebuild index from different schema

    Hi All, I want to rebuild an Index of schema A from Schema B. Is there any grant needs to be give to Schema B in order to rebuild index of Schema A? Thanks, Tarak

  • Children's Start-up Looking for Flash Site Designer

    New Los Angeles based children's media start-up is looking for a creative independant Flash website developer. Please send links to [email protected] or post them in this forum. This project needs to be completed by 12/31/06. Thank you, David

  • How to develop custom page using Hgrid

    Hi, I have to develop one custom page with hierarchy. I think it will reach through hgrid. So how to develop page using hgrid. Thanks in advance, Hanimi....

  • FDM  data in  Essbase and Planning

    Hi I have done FDM migration from Dev server (11.1.2.2) to production server (11.1.2.2) by following below step: 1.i had restored dev server sql database to prod server 2. from workbench - Entered the name for the application, path to the copied appl