Question
Centene
US
Last activity: 20 Aug 2015 14:08 EDT
Windows Clipboard and Pega
Hi all,
I think I know the answer to this, but am just seeking confirmation. Since Pega, at the bottom line, is a web application, is there any way around the normal limitation of web applications being restricted from writing to the Windows Clipboard? We are looking at doing integration with an existing application, and are seeking a way to pass information over the clipboard (note - this is not the Pega clipboard).
Thanks in advance,
Jim
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems
US
I've never heard of the windows clipboard. I've dealt a lot with the Pega clipboard, however. /Eric
Centene
US
Eric
Seriously? The windows clipboard that contains contents when you do CTRL-C, CTRL-V to Copy and Paste?
Pegasystems
US
Oh THAT. Sure, yes ok I see what you mean now. Yes, one of our popular internal apps allows dragging files from the ms-windows file manager onto a rectangle within a section on a Pega perform harness as a way of attaching the file to a work object. However, I’m not sure how much out-of-guardrails code was necessary to make it work. Any others of you have more info on this ? /Eric
Centene
US
Eric
Thanks - yes but the functionality I am looking for is not pulling something IN to Pega, but rather, the ability to write FROM Pega to the Windows Clipboard. Traditionally that has been off-limits for web-based applications.
Pegasystems
US
Hi Jim,
So it sounds like your main goal is to write some data from a Pega app to a non-Pega app, and you're wondering if using the ms-windows paste buffer is a way to pass the data ? So, the non-Pega app would think the user merely pressed CTRL-V or something like that ? I would think there are other ways to pass data. Would an html POST or a REST service possibly be useful here ? /Eric
Centene
US
Eric
Unfortunately, the external app we are attempting to communicate with has no web presence. It's strictly a windows application. THAT's the ask, to pass some data in a non-web-based manner.
I don't believe you can do anything with the Windows clipboard, but could a file be written that Pega could read in with a File Listener?
Centene
US
Nicholas,
Hi and thanks - the ask is to write FROM Pega, not TO....
Hi Jim,
Okay, then what about this? https://pdn.pega.com/integration/how-to-write-a-file-to-the-local-file-system-using-a-file-connector
Pegasystems Inc.
US
Jim,
Server side you can't output content to the windows cliboard. Client side you can copy to the clipboard although a little finiky and requires some permissions etc.
I think you want server side and that's not going to happen. You have a listerner server side looking for clipboard put?
--Chris
Centene
US
Chris
Not yet, but that's an avenue worth pursuing.
Thanks!
Hi Jim,
I'm not aware of any standard way to do this from a web app (such as Pega). But it looks like there is active development to standardize a way to do this though.
Check out this link:
In the meantime, I have seen neat tricks like this work, but only on [some versions of] IE