validations on kendo client + oe backend

Posted by agent_008_nl on 06-Mar-2015 00:44

Hi,

I'm using an openedge backend where validationrules are stored in the database and runtime available in a dataset in memory. A part of these validations are done on the client also. These rules, after being edited in a softwarelanguage independent way (like in corticon), in a simple brms, are stored in the db and can be translated to a piece of javascript code that can be evaluated dynamically on a javascript client. They are sent to the client in a dataset that contains for the fieldvalidations:

DEFINE TEMP-TABLE ttFieldValidation NO-UNDO

FIELD TableName AS CHARACTER

FIELD FieldName AS CHARACTER

FIELD RuleJS AS CHARACTER

FIELD OnCreate AS LOGICAL

FIELD OnUpdate AS LOGICAL

FIELD OnDelete AS LOGICAL

FIELD ErrorMessage AS CHARACTER.

Is this usable with kendo?

--
Kind regards,

Stefan Houtzager

Houtzager ICT consultancy & development

www.linkedin.com/in/stefanhoutzager

All Replies

Posted by Bill Wood on 06-Mar-2015 03:05

Kendo is a set of UI components – it does support JavaScript for validating forms and fields, and displaying the results.   I assume you can take the JavaScript version of the fields and apply them.   As a starting point you should start be checking out the Kendo Validator.
 
See http://demos.telerik.com/kendo-ui/validator/custom-validation

This thread is closed