Active tab in tab_strip

Hi,
     I have a tebstrip with 4 tabs and a button in my view
if i click the button the tab 1 should be selected in the tabstrip.
please let me know how to do this in codeing.
Regards,
Kumar K

Hi Kumar,
This is the approach suggested by SAP. Whenever you want to modify any particular property of an ui element we need to have it bound to some context attribute & we modify the value of this context attribute. We can even do it using dynamic programming but this way we would end up changing the ui elements properties in a method other than the WDDOMODIFYVIEW which is strongly not suggested. However am just giving you the methodology & code for the dynamic programming approach code just for your understanding:
1) Fetch the reference of your tabstrip by passing its ID within your WDDOMODIFYVIEW
2) Save the reference obtained in a view level attribute
3) Now within your action handler method just use this reference to set the desired tab as selected
Regards,
Uday
method WDDOMODIFYVIEW .
  check first_time = abap_true.
" Fetching the reference of the tabstrip. My tabstrip id is TABSTRIP
    wd_this->gv_tabstrip ?= view->get_element( id = 'TABSTRIP' ).
endmethod.
METHOD onactionset_focus_ontab1 .
" Use the earlier obtained reference to set the first tab as selected
" My first tab's id is TAB1
  wd_this->gv_tabstrip->set_selected_tab( value = 'TAB1' ).
ENDMETHOD.

Similar Messages

  • When I click on the tab with a + on it, located next to the active tab a new page does not open. If I click on "New Tab" in the File menu a new tab does not ope

    When I click on the tab with a + on it, located next to the active tab a new page does not open. If I click on "New Tab" in the File menu a new tab does not open.

    Hi jcatx2013, we don't really have enough information on your system to make specific suggestions...
    Could you test in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • How can I get Firefox 4 to display the URL of active tabs in the location bar so I can see and copy it?

    The only URL that I ever see in the location bar is the last one I typed there. No matter which tab I activate, the last typed URL is displayed. When I need to copy the URL of an active tab to paste into an email or something I can't see it.
    The location bar used to display the URL of each active tab and you could simply click in the address field and the URL would be highlighted so you could edit/copy it or jump to the end of a very long URL to see the final file name.
    I can't get this feature to work and I really need this feature as I need to copy URL's quite often. When I have multiple tabs active I sometimes forget which one is for which domain and need to see the URL. It is very annoying to surf blind.
    Please help me with this issue as quickly as possible so I can once again do my work easily and with the firefox browser instead of chrome. :(

    A couple of possible causes.
    The first is the file that stores details of browsing history and bookmarks is corrupt. For details on how to fix that see http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
    Another possible cause is an add-on interfering with the location bar. To test this, use the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Error while creating activities from Account application (Activity tab page

    Hi Experts,
                       We are using CRM 5.0 with PCUI ( EP 7.0 version). We are getting  below error when try to create activities from Account application in PCUI ( from activity tab page):
    Error : Activity contains error.
    Diagnosis
    This transaction has errors.
    Procedure
    To correct the errors, go to the maintenance interface of the transaction.
    To navigate to there, use the link to the account application
    Pls suggest how to proceed with this error & helpful solutions would be rewrded generously.
    Regards,
    Basavaraj Patil

    Hi Experts,
    We are getting this error when try to create Activity from Account application in PCUI. But the same thing is working fine in at GUI level & actions profile assigned to Activity transaction is also working fine at GUI level. But in PCUIit is throwing this below error.
    Diagnosis
    You have attempted to create a follow-up transaction for an incorrect transction 2000764. This is not possible. You can only create follow-up transactions for error-free transactions.
    System Response
    The follow-up transaction is not created.
    Procedure
    Correct the errors in the source transaction 2000764. The error messages resulting from processing the error can be read in the application log in the source transaction.
    Pls suggest solution for this.
    Thanks in Advance.
    Regards,
    Basavaraj Patil

  • I am having two problems with tabs in FF 4.0.1: no close "x"; and new tabs don't open adjacent to active tab.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/819008]</blockquote><br>
    I don't know if it's a glith with mine, a change in the software, or a setting that isn't set, but my tabs don't have an "x" to close them.
    Also, my previous version of Firefox opened a new tab adjacent to the active tab. Version 4.0.1 seems to have returned to the older standard of opening tabs at the end of the list. Is there a way to switch where new tabs open?

    You can reset the tab prefs on the about:config page in case they have been changed.
    * browser.tabs.insertRelatedAfterCurrent
    * browser.tabs.closeButtons
    If you want a close X on the first tab if only one tab is open then set browser.tabs.closeWindowWithLastTab to false.
    * http://kb.mozillazine.org/about:config
    * http://kb.mozillazine.org/Resetting_preferences
    If you have tab related extensions then check their settings (Options).
    * Tools > Add-ons > Extensions

  • Determine the active tab in a selection screen

    Hello,
    is it possible to determine which tab is currently activated in a selection screen with several tabs?
    I will include different code in different tabs. When pressing the "execute" button the  program should return the active tab (as a value).
    Thanks
    Florian Schwaiger

    Hi florain,
    Before you can use a tabstrip control in your ABAP program, you must create a control for each control in the declaration part of your program using the following statement:
    CONTROLS <ctrl> TYPE TABSTRIP.
    where <ctrl> is the name of the tabstrip area on a screen in the ABAP program. The control allows the ABAP program to work with the tabstrip control. The statement declares a structure with the name <ctrl> . The only component of this structure that you need in your program is called ACTIVETAB.
    Use in the PBO event
    Before the screen is displayed, you use the control to set the tab page that is currently active. To do this, assign the function code of the corresponding tab title to the component ACTIVETAB:
    <ctrl>-ACTIVETAB = <fcode>.
    When you page at the SAPgui, you only need to do this once before the screen is displayed. This initializes the tabstrip control. The default active tab page is the first page. After this, the page activated when the user chooses a tab title is set within SAPgui.
    When you page on the application server, you must assign the active page both before the screen is displayed for the first time, and each time the user pages. At the same time, you must set the required subscreen screen.
    You can suppress a tab page dynamically by setting the ACTIVE field of table SCREEN to 0 for the corresponding tab title.
    Use in the PAI event
    In the PAI event, ACTIVETAB contains the function code of the last active tab title on the screen.
    When you page in the SAPgui, this allows you to find out the page that the user can currently see. When you page at the application server, the active tab page is controlled by the ABAP program anyway.
    The OK_CODE field behaves differently according to the paging method:
    Paging in the SAPgui
    When you page in the SAPgui, the PAI event is not triggered when the user chooses a tab title, and the OK_CODE field is not filled. The OK_CODE field is only filled by user actions in the GUI status or when the user chooses a pushbutton either outside the tabstrip control or on one of the subscreens.
    Paging on the application server
    If you are paging at the application server, the PAI event is triggered when the user chooses a tab title, and the OK_CODE field is filled with the corresponding function code.
    To page through the tabstrip control, you must assign the function code to the ACTIVETAB component of the control:
    <ctrl>-ACTIVETAB = <ok_code>.
    This statement overwrites the function code of the last active tab page with that of the new tab title. At the same time, you must ensure that the correct subscreen is inserted in the subscreen area.
    Otherwise, tabstrip controls are handled like normal subscrens in ABAP programs, that is, the ABAP program of a subscreen screen must contain the dialog modules called from the flow logic of the subscreen.
    Examples
    Tabstrip control, paging at SAPgui
    REPORT DEMO_DYNPRO_TABSTRIP_LOCAL.
    CONTROLS MYTABSTRIP TYPE TABSTRIP.
    DATA: OK_CODE TYPE SY-UCOMM,
          SAVE_OK TYPE SY-UCOMM.
    MYTABSTRIP-ACTIVETAB = 'PUSH2'.
    CALL SCREEN 100.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE USER_COMMAND INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'OK'.
        MESSAGE I888(SABAPDOCU) WITH 'MYTABSTRIP-ACTIVETAB ='
                                      MYTABSTRIP-ACTIVETAB.
      ENDIF.
    ENDMODULE.
    thanks
    nagendra

  • How to Make the label of the active tab-page BOLD?

    Hi All
    I am working on forms 10g(version 10.1.2.0.2 ) with Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on windows 2000 platform.
    My requirement is to make the label of the active tab-page either in italics or with a different color or make it BOLD than the other pages of the canvas.
    Any suggestions ?
    Regards
    Mohan

    there are no properties for those requirements on tab-pages. You can't do it.
    Setting italic for all Tabpage-Labels is possible, when you change it in the canvas-properties. But you can't change only one tabpage.
    One Solution is, what Jeneesh said: Active-Style. But only "Bold" and for the active tab.
    Gerd

  • Tab labels are grayed out except for active tab. This was not always the case. How to fix this?

    I recently had the 29 upgrade forced on me. I did not like the new lay out. I was trying different things and I hit the restore defaults button. After I did this, any tabs that I had open that were not the active tab, the labels was grayed out. I want the labels to stay the same. How do I get this fixed?

    Why do I have to install an extension to get back to the style I want to use? This is ridiculous.

  • In v3.x clicking my programmed "close" mouse button closed only active tab, in v4 it closes entire program, how do I change it back?

    One feature I loved in Firefox v3.6 was closing tabs with a programmed mouse button. My Microsoft Intellimouse has a button that I programmed for the "Close" command. In 3.6, clicking this button would only close the active tab I was on. This made for fast opening and closing of tabs. It's the main feature that made me ignore all other browsers actually.
    Now I got updated to v4. And now, clicking my mouse's Close button closes out the Firefox window completely, just as though I'd clicked the window close "X" in the upper right.
    How can I get it back to the way it was in 3.6?

    I have the same problem with a Microsoft Comfort Optical Mouse 3000.
    The problem with the mapped close button closing the program, instead of tabs, only happens in Firefox 4.0.
    The close button works correctly with Chrome 10, IE8 and Firefox 3.X.

  • In 3.6, "Close" command closed active TAB; in 4.0, it closes Firefox.

    '''I used a programmable mouse. Clicking the MOUSE WHEEL is equivalent to "CLOSE" ... and in Firefox 3.6 and earlier, it would close the active tab. NOW, in 4.0, it closes Firefox ... the whole program! I want it to just close the active tab, like it used to.'''

    @Xircal : I try in safemode not work :(
    @the-edmeister : It's a '''ACER TRAVELMATE 5730''' And I have instal the '''driver : Alps Pointing-device '''
    thanks for the fast answers

  • Active tab in safari

    hi all  I'm  trying to find out if there is an extension for safari to show me which tab is active  if i open a lot of tabs some of them start playing audio and it's frustrating trying to find the pages with the active audio.  if anyone knows how to solve this annoying problem it would be much appreciated  thank you. 
    rdg

    hi Carolyn thanks for replying but i didn't  explain my problem properly  what i meant was this I'm on an open page thus making it the active tab when i open a bunch of other tabs where one or more tabs starts playing audio. Safari is not set to go to each tab as it opens so I remain on my original page  i want to find which of those tabs are playing the audio.  That's how I should've phrased my question  thanks for your reply  --  rdg

  • Active tab in Tabstrip on Report screen

    Hi.
    I developed a Report which has a tabstrip on its selection screen. After user press F8 and execute the report and it writes the result. When it come back to selection screen, it always come back to first tab. I want to back to last selected tab.
    I want to define the active tab. How to do that ?
    thanks.
    Glauco

    Solved by myself.
    AT SELECTION-SCREEN
          IF sy-ucomm(5) = 'UCOMM'.
            g_active_tab   = sy-ucomm. "tabs-activetab.
            g_active_dynnr = 9000.
            g_active_dynnr+3(1) = sy-ucomm+5(1)."tabs-dynnr.
            EXPORT ztab = g_active_tab   TO MEMORY ID 'ztab'.
            EXPORT zdyn = g_active_dynnr TO MEMORY ID 'zdyn'.
          ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      IMPORT ztab = g_active_tab   FROM MEMORY ID 'ztab'.
      IMPORT zdyn = g_active_dynnr FROM MEMORY ID 'zdyn'.
      IF g_active_tab IS NOT INITIAL.
        tabs-activetab = g_active_tab.
        tabs-dynnr     = g_active_dynnr.
      ENDIF.

  • What are the KEYstroke(s) used to CLOSE the active tab in the web browser?

    What are the KEYstroke(s) used to CLOSE the active tab in the web browser? I am reluctant to use a mouse where I can use keystrokes, as the mouse is a much slower process. In fact, can I find a list of all key strokes which can be used in Firefox, e.g. ALT+S followed by R (once or more) and ENTER used to restore previous browsing session; or CTRL+F to search for a specific word or term? Thank you.

    http://support.mozilla.com/en-US/kb/Keyboard+shortcuts
    http://www.7is7.com/software/firefox/shortcuts.html
    http://www.mvps.org/dmcritchie/firefox/keyboard.htm

  • Active tab in a tabstrip

    Is it possible to manually set the active tab in a tabstrip?
    Thank you,
    Bogdan

    Hi,
    I will give u some sample code to do that
    PROCESS BEFORE OUTPUT.
      MODULE status_9000.
      MODULE main_tab_active_tab_set.
      CALL SUBSCREEN main_tab_sca
        INCLUDING i_main_tab-prog i_main_tab-subscreen.
    PROCESS AFTER INPUT.
      MODULE user_command_9000.
      MODULE main_tab_active_tab_get.
      MODULE main_tab_active_tab_set.
    DATA FOR TABSTRIP 'MAIN_TAB'
    CONTROLS:  main_tab TYPE TABSTRIP.
    DATA:      BEGIN OF i_main_tab,
                 subscreen   LIKE sy-dynnr,
                 prog        LIKE sy-repid VALUE
                                  'ZCSVO_COGNOS_EXTRACT',
                 pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,
               END OF i_main_tab.
    <b>MODULE main_tab_active_tab_set OUTPUT.</b>
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
      To display open orders report
         i_main_tab-subscreen = '9100'.
          CALL METHOD o_alvgrid1->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output1[]
             it_fieldcatalog               = i_fieldcat[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
        WHEN c_main_tab-tab2.
      To display due for biling report
          i_main_tab-subscreen = '9200'.
          CALL METHOD o_alvgrid2->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant2
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output2[]
             it_fieldcatalog               = i_fieldcat3[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
    WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_SET  OUTPUT
    *&      Module  MAIN_TAB_ACTIVE_TAB_GET  INPUT
          text
    <b>MODULE main_tab_active_tab_get INPUT.</b>
      CASE sy-ucomm.
        WHEN c_main_tab-tab1.
          i_main_tab-pressed_tab = c_main_tab-tab1.
        WHEN c_main_tab-tab2.
          i_main_tab-pressed_tab = c_main_tab-tab2.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_GET  INPUT
    *&      Module  USER_COMMAND_9000  INPUT
          text
    <b>MODULE user_command_9000 INPUT.</b>
      CASE sy-ucomm.
        WHEN 'BACK'.
          PERFORM exit_program.
          SET SCREEN '0'.
        WHEN 'EXIT' OR  'CANC'.
          PERFORM exit_program.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  MAIN_TAB_ACTIVE_TAB_SET  INPUT
          text
    <b>MODULE main_tab_active_tab_set INPUT.</b>
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
            i_main_tab-subscreen = '9100'.
        WHEN c_main_tab-tab2.
            i_main_tab-subscreen = '9200'.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_SET  INPUT
    Try this out.
    Thanks & Regards,
    Judith.

  • I use "firefox -new-tab anyPage.html" but it does not open it in new tab. Instead it replaces the last active tab.

    Well I use following command to view offline pages using firefox on my linux box
    $ firefox -new-tab anyPage.html
    But instead of opening it in new tab, it replaces the last active tab.
    I have tired
    $ firefox -new-tab anyPage.html &
    $ firefox -remote "openurl(anyPage.html,NEW_TAB)"
    But none works.
    Sometimes it do open in new tab but mostly it does not. I have been unable to figure out any pattern.
    == This happened ==
    Every time Firefox opened

    (''Note: cross posted from [https://support.mozilla.com/nl/questions/801471 here].'')
    I had the same problem, but was able to fix it somewhat.
    # Open the about:config page.
    # Set the ''browser.link.open_newwindow.restriction'' setting to 0 (= zero).
    On my machine this will open new windows in a new tab. However, it switches to the new tab regardless of the setting ''"When I open a link in new tab, switch to it immediatly"''.

Maybe you are looking for