9 posts / 0 new
Last post
Linking

Hello, I'm trying to link my regions on main map with their own "local" maps in other instance of StatPlanet. But it gives me an error:   TypeError: Error #1010: Термин не определен и не имеет свойств. (Term is not defined or hasn't attributes). How to deal with it? 
Besides it, StatPanet tries to launch new "linked" instance in web-browser. How to launch it in flash?
I would be very grateful if you could send me some sort of UserGuide in linking))
P.S.  I have demographic category with sub-category population (time interval 2000-2010) and I'm trying to import new population data in it. As a result import function creates new category with new data. Can I import data to existing categories?

StatSilk's picture

Hi,
New links will always open up in a new browser window, it is not possible to launch them within the same window. Regarding importing data, it will always import to a new category. However, the macro code for importing data is open source and could be customized to your data.
Regarding the 'term is not defined error', you mention this in relation to the 'link code' but if I understood correctly it is an error you get when opening up that instance of StatPlanet? It would be useful to provide a few more details i.e. when exactly you get that error, which edition of StatPlanet you are using (shapefile version?). In addition, the error usually provides some more information, e.g. 
 
TypeError: Error #1010: A term is undefined and has no properties.
at StatPlanet_2_fla::MainTimeline/addCountrySelected()
at StatPlanet_2_fla::MainTimeline/loadMap()
Would you have these details as well? Otherwise it is difficult to know what the problem is. Thanks,
Frank

Hi, Frank!
Thanks for helping me.
I've created map with administrative borders of russian regions. And now I'm trying to link every region with its own map through launching another instance of StatPlanet (for every region).
Here is the algorithm which causes an error:
1. I'm trrying to create new region in map_regions sheet (ex. MoscowCap).
2. Inserting the path (URL column) to another copy of StatPlanet(ex. Region/StatPlanet.exe)
3.Save data.
4.Launch StatPlanet main copy and choose my new region (MoscowCap in selection bar )
5.StatPlanet tries to launch copy in web-Browser and gives me an error:
 
TypeError: Error #1010: Термин не определен и не имеет свойств.
at com.statplanet::SPdata/getSetting()
at content_fla::MainTimeline/loadDataFile()
at content_fla::MainTimeline/ioErrorHandlerSettings2()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
6. And if I'm trying to link to txt files this algorithm works.

StatSilk's picture

Hi,
It could be a couple of things:
1. Does the StatPlanet version you are trying to open run properly without errors (i.e. if you run it normally, not through the map region link).
2. You cannot open a desktop version in the browser (StatPlanet.exe), or it will just try to download it. You would therefore need to link to the 'StatPlanet.html' file.
3. If this isn't the issue, would you have a web link which can be shared so it can be checked out? Otherwise please feel free to do a support request via the contact form - http://www.statsilk.com/contact which will enable the sharing of files which cause the issue (or you could make them available for download somewhere).
Best,
Frank

It seems that second second "thing" about me. I'll try to solve problem.
Thanks for help.

Hi,
It's all working ok, but when i'm linking to StatPlanet.html it opens with banner 'For testing purposes only'.
Is there any way to open from StatPlanet another instance of StatPlanet without this banner on desktop?

StatSilk's picture

Hi,
The linking was intended for the web-version of StatPlanet only, which requires a license, and runs in the browser only. For more details, please see http://www.statsilk.com/software/statplanet-plus#cost
If it is absolutely necessary to link to a desktop version of StatPlanet.exe, that would require a special customization to add this feature. The linked desktop version would need to reside within the same folder as the original StatPlanet, due to a Flash security restriction. For a cost proposal, please feel free to get in touch via e-mail / the contact form - http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy
Best,
Frank

TypeError: Error #1010: A term is undefined and has no properties.
at StatPlanet_2_fla::MainTimeline/completeHandler()
at StatPlanet_2_fla::MainTimeline/completeHandlerCSV()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

StatSilk's picture

Hi,

Would you be able to post more details as listed here http://www.statsilk.com/support/forum/sticky-please-read-posting-support... ?

This look like an issue where data was inserted manually and there is an issue with the structure. Did you use the import button?

Many thanks,

Frank

USER LOGIN