Interface

Certified Senior Developer

In a interface I need to generate a certificate by clicking a button and in that same interface I need to show the document download link. can anyone suggest some ideas?

Note: Clicking on that button will trigger a process model that will generate the certificate

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    I believe you are using a!startprocess to start certification creation process in submit button. Do the following steps to show the document download option to user.

    1. In your submit button set submit parameter value as false

    2. Make sure add activity chaining to you certification creation process (At least until document creation node). and save the generated certificate into a process variable

    3. After starting a process in side button you have an option to save onSuccess values in a!startProcess() smart service

    4. Using onSuccess save your certificate saved process variable value to a local variable in your interface

         ex: onSuccess: {

    a!save(local!generatedCerticate, pv!proceessInfo.pv.processVariableNamewhichstoresnewdocument

    }

    5. Use that local variable value to show download document option to the user 

Reply
  • 0
    Certified Lead Developer

    I believe you are using a!startprocess to start certification creation process in submit button. Do the following steps to show the document download option to user.

    1. In your submit button set submit parameter value as false

    2. Make sure add activity chaining to you certification creation process (At least until document creation node). and save the generated certificate into a process variable

    3. After starting a process in side button you have an option to save onSuccess values in a!startProcess() smart service

    4. Using onSuccess save your certificate saved process variable value to a local variable in your interface

         ex: onSuccess: {

    a!save(local!generatedCerticate, pv!proceessInfo.pv.processVariableNamewhichstoresnewdocument

    }

    5. Use that local variable value to show download document option to the user 

Children
No Data