how to download attachment using javascript?

I need to download the attachment from temporary object using javascript code ? Can some please suggest some snippet of code ??? Also, can some one let me know, that how to access the CLIPBOARD properties, as pxObjClass, pxAttachStream etc...

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

August 9, 2012 - 3:52pm

You can use Clipboard property values from javascript as follows,
String strObjClass = tools.findPage("pyWorkPage").getString("pxObjClass");
tools.putSaveValue("objClass", strObjClass);

var objClass= '<pega:reference name="$save(objClass)" />';


Please let me know if this helps you out ...:)