Invoking a QLACK3 WD application from another WD application #112
Replies: 5 comments 4 replies
-
|
Hello, indeed, WD provides a built-in inter-application messaging solution based on You can find relevant examples here: |
Beta Was this translation helpful? Give feedback.
-
|
We don't have such plans, although even if such functionality existed you'd still have the problem at source (i.e. where you generate the link) as, for example, when you click on a link/button it would need to send a message to WD instead of its default action (so, you'd still need to modify the original source code). If you do have a way to generate links at source (that result in calling your own JS code), you can have a third application listening for these messages and then manually manipulating the windows (IFrames) of WD to control the target application. |
Beta Was this translation helpful? Give feedback.
-
Yes, that's the idea. The application should be open (to receive the events) but can be minimised. Unfortunately, we don't have such an example. |
Beta Was this translation helpful? Give feedback.
-
|
I don't think anyone tried this before, so not sure how we could help. Another option would be to extend the default WD event listener to support custom messages, one of them being URL refreshes for a specific window. You can see how WD listens to generic events here: |
Beta Was this translation helpful? Give feedback.
-
|
Opened applications are kept here: You should get a reference to the application, find its window, and issue a new URL for the embedded IFrame. Not sure how long it might take as we never tried something like that before. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Good afternoon QLACK team,
Is it possible to invoke a QLACK3 WD application from another WD application?
The scenario that we have is that while in an QLACK3 WD application and specifically Moodle LMS, clicking on a hyperlink, should either open another application and specifically the Alfresco Document Library in a specific path/context, or if it is already opened it should refresh the UI to show the right content/context.
I remember in the past some from the team mentioned using the qlack-pubsub.js mechanism. Is this still the case and if yes how we can use it with applications that we cannot control their source?
As an example I have created/integrated two simple web-applications and by subscribing to the same QPubSub channel I was able to update the iFrame application-A with what application-B sent as a request.
Thank you,
-Alkis
Beta Was this translation helpful? Give feedback.
All reactions