Question
Accenture
Accenture
IN
Accenture
Posted: Nov 9, 2022
Last activity: Nov 10, 2022
Last activity: 10 Nov 2022 2:19 EST
Closed
Custom Java Code Implementation{Common Data transform methods}
How to access clipboard Page Property in pega using JAVA
For Example:- the page is Structure is like this pyWorkPage.CarsData.Name
And how to create pages like we create in pages and classes using java
for example
carsPage Cars-ABC-product
***Edited by Moderator: Pooja Gadige to add capability tag***
To see attachments, please log in.
Hi @AbhishekS7581 : Can you please look into the function SendEmailMessage. This has lot of examples to get the data from a clipboard page and creating a clipboard page.
Some examples below.
tools.getPrimaryPage().getString("<<property name>>") -> to get a property value in primary page
ClipboardPage clipboard=tools.createPage("<<class>>","<<page naem>>") -> create new page
tools.findPage("<<page name>>").getProperty("<<property name>>").setValue(<<value>>); -> set value to the page.
tools.getPrimaryPage().getPage("<<sub page>>").getString("<<property>>")) -> to get value from child / embedded page.
Suggestion: Not sure on the use case why you need to call a java (function) from data transform to achieve this. It will be better if it can be done in the data transform itself.
Thanks