So on both buttons (Cancel/Submit) you would have Launch Harness as the last action defined, which would specify the Dashboard harness (pyDashboard7).
Alternately rather than launching your custom harness as 'Replace Current', you would have it as 'New Document' and then submit/cancel would fire the action 'Close'; the other advantage of this is that any filters or sorting done before the user launched the custom portal would be maintained.
I would lean towards the latter option, however that may impact the 'Recents' list.
If you go with the Launch Harness option, be sure to include the activities and data transforms needed to prepare the dashboard; you can use the navigation rule pyCaseManagerLinks as a guide (or pic below).
The actual issue is, on button click, on first event, i am calling my activity which actually saves my data and validates the fields in my form. But after that on second event , we did show harness which replaces current, this meets my requirement of coming back to my previous screen. But the problem is , if i have any page-set messages getting set due to validation, i need to skip my Show-Harness. Which has become a challenge. When i try to do Show-Harness in my activity . It is not working. Please suggest, if we have any OOTB event through which i can check condition before Show-Harness. OR the parameters that i need to pass in activity for Show-Harness, may be i miss something there.
Even i tried that way, but in my form , i am creating an operator ID record. In actual OOTB form we Create pyUserIdentifier in one form and remaining details Edit form. But in my requirement i need to provide to user a single form to provide all their details which required to create an operator ID. As .pyUserIdentifier is unique, when i do save second time, my validation rule will fire and says, "User ID exists". And i cant make pyUserIdentifier "ReadOnly" on tab out, as that is not user friendly
Hi @rapaw, I am having the same problem as described in this thread but i also have a user form in the same section. The problem is that when you click the button, i am always getting this alert (setting the "Cancel" action) as you mentioned.
What is the approach to retrieve the close event when submitting?
Thank you for posting your query on PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.