on ‎2011 May 23 6:14 AM
Hi,
Description: When we enter data other then what is defined for a UI element, we get an error and are not allowed to proceed ahead till we correct it.
e.g. When we define a context attribute as type Date and suppose enter alphabets we get an error message u201CXYS is not a date format u201C.
In my requirement I have a time field. When time is less than 3 hours 30 mis I display a popup with input field. This popup window has OK and Cancel Button.
Now when I enter a wrong time format say 03:2:00 instead of 03:20:00 .Popup window comes and displays a error message time format invalid.
Problem: The problem is user is not allowed to go back to main screen because of error.
OK and cancel button are not working. I think the reason is these standard error messages had cancel navigation as TRUE.
This is the problem at all places when popup comes and user has enters a wrong data in the screen.
Please guide how to avoid same.
Regards,
Madhvika
Edited by: Madhvika Joshi on May 23, 2011 1:15 AM
Request clarification before answering.
Hi Madhvika,
Popup view is Modal view, so without closing model veiw you can't access main veiw. I Think this is the problem.
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aditya,
Popup comes when there is a validation failure that total time is less than 3 hours 30 mins and travel class selected as Business. On any first action code in wdbeforeaction is executed and popup is displayed.
Now problem is user has entered wrong time format and selected business class. Check for entered data if itu2019s valid or not is done by SAP.
Both action display of popup and sap check for invalid data happens at the same tine and thus error message is displayed on popup window.
So no navigation is possible with ok and cancel button that is the problem.
Hope itu2019s clear now
Regards,
Madhvika
HI Madhvika,
Can you please post the validation code and pop-up raising code?
I tried to replicate a similar sceanrio and it works fine for me..
When the time is in wrong format, SAP error comes in the original view and on top of that pop-up comes,and 'OK' and 'Cancel'
seem to work fine...
Thanks,
Aditya.
What kind of pop up you are showing.
wt kind of window is it .
is it a confirmation window or you have created a new window.
and how r you passing the error messg to pop up window.
i tried to generate the same kind of scenario ..
but for me it is not navigating to the pop up window
it is not going anywhere. because as per the webdynpro phase model .
validation of these standard types happens in the second step itself before any other thing.
so it is coming for me.
if you want to suppress that error of standard validation.
you dont want it to come. it can be achieved by making the action validation- independent.
in that case that error itself wont come.
in the action list just select that messg and make it validation independent.
thanks
sarbjeet singh
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.