on 01-03-2008 2:54 AM
Hi All,
Cancel_navigation( ) is not working. I am keeping the method in Wdbeforenavigation itself.
Could anyone give me the reason why this is happening?
I have three buttons on the view. EDIT, DISPLAY, SAVE.
When user clicks on the save button and any one of the inputfields on view is empty then i am displaying the warning and using the cancel_navigation method to stop the navigation in the Application.
But this is not happening.
Earlier I was displaying the Attribute_errror_message and it was stoping the navigation by setting the parameter cancel_navigation to ABAP_TRUE.
Problem with the Attribute_errror_message is that the message is getting displayed thrice for which i dont know any reason. So i switched to this alternative.
Could anyone spend some time to read above description and suggest me some solution.
It is needed urgently.
Regards,
Arti.
hi arti......
a solution for you...
instead of going for cancel_navigation.....
you just stop firing the plug.
ex:
int the save event method:
1) first check teh values.....
if values not empty,
firee the plug.
else.
throw an error message.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
As described I am not firing the plug if the condition is not met. I am interested in stopping the user to access other functionalities on the view, alongwith stopping navigation to other parts of the Application, like to click on the EDIT or DISPLAY button . Firing the plug is not intended here.
Rgds,
Arti.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.