1. Orna Peretz
  2. PowerBuilder
  3. Sunday, 20 December 2020 14:23 PM UTC

Hi,

Using PB 2019 (recently upgraded).

I have to call a modal window developed in dotnet and displayed via IE. In this window a list is displayed. The user checks a checkbox in the list thus selecting rows and then clicks a button which returns data from the selected rows in Json format (string) and closes the IE window.

What I need is a way to get the returned string when the window closes.

I tried using a MS Web Browser OLE Control on a PB response window. I found it has a WindowClosing event which appears to be the right place to get the returned value. But still am not able to get the returned value.

In dotnet it looks like this:

var FileList = window.showModalDialog(sUrl, window, sWinProperties);

where sUrl is the url to display. When the modal windows closes, the retunrValue is returned in FileList.

Any ideas as how to do this in PB?

 

Thanks

Orna Peretz Accepted Answer Pending Moderation
  1. Wednesday, 23 December 2020 09:49 AM UTC
  2. PowerBuilder
  3. # 1

And how do I get the returnValue there?

Also, I'm not sure whether the existing HTML will be fully supported there as it is currently supported for IE 11 only and not in any other browser and the default browser may differ.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 20 December 2020 14:59 PM UTC
  2. PowerBuilder
  3. # 2

Hi Orna;

   Why not use PB's new Web Browser built-in control instead?

Regards ... Chris

Comment
  1. Orna Peretz
  2. Sunday, 20 December 2020 15:06 PM UTC
And how do I get the returnValue there?

I'm not sure whether the existing HTML will be fully supported there as it is currently supported for IE 11 only and not in any other browser.
  1. Helpful
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.