Create reusable SAIL component with validation rules passed as parameters

Hello all,

I have a use case that requires the development of a reusable SAIL component that is based on a!textField() component for displaying/saving decimal numbers as formatted text.

Apart from the need to customize the displayed text format of a decimal number, I need to save back to the decimal number the new text value converted to a decimal number IF it is a valid decimal number (which will be the base validation of this reusable SAIL component) along with any extra validations that should be passed into this SAIL component as these validations may vary from application to application.

Any ideas?

  Discussion posts and replies are publicly visible