Infrastructure Map Server Developer

Reply
Valued Mentor
gluckett
Posts: 367
Registered: ‎10-10-2003
Message 1 of 2 (1,107 Views)

AIMS 2013 getSessionID API change?

1107 Views, 1 Replies
04-17-2012 06:04 PM

Ok I found a difference between AIMS 2012 and AIMS 2013

 

With 2012 you get the session id with Fusion like this:

 

 

 
	var mapWidget =Fusion.getWidgetById('Map');
   
 	var SESSION = mapWidget.getSessionID();
 	var MAPNAME = mapWidget.getMapName(); 

 

 
BUT with AIMS 2013 I have to do this:

 
	var mapWidget =Fusion.getWidgetById('Map').aMaps[0];
   
 	var SESSION = mapWidget.getSessionID();
 	var MAPNAME = mapWidget.getMapName(); 

 

 
So a lot of code changes and searches and replaces....
Board Manager
Daniel.Du
Posts: 181
Registered: ‎12-23-2008
Message 2 of 2 (1,050 Views)

Re: AIMS 2013 getSessionID API change?

05-16-2012 12:00 AM in reply to: gluckett

Yes, I notice getSessionID() is removed from  Fusion.Widget.Map of AIMS 2013. Thank you for raising this!

 

The code comment of AIMS 2012 saying :

 

getSessionID: function() {

        //TODO: what is the mapname in the case of multiple map layer objects?

        //just return baselayer session ID for now

        return this.aMaps[0].getSessionID();

},

 

so it seems that it was a temparary implementation is AIMS2012.  I am checking with development team for the exact reason of this change. I will update this thread when I get a response.

 



Daniel Du
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community