Hi everyone,
I'm seeing this behaviour which I cannot explain. Could anyone recommend me a solution or reason for this behaviour?
I'm having an interface with gridField(), one of the grid column's value is richTextIcon() containing a submitLink() to kick off a process model. Please see below the code to build up my grid column:
a!gridColumn( align: "CENTER", label: "", value: a!localVariables( local!showLink: false, a!richTextDisplayField( value: a!richTextIcon( caption: "Re-open Case", icon: "folder-open", link: a!submitLink( showWhen: local!showLink = false(), saveInto: { a!startProcess( processModel: cons!PRO_PM_REACTIVATE_CASE processParameters: { noteContent: "This case was re-activated", caseId: fv!row['recordType!Test.field.caseId] }, onSuccess: { a!save(local!showLink, true) } ) } ), linkStyle: "STANDALONE" ) ) ) )
I'm expecting to disable the submit link after user clicking on the icon once. The icon was successfully disabled when I test on that interface, and behaved correctly when I tested on the parent interface also, but coming to site testing, after clicking the icon once, it is still active and I can re-click it as many times as I want.
Does any one have any idea of how to fix this or possible solution to find the reason? Please help if you do
Thank you!
Discussion posts and replies are publicly visible
I am not sure what you are trying to do here.
A submitLink that tries to start a process in the background does not feel right. A submitLink is meant to submit a process start form or a user input task. But in both situations, it either already starts a process or continues one.
What kind of interface is this, and where/how is it used.
What do you try to achieve?
Hi Stefan Helzle For my use case, the reason I cannot use record action is: The parent interface is an input form where it gets some input data from the dependent process model. I want to pass those input data into the process model that will be kicked off by clicking the Reopen case icon, but record action only allows me to provide the Identifier.
Then, why not just submit the form and then, in process, do the necessary modifications and return to the same interface.
Sorry can you please explain it in more detail? I'm not getting how can the icon link be disabled by submitting the form and lead back to the interface
This solution works, Thank you!