Question
Standard Chartered
MY
Last activity: 30 Jul 2018 1:24 EDT
Access clipboard values in a Javascript
We have a requirement to set a clipboard property value(operator locale ) to variable in JavaScript. How can we access the property in a JS file . ?we tried JSP/pega reference etc without any luck.
I see there are couple of inbuilt functions like the getOperatorID() function which returns the current operator .Where is this function getOperatorID() defined ? . We need write a similar function to get the operator locale . Any leads ?
***Edited by Moderator Marissa to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Updated: 19 Jul 2018 11:11 EDT
Capgemini Sverige
SE
Hi Faijas,
you can take the reference of the code written in HasRequiredSkills function.
Maybe it will help you.
-
SRI RAMA KRISHNA CHAITANYA VEDALA Josh Baldwin
Standard Chartered
MY
Hi Prashanth,
Thank you for reply .
But i dont find this function . We are on Pega 7.2.2 . I can find only hasDesiredSkills which is usual java
Pegasystems Inc.
US
Please check below link:
https://collaborate.pega.com/question/access-clipboard-javascript
Standard Chartered
MY
Hi Susan,
I did go through this post before . But this isn't working anymore
Merkle
GB
Do you want a JSP code to access & set clipboard property?
Merkle
GB
Hi,
Could you please check below Java code? That should work for you.
ClipboardPage pg = tools.findPage("testPage");
pg.getProperty(".objName").setValue(“setvalue”);
Regards,
Gopesh
Standard Chartered
MY
Hi Gopesh,
We did try these . but it wont work
Merkle
GB
Hi,
Have you got the resolution of your issue? Could you please share the screen shot of your code?
Regards,
Gopesh
CollabPartnerz
IN
Hi
Set the value to a hidden text control in your section and include var a = $('.keyclipb div div span').text(); in the script.
The keyclipb is the read/write class that we give in the advanced presentation option of the control.
Adaps
IN
Please find the below link
https://collaborate.pega.com/question/access-clipboard-javascript
Vodafone
IN
Hello Neel,
Please find the below sample code which may help you to capture the clipboard property values and reuse it when you need.
var testvar = '<%= tools.findPage("pxRequestor").getIfPresent(".pxReqLocale").getStringValue() %>';