Skip to Content
0
Oct 13, 2016 at 10:34 PM

UI5: Validation of a Custom Controls' Property Value

596 Views Last edit Oct 14, 2016 at 08:07 AM 2 rev

Hi all,

I didn't find a "developer space" in this new SCN, so I hope some experts may find my question and help me with it.

I have created a custom control with some properties in its metadata description and assigned types like "string" or "int" to them. Now I would like to set a custom Type for some properties preventing negative values from getting assigned to them (something like "unsignedInteger"). Is there an official possibility to create a custom Type for usage in a custom controls' metadata property definition or another way for automated validation?

I only found this approach, but it does not work for me: https://www.nabisoft.com/tutorials/sapui5/creating-custom-controls-in-sapui5#Step1

Kind Regards, Tim