1. Robert Kratschmann
  2. PowerBuilder
  3. Friday, 31 May 2024 06:41 AM UTC

Hi,

a customer is working on building a web client application (written in Javascript). One of the requirements is that clicking on a specific
row in the web client should jump to the corresponding row in a classic PowerBuilder application (2022 R3), and vice versa (The reverse is theoretically easy through a URL call). Is there a solution approach for how such a jump could be performed in PowerBuilder?

Does anyone know of a solution approach and has already implemented it! Aside from solutions like saving the current row number in a file or database?

Many thanks

Robert

Roland Smith Accepted Answer Pending Moderation
  1. Friday, 31 May 2024 12:31 PM UTC
  2. PowerBuilder
  3. # 1

A JS app running in a web browser controlling a PB app?

Comment
  1. Robert Kratschmann
  2. Friday, 31 May 2024 12:52 PM UTC
Not really controlling: A web client app edits a row in a table. The PB app can process the same table and should open with the current row in the web client. My idea was simply to write the current data record into the database and read it out from there in the PB. Our customer would prefer a direct transition.

  1. Helpful
  1. Roland Smith
  2. Friday, 31 May 2024 13:13 PM UTC
I still don't understand why someone would be running two different apps at the same time and expect the two to keep in sync. A database entry is the simplest method.
  1. Helpful
  1. Robert Kratschmann
  2. Friday, 31 May 2024 14:51 PM UTC
Speculating: They have a wide range of existing PB apps with a large number of users. May be they try to migrate one of these apps to a web client app - and the users should be able to compare the behavior of the two app? They are looking for existing solutions ,,,
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Friday, 31 May 2024 14:32 PM UTC
  2. PowerBuilder
  3. # 2

I'm thinking you could register your PB app as a protocol handler, and then redirect from the web app by using an URL using that protocol.
Of course, you would have to make adjustments to your app to handle said URL, and the user would have to allow the app to open those kinds of URL from the browser at least for the first time.

Regards,
Francisco

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 31 May 2024 15:21 PM UTC
  2. PowerBuilder
  3. # 3

Take a look at this demo app: https://github.com/Appeon/PowerBuilder-Graph-Example

It illustrates integration between JavaScript and PowerScript.  You would load the web app in a WebBrowser control embedded in your app.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.