on 05-11-2023 9:09 AM
Hi,
For SAPUI5 applications I often use the option valueHelpOnly="true" if an input field can only have the content of a ValueHelp. Is there such a possibility also for SAP RAP applications?
regards,
Tim
Hello Tim,
Yes, this is possible in RAP based applications using consumption annotations. You can use below annotation to have an input field only the content from Value Help.
Consumption.valueHelpDefinition.useForValidation
It accepts boolean values
You can read more about this annotation in below documentation:
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tim,
You are using it correctly. You can enter anything but wont be able to save value which is not part of Value Help. So on save you would get the error.
Thanks,
Aman Garg
The annotation and thus the triggering of an error message if the entered value does not match one in the ValueHelp only works in conjunction with another input field....
In my case, I have a mandatory date field. If I enter the date, I can also enter any text in the other field. If I leave the date empty and enter a text, it will be checked against the ValueHelp.
How does this behavior come about?
User | Count |
---|---|
78 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.