Execute Procedure and Display Data on Tempo Report

Hi All,

I have a requirement that I need to insert data through a stored procedure and display the result- set on the report on a button click. I cannot be using executestoredprocedure function as it doesn't support for insert/update statements. So , I was trying to do with a!startprocess - And the process model runs the execute stored procedure smart service or using web-api with a!start-process. I'm getting results, but the problem is that a!start process will only start the process asynchronously and will not wait till the process gets completed. So I'm worried on the credibility of the output of that process. It would be very helpful if someone can suggest a solution for this.

OriginalPostID-266159

  Discussion posts and replies are publicly visible

Parents
  • I could think of this :

    1. Store all the data in a staging table, this can be done by writeToDataStoreEntity function.
    2. Add a trigger to the staging table to do whatever the stored procedure was supposed to do.

    If you do this also consider adding logic to the button to make it read only while the database process is in progress. You would also need a "Refresh button".
Reply
  • I could think of this :

    1. Store all the data in a staging table, this can be done by writeToDataStoreEntity function.
    2. Add a trigger to the staging table to do whatever the stored procedure was supposed to do.

    If you do this also consider adding logic to the button to make it read only while the database process is in progress. You would also need a "Refresh button".
Children
No Data