Need help in Page Refresh

Certified Associate Developer

Hi All ,

I am having following code ..calling start process model .. i want page to be refreshed after process model is complete. What will be the best way to implement.

a!buttonWidget(
label: cons!OCO_TXT_USER_ACTION_SUBMIT,
saveInto: {
a!save(
ri!userAction,
cons!OCO_TXT_USER_ACTION_SUBMIT
),
a!save(local!data,
a!startProcessLink(
processModel: cons!OPS_PM_UPDATE_SETUP_DETAILS,
processParameters: {

interactionDetails: a!update(
data: local!interationDetail,
index: {
OPS Interaction.fields.interactionId',
OPS Interaction.fields.isActive',
OPS Interaction.fields.createdBy',
OPS Interaction.fields.createdDt',
OPS Interaction.fields.updatedBy',
OPS Interaction.fields.updatedDt'
},
value: {
ri!InteractionId,
true(),
loggedInUser(),
now(),
loggedInUser(),
now()
}
),
npiDetails: local!npiDetails,
tinDetails: local!tinDetails,


},

))
},
submit: true,
style: "SOLID",
showWhen: local!currentStep = rule!OCO_nullSafeLength(local!formSteps),
validate: true
)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hello  

    1. You cannot use Start Process Link in a button widget. Instead you can use Start Process in a button.
    2. Assuming that you are not having any interface in the process you can use the a!startProcess().
    3. If you have a user input task (Interface), then use a card layout as suggested by others above and use a startProcessLink to show the form and get things done.
    4. I would personally recommend the use of Related Actions to execute such things as it would make everything simpler.



Reply
  • 0
    Certified Senior Developer

    Hello  

    1. You cannot use Start Process Link in a button widget. Instead you can use Start Process in a button.
    2. Assuming that you are not having any interface in the process you can use the a!startProcess().
    3. If you have a user input task (Interface), then use a card layout as suggested by others above and use a startProcessLink to show the form and get things done.
    4. I would personally recommend the use of Related Actions to execute such things as it would make everything simpler.



Children
No Data