on 11-03-2010 12:49 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.