Skip to Content
0
Jun 21, 2021 at 01:16 PM

SAP MDK SimpleProperty max length

190 Views

Hi,

I have an mdk app where the user needs to fill several forms with a large number of fields. I need to preform validations on those fields to guarantee that they will fit the service. One of the validations that I need to perform is checking if the field respects a certain max length max length that differs heavily from field to field.

The odata service already comes with with max length configured but I want to check when the user types or saves the data locally.

  • How can I implement a length validation for the properties? Do I need a rule for each length size?
  • Is there a way to use the values in the metadata for the validation?
  • Can I add other properties to a control in the metadata? (The max length or some value or identifier so that I can read them in the rules)

Thank you in advance.

Best Regards
Nuno Oliveira