cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing (or invalidating?) of Context Node by changing Tabs (Tabstrip)

Former Member
0 Kudos

Hi Experts,

I have 4 Tabs on a Tabstrip. Two of these Tabs have two tables with one Context Node. Two other Tabs have also two tables with One Context.

The combination is similar to this:

Table A (on Tab A) and Table B (on Tab B) are bound to Context Node 1,

Table C (on Tab C) and Table D (on Tab D) are bound to Context Node 2.

By changing the Tabs, the content of the tables with the same context stays the same.

Where and what is the best Place/way for initializing (or invalidating) the Nodes by changing the Tabs?

Thank you for any help

Kind regards, Haleh

Edited by: Haleh Mir Ashrafi on Oct 8, 2009 11:03 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ,

u wud also like to refer this article Link: [Working with Tabstrips in WDA |http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/000334e2-f34d-2c10-dd8c-94194607e888&overridelayout=true]

As Radhika depicted , u can use the method onSelectEvent of ur tabstrip.

here u can take reference of the node and cn invalidate it


  DATA lo_nd_cn_sapsystem TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_sapsystem TYPE REF TO if_wd_context_element.
    DATA ls_cn_sapsystem TYPE wd_this->element_cn_sapsystem.
*   navigate from <CONTEXT> to <CN_SAPSYSTEM> via lead selection
    lo_nd_cn_sapsystem = wd_context->get_child_node( name = wd_this->wdctx_cn_sapsystem ).

 lo_nd_cn_sapsystem->invalidate( ).

regrds,

amit

Former Member
0 Kudos

Hi Radhika, Amit and Saurav,

thank you All for your prompt reply and sorry for delay. I implemented the invalidate funktions in the onselect event of the tabstrip on different places and it works.

Have a nice day

Best Regards

Haleh

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

Invalidate the node in OnSelelect Event of TabStrip.

lo_nd_hcp->invalidate( ).

Former Member
0 Kudos

Implement the onSelect event for tabstrip.