Is it possible to add rows to a table field in a field rule script?.
I need to perform a table search based on a field value and get all rows of the database table into a document table.
It's been pretty easy to query a database and get a recordset, but i have not been able to copy records to the table.
Thanks for any help you can provide.
I need to perform a table search based on a field value and get all rows of the database table into a document table.
It's been pretty easy to query a database and get a recordset, but i have not been able to copy records to the table.
Thanks for any help you can provide.
Comments
8 comments
How common is the case when the scipt should be re-checked on verification?
How long does the query execution take?
The problema is that there is not Table.Rows.AddNew that can be used to add new rows to the table, at least as far as i know.
However you can
* either use "On open document" event for verification stage
* or "After document state changed" event handler with checking recognition state
For your case they are almost the same.
Rows adding will not be automatical in full but you will be able to add any rows number with one click and then perform other actions in script if needed.
If you mean a custom action, i can run a query to return the records i need, but as you've mentioned before, the IField.Items.AddNew is not available at rules. so there is no way to insert those rows in the table.
Please sign in to leave a comment.