on 12-15-2008 8:00 AM
Hi,
Im developing online interactive WDAbap application using BAPI.While designing the form I have maintined few feilds nearly 20 fields as madatory in the field properties.And rest of the validations are in BAPI.
Once I click submit in the form , how to handle all these madatory fields to display the messages to user?
And the validations which are maintained in BAPI how to display in the form?
Warm Regards,
Smitha
Hi -
You can validate by writing scripts either in formcalc or javascript. If you are setting some field as mandatory (either by directly setting its property in the paletts or by writing scripts), you will get a pop up message automatically in case that mandatory field is not filled.
syntax for making a field as mandatory:
if (condition)
then
field.manadtory = "error"
else
field.mandatory = "disabled"
If you want a custom pop up message then you can add following piece of code in your script:
xfa.host.field.messageBox("your message")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.