Creating a grid row with javascript
I have a grid that is bound to a database table and I would like to be able to insert records into that grid (and thus into my database table) with javascript.
I've tried to get this to work with setFieldValue, but I'm not finding the right combination. Can someone give me an example?
-
Hi Sylvia,
you should use addRowsToSubform method.
https://documentation.agilepoint.com/00/appbuilder/cloudjsAddRowsToSubform.html
Regards
Alexey -
Hi Sylvia Able,
You can make use of Batch Insert Activity on your process to achieve this.
I tried a short POC and followed below steps:
Step 1: Allow user to add rows (Grid/Properties/Configuration) - UI
Step 2: Configure Batch Insertion on your process with Remove All Old Records property – PROCESS
Let us know if this helps.
Please sign in to leave a comment.
Comments
2 comments