You are viewing limited content. For full access, please sign in.

Question

Question

Updating a SQL Table Row from Forms

asked on August 31, 2015

Hello,

I have run into what seems to be a simple task on the surface, but requires some real "Out of the Box" thinking.  We have a form that is suppose to update a database.  On this form we are pulling the current values of the record, and we also have "New Value" fields for updating a value in the database.  Where this becomes tricky is you only want to update one field, rather than the entire row at one time.  Otherwise the system passes blank values to the DB.  My question is, how do you set up a for each value activity having the Retrieve Forms Content Tokens placed in as the current value, then for the system to know which of the new values to update.

The way the Update Data activity is written, you have to have a value for each field in the database, because any could be updated.  Has anyone accomplished this before?  A few of us are scratching our heads.  

  

0 0

Replies

replied on August 31, 2015

Hi Scott,

If you want to use workflow, you can update database tables with only non-empty values by using the "Custom Query" tool, as discussed in this answers post: Workflow Update Data. Also, see the Custom Query help files for more information.

Alternatively, you could solve this issue in Forms by pulling your current database data into both the "Current Values" and "New Values" fields. Be sure to make the "Current Values" read-only, and then have the user change whichever "New Values" fields they want. Workflow can then take over and simply "Update Data" for the entire row of "New Values," without having to use a "For Each Value" tool.

Let me know if either of these solutions works for you!

Alex

0 0
replied on November 13, 2019 Show version history

The integration between Forms and the repository seems a bit thin.  One can start a Forms process from Workflow, but I haven't found a way to perform CRUD operations on repository entries via Forms without creating custom tables, queries, javascript and html.

You can use Workflow to populate a Laserfiche form, but this can only be done at the start of a Forms Business Process step - surely one would want seemless integration with the repository?

There should be the ability to link repository data to Forms controls; for example: a dropdown of entries from a certain folder, filtered by modified date, ordered by client name, which, when selected, populates related fields.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.