Skip to Content
author's profile photo Former Member
Former Member

How to Get the Tabstrip name

Hello,

i have a tabstrip UIelement and i want know which method will be generated each time when i am clicking on the next tabstrip;

exampl;

Tab1 Tab2 Tab3 Tab4

so, if i am clicking or changing from Tab2 to Tab3 and back to Tab2 there mußt be a way that i can know which tabstrip is generated, WDDOMODIFYVIEW will be generated only the first time, but after that i dont know which method will be generated , i used for this the method GET_SELECTED_TAB to get the name of the tabstrip

thank you all

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on May 09, 2011 at 04:02 PM

    the tab strip UI element has an action called "Onselect".

    everytime you change the tab it will be trigged.

    and tabstrip has a property called slected tab

    bind this property to an attribute in the context and then in the action eventhandler of OnSelect

    check the value of this attribute.

    it will have the selected tab's name .

    thanks

    sarbjeet singh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Saarbjeet, if i am not wrong the selected tab would return the TAB id and not the name (Header text ).

      I think for requirement, i would save the tabStrip instance in the wddomodifyview and on action of an event , get the tab from the tabStrip and from tab get the Header.

  • author's profile photo Former Member
    Former Member
    Posted on May 10, 2011 at 05:19 AM

    Hi Scafandri ,

    In your tabstrip UIelement you will get a action 'on Select' . Create a action. You will get three import parameter in your action name WDEVENT.

    Now do the following coding :-

    DATA TAB TYPE STRING.

    • display the value of the tab event parameter

    TAB = WDEVENT->GET_STRING( 'TAB' ).

    Now in the attribute TAB you will get the ID of the selected tab i.e. which tab you have selected.

    I think this will solve your query.

    Regards,

    Monishankar C

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 10, 2011 at 05:42 AM

    DATA tab TYPE string.

    Tab = wdevent->get_string( 'TAB' )...

    In Tab u will get the selceted tab name.

    Check it out once..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.