on 04-26-2006 7:16 AM
hi folks,
quite a simple question i guess.
i have a field marked as required (gets a red asteriks). In the actions i have "Standard" so they should have to do all the validations, but i still can execute the action, i did not find a docu for the behaviour of the "required" features? i thought like in r/3 sapgui appl. a default error messages will be shown?
any ideas?
kind regards,
oliver
Oliver,
I guess there is no difference between WD ABAP and WD Java in this regard, so I will answer from WD Java developer point:
"Required" actually means visual hint to user that input is mandatory. What "mandatory" actually means is application-specific.
For example, in Java string could be either null, or empty, or contains only spaces, or rest. What is mandatory here? Not null? Not empty? Something besides spaces? Ok, even worth, let us assume that we are entering some number (material, order). So string with only zeroes is also "empty".
Hence WD does not handle "required" flag itself, this is left for application developer.
Certainly, some data type constraints like minimal text length, or minimal numeric value may be treated as "required", and here WD works well.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Valery,
well, when i put the attribute "required" to the field a red asterik (*) is placed behind the label of the field.
But i thought on fireing an action i get a error message from the system that the field has no value yet?
Do i have to handle this on my own in the event WDDOBEFOREACTION for example?
thanks,
oliver
Hi Valery,
thanks so far.
i did test a bit and i found out that e.g. if it is a date-field and you enter characters, the system prints out a message, ok.
but if you say the input is required, then no message appears, i guess sap just make it visible with an * that it is a required input and you have to handle it on your own ;-(
oliver
Oliver,
<i>but if you say the input is required, then no message appears, i guess sap just make it visible with an * that it is a required input and you have to handle it on your own ;-(</i>
This is exactly what I've said.
In WDDOBEFOREACTION you have to check necessary context attributes <b>yourself</b> for "non-empty" values and report validation errors.
VS
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.