Hello EpiUsers!
I am building a Create New Record page in application studio. I want to use the rest Baq Service to create a new record in the uBAQ. The event is below:
Basically, the user goes to a Create Page and fills out some fields on a form.
The fields get automatically added to a temporary DataView whose purpose is to hold a single row, the row to be saved to the database. The DataView is created using the same BAQ as the landing page with the grid and form. The temp DataView is never populated with data until the user clicks away after entering a field.
For example, the user enters the Serial # as test-serial-11, then clicks empty page space, then test-serial-11 is automatically saved to the DataView.
***** The DataView appears to be dirty?**
After the user fills out some fields, the user hits a Save Button. Upon click, the event below is triggered.
I want to load the single row from the temporary DataView into the kinetic-baq, and save it to the database. The rest call parameters are below.
BAQ Options
BAQ Options >> BAQ Update Options
Some notes:
-
The Updatable BAQ (uBAQ) is working
-
I can create new records using the Swagger API call. The API call works in Swagger and PostMan
-
The DataView appears to be dirty
-
Does this have something to do with the RowMod field?
The Rest call comes back as successful. But no new record is created.
Has anyone done this before? The issue has been isolated to Application Studio.
TL;DR
I am trying to create a record using the Rest Baq Service. The Rest call returns as successful but no new record generated.
I think its related to either
(A) The DataView is dirty (I think)
(B) It has something to with the RowMod.
Or I configured the Rest call incorrectly.
Regardless, any help would be much appreciated.























