Background processing after form save?

Hi all,

I need to run a background process on form fields after the form has been saved into the database. Need the user to wait while that process runs (about 5-10s) and then provide feedback to the user.

Has anyone done something like this before in SC? Able to share what you did?

Hi,

after the record is saved in the database, redirect the form to a control app passing the ID of the record you have to process. I use a control app and not a blank so I can show messages, and use buttons if needed.
The control app has a label with “Hey buddy, wait few seconds that I have to make a coffe break…” via ajax you call a blank app, giving as parameter the ID of the record to process, the blank app make all the things you have to do to process the record, and return json with some info as coffee rating, and a message with OK Done or “Houston, we have a problem”, anything you need to show to the user.

Bye
Vincenzo

1 Like