Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Dynamic Form / RestDataSource

    I have a dynamic form tied to a RestDataSource. Some of the form items are not required. When the savaData (ADD) method is called, the form items that are not required are setting their value to the word null. If the user did not input a value in non-required field, I would prefer the associated param value passed to the server-side be empty (null).

    Here is a sample of the params/values passed to the server-side:

    ignoreMissingValues false
    indexBeginDateStr null
    indexEndDateStr null
    intervalName DAILY

    As a result, when the server-side parses the params list the value for indexBeginDateStr is the word "null". I would like the param to be empty or not set to the server-side when the value is empty.

    Thanks in advance for your help.

    #2
    Check out the "transformRequest" property for the RestDataSource object. You will need to override that method and make the substitutions yourself.

    Comment

    Working...
    X