cancel
Showing results for 
Search instead for 
Did you mean: 

tabstrip + context questions

Former Member
0 Kudos

Hi all,

I have the following questions :

1. How to check of the context of a node is changed ?

2. I have an application with a tabstrip with 2 tabblads.

In the first tab i have a button : when i cklick to this button it fills the value of a textview with the tekst 'database update.'

My requirment is the following : when i go to the 2nd tab and back to the first tab i want t clear the tekst.

Hoe to do this ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

First a procedural point. According to the SCN Rules of Engagement, you should not post more than one independent question into the same forum thread.

1. For changes in the context, you can use the context change log API:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ae/eb56bd5dce494ebc89d55ebfc1fa96/frameset.htm

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a8e5d273b12fe2e10000000a42189d/frameset.htm

2. In a tabStrip you don't normally get a server side event on tab change. All tabs are rendered and the tabswitch is done on the client side via JavaScript. If you want a server event on tab change then you must have an event handler attached to onSelect.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a6/4aae42e5adcd6ae10000000a155106/frameset.htm

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

1. check this [Weblog|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4154] [original link is broken] [original link is broken] [original link is broken];

2. in the inbound plug handler method, you can clear the context attribute bound to the textview

Grtz,

Koen

Former Member
0 Kudos

I dont have any inboudplug

the only one is the default , but if i m switching from the one to the another tab, the debugger doesn't trigger this inbound plug.

I have in a tabstrip one table with some editable fields and a button to save changes.

so how to check if some changes are occured in the context ?

The method

data:

lr_context type ref to if_wd_context,

lt_changelist type wdr_context_change_list.

lr_context = wd_context->get_context( ).

  • To switch on logging:

lr_context->enable_context_change_log( ).

  • To get the change log:

lt_changelist = lr_context->get_context_change_log( and_reset = abap_false ).

lt_changelist is always empty --> so this does not work correctly.

Edited by: Moo Yac on Nov 3, 2010 3:55 PM