Question
2
Replies
149
Views
Posted: February 12, 2019
Last activity: February 13, 2019
Closed
Solved
How to access clipboard property from Div tag?
Hi,
I have a requirement to display external application screen within pega through a widget provided. There we need to pass mandatory app key in div tag
<div data-xyz='{
"appKey" : "appKey",
"initializationType" : "connect"
}' >
</div>
app key presents in the clipboard and unique for each work item. Does any one how we can access the clipboard from a div tag to get that value?
***Edited by Moderator: Pallavi to update platform capability tags***
Hi BuddhieA,
Could you please try the code below and adapt to your scenario?
<%= tools.findPage("pyWorkPage").getString(".MyProperty")%>
E.g.:
<div data-xyz='{ "appKey" : "<%= tools.findPage("pyWorkPage").getString(".MyProperty")%>", "initializationType" : "connect" }' > </div>
Let me know if it worked.
Regards.