Change of Tab in Tabstrip through Button

hi,
I want to change tabs through Buttons. I have given two buttons like Next & Previous. I have given contextAttribute "SelectedTab" and bind with selectedTab property of tabstrip. i have done this coding
public void onActionPrevious(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionPrevious(ServerEvent)
     if(wdContext.currentContextElement().getSelectedTab()=="FamilyTab")
          wdContext.currentContextElement().setSelectedTab("PersonalTab");
            else if (wdContext.currentContextElement().getSelectedTab()=="AddressTab")
               wdContext.currentContextElement().setSelectedTab("FamilyTab");
It is working fine. But this type of code is not good programming skills becoz there are so many tabs here.
Please give me some other coding so that code will be less and programming skills are good.
Regards
Manish

Hi,
As you told that for each tab you have seperate views.
Now create attributes previous and next in your controller and map it to each view.
Suppose you have 3 tabs:
Parent      Family      Address
In parent tab's view, in wdDoInit() write the following:
wdContext.currentContextElement().setPrevious("");
wdContext.currentContextElement().setNext("FAMILY_TAB_ID");
In family tab's view, in wdDoInit() write the following:
wdContext.currentContextElement().setPrevious("PARENT_TAB_ID");
wdContext.currentContextElement().setNext("ADDRESS_TAB_ID");
In address tab's view, in wdDoInit() write the following:
wdContext.currentContextElement().setPrevious("FAMILY_TAB_ID");
wdContext.currentContextElement().setNext("");
Now in the main view where you have tabs and the previous and next button, you can access the previous and next attributes.
Say onActionPrevious you can write:
wdContext.currentContextElement().setSelectedTab(wdContext.currentContextElement().getPrevious());
and in the same way you can write for onActionNext:
wdContext.currentContextElement().setSelectedTab(wdContext.currentContextElement().getNext());
Hope now you got my point.
thanks & regards,
Manoj

Similar Messages

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • How to change tabs in tabbedPane using buttons

    I have designed 2 tabs using tabbedPane.
    In the first tab I have a button. When I click on the button, I want it to automatically to switch to the second tab without having to click on the tab itself.

    Thank You!!
    That worked brilliantly :)

  • Hide the custom control while changing the tab

    Hello Experts,
    I am using many screens & subscreens in my application. In a tabstrip control, I am calling one subscreen which has Custom Control to display the text editor.
    When I change the tab say for ex from TAB1 to TAB2, the custom control with text editor remains at the same place. In TAB2 I dont want custom control of TAB1.
    Thank you to go through my query.
    Regards,
    Bhavina
    Edited by: Rob Burbank on Aug 23, 2010 5:12 PM

    Hello Alej,
    I have created one subscreen which i need in a tabstrip control. Now this subscreen has one Editor Control (CL_GUI_TEXTEDIT->TEXT_EDITOR)  which I put on Custom Control. Custom Control is placed in the subscreen with SE51.
    to put the editor control  of CL_GUI_TEXTEDIT, I need Custom Control on screen. And I didnt find any property using which we can hide custom control.
    Is there any way using classes or methods, can we put Editor Control without using the custom control of screen.
    I think in your prob, you had ALV, that we can put on another subscreen, but in my prob how can we remove custom control Please Explain.
    Thanks & Regards,
    Bhavina

  • How do I change Firefox tab information?

    I purchased a website template that opens up in Firefox tabs and I want to change it from Getpaid$6 to Getpaid$7 when customers access my website but I cannot find a way to change the tab information anywhere. Thank you for the help.
    Jonathan

    Hi Jayelbe,
    Thank you so much for trying to help me recently. The other problem is that I have constantly been trying to figure out why Firefox will not load images on my site and this is what I came up with doing research.
    Someone else said this but it didn't work when trying to get FF to load images because that area does not exist in my version under TOOLS<CONTENT<LOAD IMAGES.
    Everyone has the file, edit, tools, ect. bar. urs is probaly just hidden
    to make it reapear, open firefox, then look at the top left corner area of the firefox. there should be a button with a little house on it.
    Right click that button.
    Then choose Menu Bar.
    Now you should have the file, edit, tools, ect. bar:)
    So through the FF community I than found this
    FF is not loading images, just text
    The problem started when I updated Firefox to the latest version so it could just be a bug. On some websites graphics would no load and only the text would show up. The problem has been "spreading" and more and more websites that previously did not are now doing it. I have searched for older posts and tried doing what they suggested but no of them and worked. I've tried uninstalling and reinstalling FF, resetting browser settings, disabling hardware accel. Java and Adobe Flash are both the latest versions. I'll post the images of the first two pages I had problems with.
    Solved
    5 replies
    1 person has this problem
    0 new this week
    Anyway,thanks again and have a wonderful day or evening.
    Jonathan

  • How can I create a navigation bar in the template so I can change the down state of a button on a page made from the template in DW3?

    We're creating pages from a template in DW3. The template includes a header, footer and a navigation bar. We've made the navigation bar an editable region so that we can change the down state of the buttons on pages where it is required. However, when we make a new page from the template and try to change the behaviors of the buttons in the navigation bar it will not allow us to make those changes. 

    Have you considered using CSS styled text/list menus instead of image rollovers.  It isn't hard really and it's actually a much better choice for   web accessibility and for search engines to find and follow your links.   Here are some links to several CSS menu systems you can try:
    CSS Express Drop-Down Menus (tutorial)
    http://www.projectseven.com/tutorials/navigation/auto_hide/
    CSS Tab Designer creates 60+ CSS Styled Button and Tab Menus  (download)
    http://www.highdots.com/css-tab-designer/
    List-O-Rama  (DW Extension)
    http://www.dmxzone.com/go?5618
    CSS  Menu Maker (On-Line Menu Generator)
    http://www.cssmenumaker.com/
    Pop-Menu  Magic2 by PVII (DW extension purchase)
    http://www.projectseven.com/products/menusystems/pmm2/index.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Tab in Tabstrip Control in display mode (Module Pool)

    Hi friends,
    I am trying to give authorization based on sy-uname, in runtime based on uname the particular tab should be opend in a display mode and some in change mode.  please help me out in this
    Edited by: shravan sonayila on Aug 12, 2008 8:06 AM

    Hi,
    when u creating tabstrip,while defining each tab in tabstrip , u have to
    create one subscreen for each tab.i think u want one tab for display
    mode and one tab for edit mode. if u want this way , in one tab try to
    give fields all in invisible mode this for display mode and goto second tab if u want all visible only keep like that only other wise u have create geoups.when u press enter ,groups will be change.it means visible , invisible modes.
    u have to give logic for screen in pbo.
    *&      Module  STATUS_0300  OUTPUT
          text
    module status_0300 output.
      set pf-status 'GUI_300'.
      set titlebar 'TITLE_300' with v_title.
      if i_aktyp = 'H'.
        if temp_flag = 1.
          loop at screen .
            if screen-group1 = 'GP2'.
              screen-input = 1.
              modify screen .
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 0.
          endloop.
        else.
          loop at screen.
            if screen-group1 = 'GP1'.
              screen-input = 1.
              modify screen.
            else.
              screen-input = 0.
              modify screen.
            endif.
            temp_flag = 1.
          endloop.
        endif.
      elseif i_aktyp = 'V'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-input = 1.
            modify screen.
          else.
            screen-input = 0.
            modify screen.
          endif.
        endloop.
      endif.
    endmodule.                 " STATUS_0300  OUTPUT
    Try to give this logic.
    Regards,
    Ramya

  • I updated to os x 10.8.5 today and now I cannot publish changes to my web page through iweb.  iweb crashes every time I try to publish

    I updated to os x 10.8.5 today and now I cannot publish changes to my web page through iweb.  iweb crashes every time I try to publish

    First do the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    Next, in Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or Mountain Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file in your Home/Library/Application Support/iWeb folder that you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • How to change a TAB dynamically to be the active tab?

    Hi,
    I have a portlet written in Java and registered using a web provider. This portlet exposes a link which drives the content of another portlet through parameters&events.
    This other portlet is placed on the same page but on a different TAB (!).
    What I want is, when clicked on the link in Portlet1, this changes the content of the Portlet2 (via an event and parameter - that works) AND should change the TAB, so that the TAB which contains the Portlet2 is active and shown.
    I couldn't figure out, how to change the TAB with an event or any other way. I can easily change the page through an event, but not to a tab on the same page. Do I overlook something or can I just don't use events for this?
    Is there any API function which does changing tabs or getting the tab id or is there any other programmatic workaround to do dynamic tab changing?
    If so, can someone point me to a code fragment?
    Any help would be much appreciated.
    Cheers,
    Erik

    A work around may be to change the location.href to the url of the tab you want to switch to.
    Have you tried that already?

  • Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView

    Hi,
    My requirement is to hide the thet tabs ALL MY Trips,All my Travel REquest,All my travel Plans,Pending expense report from the tabstrip ALl my Expense report in Travel and Expense Application.
    I have gone through the thread and the sap note mentioned in
    Re: Problem hiding Tabs in Tabstrip of My Trips and Expenses WD ABAP iView
    My problem is tabs that has to be deleted /hidden does not present in the Development system, but exist in the QA or the prd system.
    So how to implement the note when data is not present in the dev system and only exist in the QA/PRD system.
    Pleas eprovide me your valuable inputs.
    Thanks in advance.
    Pooja

    Implemneted the note and problem is solved.

  • "Leave tab" event for tabs in TabStrip UI

    Hi
    I want to check that some input fields are valid and force users do not change Tab in TabStrip (until enter valid values for required fields) but I do not know is it possible this in Webdynpro? Does anybody know which is this event and may I use it in my WD Application?
    In TabStrip there is action for OnSelect event but this is event when user enters in Tab. I need event when user exits the tab.

    In BSP the tabStrip has a value "selection" which if you read the tabStrip to see the tab they selected you can store that value.
    Then check if the fields are filled in if so then pass the stored value back to the "selection" parameter and if not give the name of the tab they were currently on back to the "selection" parameter.

  • How do you change the tab outline color

    How do you change the tab outline color?  I wish to use a black style on my test program but the tab features have a white edge on the top and left sides to try and give a 3d look.  I've tried playing with the windows style but had no success.  Does anyone know how to remove this or change the color?  The closest I have got so far is setting a windows 7 basic theme which removes the 3d look.  This does however give a white background on the tab pages which I cannot find a way of changing in either CVI or windows.  Any suggestions?
    Thanks
    Solved!
    Go to Solution.

    Chris,
    Unfortunately, this border is only customizable through the Windows theme. Changing the theme to the basic is likely going to be the closest to what you are looking for without creating a custom theme for Windows.
    National Instruments
    Product Support Engineer

  • Navigate pages of tab control with radio buttons

    hi guy,
    i need to navigate 7 pages of a tab control container usings custom buttons. that is, when i click on a button, i takes me to the specific page on the tab control container.
    i think this can be done using radio buttons and tab control container, but i dnt really know how. please any help will be appreciated.
    thanks....

    Hi jiggaharry,
    I think I may have a link that addresses you issue. Do have a look at this link:
    Navigate Tab Control with Custom Buttons:
    http://forums.ni.com/ni/board/message?board.id=300​&message.id=6123
    We have a vast array of data on ni.com for examples and tutorials which could be very helpful in your code development. Do feel free to browse through and use the examples are they are all free of charge
    Hope the link is useful to you.
    Regards,
    Manick | AE | NI ASEAN

  • How do I change default tab from .5 to .25 in word 2008 for mac?

    Mountain Lion
    How do I change default tab from .5 to .25 in word 2008 for mac?
    Thanks
    Message was edited by: Rafael Montserrat1
    Thanks, Rafael

    They haven't been checked as Solved, it's an option for you to choose one if the answer has solved your problem. You can mark one answer as Solved, and two as helpful. Only you, as the originator of the topic, can see these buttons.
    Sorry for the goofed answer. Most people are looking to set the margins and I looked over that you were interested in the tabs.
    To save tabs in fixed positions that will appear with every new document, you must modify the default template. You can't open the template from the desktop. If you do, it will open as a standard document. You must open it from the Open dialogue box from within Word. With Word in the foreground, press Command+O and navigate to:
    /Users/your_account/Library/Application Support/Microsoft/Office/User Templates/
    Open the file Normal.dotm
    Set your tabs and save the file. Close the template. All new documents will now open with those preset tabs.

  • How to change the tab of a jTabbedPane when action performed

    The scenario is like this : I have a jTabbedPane with 2 tabs. I want, when an action is performed in one tab (for example a button is clicked on tab1) to change the tab automatically (to make tab2 visible). How can i do this?
    Thank you in advance

    I've read JTabbedPane API before i post the message, but unfortunately i couldn't find a solution to my problem. I tried to use the methods grabFocus and requestFocus to change the focus of the application, but it didn't work.
    Thank you for replying Nether.

Maybe you are looking for

  • Won't show picture

    so my friend hit it with a basketball and I'm willing to pay to get it fixed but the screen won't show anything its like it doesnt work but it will still make sound everytime i plug it in or get a notification. Does anyone know what exactly is wrong

  • OIM 11gR2 user not provisioning to Active Directory (11.1.1.5 connector)

    Hello all, I'm trying to set up an OIM 11gR2 instance to work with Active Directory with the Active Directory 11.1.1.5.0 connector. I've full installed both OIM and AD on separate servers, and I've installed the AD 11.1.1.5 connector on OIM. I have c

  • Computer "not authorized" to play song, but when I authorize it, it still won't play

    The last song I bought won't play.  When I attempt to play it I get a pop up that says "this computer is not authorized to play "name of song" would you like to authorize it?  I put in my apple id and password and try again and I get the same pop up.

  • Quality of Preview Images

    First of all, I think the idea of previews, especially in relation to referenced files, is a great one. However I've come across an issue with the quality of these previews. many have alluded to the fact that versions exported as JPGs with resoluton

  • POS Interface with no POSDM!! Possible?

    My client is planning to implement standard POS interface in IS Retail. I have worked several times with POSDM in order to post the Sales, Financial and Inventory Data into SAP, but all used standard POSDM. The client does not have POSDM license and