1. Moshe Tangi
  2. PowerBuilder
  3. Monday, 1 April 2019 06:52 AM UTC

Hi all ,

 

My client wants an Interface to a GIS system . 

The GIS system has an API with 2 functions :

1.  PinPoint()            =  sending me the location which the user Points ( Jason file )

2. LocateAndZoom() = mark a location wich were given by me to the GIS ( Jason file )

Since the GIS works on explorer  , they said I need to host the GIS app,  in an HTML window as a host window of type   iFrame In order to operate the API  functions .

The target is : getting some parameters back as the user points an address on the map in the GIS system .

I have no idea what that means right now , and have no experience with html at all .

 

My app is desktop ( PB 2017 r3 ) .

I believe I need to work with Ms IE ole ?

Does anyone has an idea ? Any direction / Example ? It can be done ?

 

I attached an example the gave me .

 

Thanks

 

Attachments (1)
Kevin Ridley Accepted Answer Pending Moderation
  1. Monday, 1 April 2019 13:43 PM UTC
  2. PowerBuilder
  3. # 1

Hi Moshe,

 Need some more info about the GIS application.  Is it ESRI (ArcGIS)?  If you need to exchange info back and forth between a GIS app and PowerBuilder app, the best way to do it is to see if the GIS vendor offers an Active-X that you can put directly on a window.  If the info only needs to go 1 way, ie from PB to the GIS app, you can launch a browser from PB with parameters, but getting any info back to the PB app would be tricky at best.  I did a PB app for the CT State Police that uses PB and the ESRI active-x where we displayed a map on a PB window and had all of the map functions available to the PB app, as well as events that happened on the map like clicking etc.  This worked really well and is probably the best way to have 2 way communication with your GIS app.  Another option is to use the Microsoft Web Browser control on your window.  Getting data from PB to the GIS is not difficult, but getting data back based on interaction like clicking on a map would be more challenging.  You would probably need to write javascript to take the info from GIS and get it back to PB.  There's an event in the web control called statustextchange that you can trigger to send a message and have PB "listen" for that message in the statustextchange event, but again it's fairly complex.  The other option, as I mentioned earlier is to launch a browser from PB, but this would be even more complicated to get info back from the GIS to PB.  All in all, the best solution is to use an active-x if the GIS company offers one.

 

Kevin

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 1 April 2019 13:11 PM UTC
  2. PowerBuilder
  3. # 2

You'll need to use the IE WebBrowser control. Here is an example:

http://www.topwizprogramming.com/freecode_webbrowser.html

This article might also be useful:

https://blogs.sap.com/2014/10/15/embedding-javascript-visuals-in-powerbuilder/

 

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.