on 2006 Aug 03 7:51 AM
hi,
I have a form to update the personal data.The existing data is fetched by using a RFC.Now My requirement is as follows:
The UI elements are bound to the view context elements wihich are populated by the model.
Now I need to call the update RFC ONLY IF the user has made any changes to ANY of the data in the screen.
Is there a way to know if the data in the screen is changed?
thanx,
Bhupesh
Hi,
Try the following ways: get current Element based on the node(which is bound to view). In the Element has one method 'isChanged()', which return boolean. Based on that you can findout the chnage.
This might solve your problem.
Kind Regards,
S.Saravanan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think it's better to determine this from the model object itself, rather than the node.
ARFC model objects generated from BAPIs an be typecasted to <i>ICMIModificationCount</i>.
So you will need to check the <i>modCount()</i> for every model object as soon as the view is loaded. Save this count somewhere. This should be much better than iterating through all your node elements and checking if they have been modified.
Now when you want to find out if the view has been changes or not, check the saved value with the current <i>modcount</i>. If they are not equal, then there has been a modification.
Regards,
Satyajit.
Hi
You can check the Element by check
wdContext.current<node>Element().isChanged();
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
with Web Dynpro ABAP there is a concept for detecting changes the user has made. Please refer to the dodumentation or have a look at the example component DEMO_CONTEXT_CHANGES.
Regina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
You have to check the old value with the new value for detecting
Regards
Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.