on 09-25-2008 11:52 AM
Hi, experts,
I have a problem:
what usage is the "Without Validation" checkbox in the Actions tab when I create a action in a view?
When the checkbox( "Without Validation") ought to be checked.
Do you give me some hint? Thanks a lot!
Best regards,
tao
Hi
Action Types
Web Dynpro provides two action types for the description of actions.
Validating Actions
The event handler of a validating action is only called after all user data entered is validated, the validated data is passed to the context, and the data entered is also valid.
The event handler of a validating action assumes that:
· The data saved in the context is valid
· The data saved in the context matches the data entered by the user
· Using the event handler of a validating action, the system can:
· Trigger navigation links by calling an outbound plug
· Use the data saved in the context for other processes. If they are bound to a UI element, they are visible to the user.
· Call a Web Dynpro Message Manager to display error messages or throw exceptions that originate from a WDNonFatalRuntimeException.
Non-Validating Actions
The event handler of a non-validating action is called before the user data entered is validated and the validated data is passed to the context.
The event handler of a non-validating action is also called if the invalid data was already entered. This ensures that the event handler of a non-validating action is called without checking whether the user entries are valid.
The event handler of a non-validating action must be capable of processing invalid data saved in the context. To check the validity of the context data, the IWDComponent interface provides the getValidationCheck() method. The method returns an instance of IWDValidationCheck.
The IWDValidationCheck interface makes available methods, with which you can check the validity of the context data.
The event handler of a non-validating action can both write the values to the context and read values from the context.
Use
Non-validating actions are used when the user quits an application, for example, because otherwise the user remains in the application if the entries are invalid. In addition, you can use it to reset the entries in all fields of a view at runtime.
To define an action as a non-validating action, you must select the checkbox u201CWithout validationu201D when creating the action and save this setting.
Edited by: Abhilasha Dahare on Sep 25, 2008 1:23 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
what usage is the "Without Validation" checkbox in the Actions tab when I create a action in a view?
This check box is needed if you dont want any validations needed to be tested for this action, Example for validations are invalid date entered to a date field.
Best example for usage of this is a cancel button, even if errors exists you need to fire the respective action.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.