Discussion
Accenture
IN
Last activity: 24 Sep 2015 6:13 EDT
Can we export clipboard page?
We all know that we can export db instance.
But can we export clipboard page that has not persisted in the database?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
SG
I believe you can but you will need to write an activity to achieve this. Some clipboard pages like pyWorkPage are automatically persisted in the database.
Updated: 22 Sep 2015 7:53 EDT
Pega
IN
Hi Nadar,
Is there any business requirement for export the clipboard data, do you have any business scenario for this.
What i feel is that it could be better if the data present on the clipboard loaded from external or some system can be reloaded rather this approach.
Accenture
IN
Wrote a custom activity and used java api to achieve this ☺
Updated: 23 Sep 2015 1:29 EDT
Pega
IN
Hi Nadar,
using activity we can achieve the functionality of export clipboard data, but with the exported data next what can be done.
Accenture
IN
My need was to export clipboard page to a csv file , so have not thought about what next can be done.
We can do what ever we want, we can import it in a different environment , or do some processing, all depends upon our requirement. ☺
Pegasystems Inc.
IN
Could you please share the solution. It'd be helpful ...
Accenture
IN
Sure..
ClipboardPage cp = tools.findPage("PageNameToBeExported");
Iterator iterator = cp.keySet().iterator();
while(iterator.hasNext())
{
Object obj = iterator.next();
ClipboardProperty cproperty = cp.getProperty(obj.toString());
-----------------------------------------------------------------------------------------
You can get the pagemode of cproperty and get its value.