Announcement

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

    Reverse dsRequest.operationType to "add" after dynamicForm.editRecord()

    Hi,

    I have an application similar to the demoApp provider in the SDK. In this application, the user adds new items using the same DynamicForm used to update (edit) the record. A button uses "dynamicForm.saveData()" to persist the new/updated record.

    I've noticed in the documentation that after issuing a dynamicForm.editRecord(), the dsRequest.operationType will always be "update". How can I reverse this, so users can add more records after previously editing one?

    Best,
    Leo

    #2
    You can call editNewRecord() on the form to reset the operation type from "update" to "add"

    Comment

    Working...
    X