Posted: 22 May 2020 13:17 EDT Last activity: 31 May 2020 19:06 EDT
Create subcase through Modal Window
We are displaying the parent work objects in a repeated grid with apply link for each row. On click of Apply link in a modal window, we need to create the sub-case for the parent case row. Sub-case has a duplicate check, once the application is flagged as duplicate, we need to display the error message in the modal window.
We tried using the local action on click of a button, used pxAddChildWork activity to add the child case. But, we are unable to pass the error messages from the sub-case duplicate check to display on the modal window.
***Edited by Moderator Kayla to update Platform Capability tags****
Hi , Can you help to provide screenshot of local action configuration for your scenario.
I assume if you have configured creation of sub case using activity in First Action with When rule ( No duplicate) as per screenshot attached, you can display error message in Local Action with a when condition to check for Duplicate in Second Action Set, it should work.
I think as you mentioned in below comments , the error message is not displayed because of page context in which it gets set, try setting it on Parent context and as ,mentioned by nagad2 , try embedding display error section in your modal window which gets displayed whenever error is set.