Discussion
JK Technosoft
IN
Last activity: 6 Apr 2018 19:26 EDT
onclick of a link/image document should open in a new window
On click of a link/image, I need to open a document in a separate window. I have a user guide document and every time when we click on that link/image the same document should open. Can any one pls with high priority.
**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.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Scotiabank
CA
Hello Maruthi
Configure Action set on the link/image, on click action set “Open URL in Window”, then check on the ‘Use Alternate Domain’ checkbox and provide the complete document url (that you want the user to download) in ‘Alternate domain url’.
PFB screenshot
Regards,
Sandeep
Updated: 6 Jun 2016 18:26 EDT
JK Technosoft
IN
Hi Sandeep,
The requirement got changed and Instead of downloading the document I need to show the same in an another window. I mean onclick of the image/Icon/Link the document should open in a window(Read-only mode). Can you please help me on these.
Capgemini
CA
Hi sandeep,
i have same requirement,when i am click on "Open URL in Window" then it will open like PDF/EXCEL documents but now i want set the logo and author name in that PDF/EXCEL like user manual.
in the user manual we have some company logo setting is their right.like i want that type.
please help us.it is very urgent requirement.
Updated: 21 Jun 2016 17:22 EDT
Pegasystems Inc.
US
If the document is stable, or your Application is the System of Record (SOR) for that document, you can store it as an R-F-B.
On-click call "Open URL in Window".
Instead of "Alternate Domain" call an Activity.
That Activity could be Rule-File-Binary downloadFile, but that Activity requires an R-F-B pzInsKey.
You can Save-As that Activity to your own Activity that asks for the three R-F-B keys.
Obj-Open the R-F-B, set param.InsHandle equal to pzInsKey, then call Rule-File-Binary downloadFile.
I also recommend storing these type of R-F-Bs in their own ruleset - perhaps a Production ruleset.
JK Technosoft
IN
Hi PEDEL,
The requirement got changed and Instead of downloading the document I need to show the same in an another window. I mean onclick of the image/Icon/Link the document should open in a window(Read-only mode). Can you please help me on these.
-
Antony Lawrence R
Capgemini
CA
Hi Pedel,
please help us the below requirement.
i have same requirement,when i am click on "Open URL in Window" then it will open like PDF/EXCEL documents but now i want set the logo and author name in that PDF/EXCEL like user manual.
in the user manual we have some company logo setting is their right.like i want that type.
please help us.it is very urgent requirement.
Pegasystems Inc.
US
If you are in the context of viewing a case, you can call Work-.GetAttachmentReference after identifying the pzInsKey a case Link-Attachment whose Attachment you want to view.
Again, invoke "Open URL in Window".
Either (1) call an Activity that locates a Link-Attachment pzInsKey that, in turn, calls Work-.GetAttachmentReference
OR (2) if you have a particular Link-Attachment pzInsKey stored as a case Property then simply call Work-.GetAttachmentReference directly using that Property to set param.linkInsHandle.
Pegasystems Inc.
Hi Pedel,
I just followed above approach. The attachment is opened, but the attachment name is shown as "!TABTHREAD0". Could you please guide me on how to change the attachment name.
Thanks,
Srinivas.