Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Regular Contributor
Posts: 163
Registered: ‎11-17-2015

GMSC - Accessing GMSC interaction from browse action type

Hello,

 

I browse an html page using an action defined in GMSC administrator.

Is it possible to interact with GMSC from js embeded in the HTML?

I tried something like window.IG.getActiveFeature() with no success.

 

Thank you!

Yohann.

Staff
Posts: 1,036
Registered: ‎10-18-2015

Re: GMSC - Accessing GMSC interaction from browse action type

Hi Yohann,

 

are you doing this within Java (means you are loading your html page in the Java integrated browser)? If this is the case you must include the map.js (deployed in the content\scripts\map of you workflow application) in your page scripts.

 

The scripting object to communicate with the map is not available outside of Java context.

 

HTH,

Stefano 

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Regular Contributor
Posts: 163
Registered: ‎11-17-2015

Re: GMSC - Accessing GMSC interaction from browse action type

Hello,

 

The problem was that I tried to use window.Smartclient before it was instancied.

By waiting for this object to be created, I can then use the JS API and interact with GMSC.

No need for map.js reference.

 

Thank you.

Yohann.

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.