JSDO - setting validation on schema model - Forum - Mobile - Progress Community

JSDO - setting validation on schema model

 Forum

JSDO - setting validation on schema model

This question is answered

Does JSDO support setting validation on schema model. Wiring up Kendo Grid to JSDO data source but would like to enforce validation at schema level

        var baseDS = {
           type: "jsdo",
           serverFiltering: true,
           //batch:true,
           transport: {
               jsdo: "Demo.CustomerBusinessEntity",
               tableRef: "eCustomer",
               countFnName: "count"
           },
           schema: {
               model: {
                   fields: {
                       // Is defining fields/properties possible using the JSDO?
                       CustRef: {
                           type: "string",
                           editable: false,
                           validation: { required: true },
                       }
                   }
               }
           },

Verified Answer
  • Hello,

    Currently, the JSDO does not have support for extending the schema via Kendo UI.

    We have an enhancement to look into this in a future release.

    You could enter an idea in the Ideas section to vote on this feature.

    Thanks.

All Replies
  • Hello,

    Currently, the JSDO does not have support for extending the schema via Kendo UI.

    We have an enhancement to look into this in a future release.

    You could enter an idea in the Ideas section to vote on this feature.

    Thanks.