on 05-09-2011 3:56 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DATA tab TYPE string.
Tab = wdevent->get_string( 'TAB' )...
In Tab u will get the selceted tab name.
Check it out once..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
On Select of TABSTRIP will trigger when you click on any of the tabs of a given tabstrip.
If you have 1 or more tabstrips, you wanted to know which tabstrip is clicked...MODIFYVIEW will get triggered. there is a parameter VIEW of type if_wd_view. Please use this to get the tabstrip name.
On_Select is specific to tabstrip.
And one more thing, If you have clicked any tab of a given tabstrip, there also you can get the TABSTRIP name. Usually the TAB name will be refereced by TABSTRIP.TAB name right. Using this also you can get to know.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.