Need to open an interface after exec stored procedure in process model

I need to implement duplicate functionality.

for that, I have a grid view and corresponding to each row i have a button for duplicate. 

On button click, I am using a!startProcess() to call process model in which passing a parameter in which we pass the id of that row.

In Process model, we are passing that id to the stored procedure in which we have written the insert query for the same data as that id has.

And as a output we are receiving the new id. 

With this new id, we have to open a interface for which I have used User Input Task.

But the process runs and stuck on the User input Task i.e. the interface is not called through UI.

How to solve this??

Please suggest anyone....

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    When starting a process using a!startProcess, it runs in the background. If you want to user to see that UI, use a a!startProcessLink.

  • When I use a!startProcessLink() in saveInto of a!buttonWidget(), It throws error:

    a!buttonWidget(
       icon: "clone",
       tooltip: "Clone Project",
       saveInto: {
         a!startProcessLink(
           processModel: cons!ADD_PROJECT,
           processParameters: {
               refId: fv!row.id
             }
         )
       },
       size: "SMALL",
       style: "LINK",
       confirmHeader: "Clone Project",
       confirmMessage: "Are You Sure You Want To Clone Project",
       confirmButtonLabel: "Clone",
       cancelButtonLabel: "Cancel"
     )
     

    Error:   An error occurred while executing a save: Expression evaluation error: You must specify a variable to save into, such as ri!name << fn!sum. Received: StartProcessLink.

    Also need to show the confirmMessage.

    Please suggest.......

Reply
  • When I use a!startProcessLink() in saveInto of a!buttonWidget(), It throws error:

    a!buttonWidget(
       icon: "clone",
       tooltip: "Clone Project",
       saveInto: {
         a!startProcessLink(
           processModel: cons!ADD_PROJECT,
           processParameters: {
               refId: fv!row.id
             }
         )
       },
       size: "SMALL",
       style: "LINK",
       confirmHeader: "Clone Project",
       confirmMessage: "Are You Sure You Want To Clone Project",
       confirmButtonLabel: "Clone",
       cancelButtonLabel: "Cancel"
     )
     

    Error:   An error occurred while executing a save: Expression evaluation error: You must specify a variable to save into, such as ri!name << fn!sum. Received: StartProcessLink.

    Also need to show the confirmMessage.

    Please suggest.......

Children