Close popover
Giridhar Metikal (Giridhar_Metikal)
Instellars Global Consulting
Instellars Global Consulting
Giridhar_Metikal Member since 2014 95 posts
Instellars Global Consulting
Posted: January 21, 2019
Last activity: January 24, 2019

How to copy error messages from Temporary Page to Primary Page

Hi All,

I am triggering a local action on click of a button. I am referring some of the fields in the section using a Temporary Page. I've configured a flow-action's post-activity where I am handling the validation of the screen.

The issue is my validation is running fine and setting error messages on embedded properties of the aforementioned temporary page but not on the primary page. Hence, user is allowed to submit the screen even if there are error messages on the Temporary page. I am using OOTB rules for validation.

The question is how to copy the error messages on embedded properties of the temporary page to the primary page so as to restrict the user submission.

I've written the below java code in my post-activity to do the same and is fixing the issue. I am wondering if there's any better way of doing this than writing Java code.

***Java Code Begin***

ClipboardPage cp_page = tools.getStepPage();
ClipboardPage product_page = tools.findPage("Product");
if(cp_page != null && product_page.getMessagesAll().length()>0) {
catch (Exception any)
oLog.debug("caught Exception while copying messages from Product Page to Primary page", any);
***Java Code End***
Looking forward to your inputs. Thanks in anticipation.
Giridhar Metikal
***Edited by Moderator: Pallavi to update platform capability tags***
Data Integration Java and Activities Case Management User Experience
Moderation Team has archived post