on 07-15-2011 1:36 PM
Hi All,
I have a view in which i have around 40 input fields,dropdowns and stuff.
Below i have a button "Next" and "Back".
When the user has entered atleast one field or had changed atleast one field and then presses "Back" then a PopUp
should appear asking if hes sure to navigate.
If he hasnt entered or changed anything then the Pop Up shouldnt be coming..
How to achieve this.
Please guide me through this.
Thanks in advance,
Shravan
you have two ways to do this..
first one at attribute level and second one at node level.
you will have a method IS_CLIENT_CHANGED in the class, just like we have READ and SET. IS_CLIENT_CHAGED is one more method availble for checking whether the attribute has changed our not
you will similar method availble in the NODE class, just like we have BIND_TABLE, this is used to check whether the complete node has been changed our not.
IF_WD_CONTEXT_NODE=>IS_CHANGED_BY_CLIENT
IF_WD_CONTEXT_ELEMENT=>IS_CHANGED_BY_CLIENT
Edited by: ssm on Jul 15, 2011 7:09 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you please tell me where should I write my code
set_changed_by_client and
is_changed_by_client
I have the same requirement as u.
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need to carefully work on this one. as and when the data gets binded the value for IS_CHANGED_BY_CLIENT will be abap_true. so whenever you are coming into the view use SET_CHANGED_BY_CLIENT to abap_false. once the view is displayed and when the user tries to navigate check is_changed_by_client, if the user changed any thing it autom atically turns to ABAP_TRUE and then you can raise the message
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Its working fine but i have a small issue.
when the user entered sum value and clicks Back the popup is being displayed.
When he cancels the popup and undo the changes and then hits "Back" then the popup is again being displayed which is not my requirement.
Can anything be done regarding this.
Please help me out...
Thanks,
Shravan
Edited by: Shravan_Varma on Jul 16, 2011 8:17 AM
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.