Saving project without user interface
Hi,
I'm trying to load a project, then do a save as with a different name, then recuperate the new projectid.
Using this line I am able to load the project I want:
this.app.commandRegistry.command("LoadProject").execute(paramobj.defaultProject);
But then since SaveProject or SaveAsProject do not take arguments, how can I create a new project without having the UI pop in the user's face?
this.app.commandRegistry.command("SaveAsProject").execute(NewProjectName);
Documentation: https://docs.geocortex.com/essentials/gvh/2.9/commands-help/#/commands/Projects/SaveProject
Thanks
0
-
You may need to make some changes to the viewer command for this. 0 -
Is that even possible without modfying the Geocortex libraries?
They are javascript so I could try to "decompile/unminify" them, but then I'd need to remake the change every time we update the GVH version. Is there a way to overload or redefine a Geocortex command?0 -
That's what I'm saying: I think that you'll need to customize Geocortex for this functionality at this time. I could be wrong though! We've done a bit of work with customizing a function or so here and there for our clients, and fortunately Latitude is aware that projects like ours exist so they've provided an integration with WinMerge to their upgrade tool that will show you any differences between your implimentation and the new implimentation before upgrading, and you have the ability to modify the upgraded viewer at that juncture, before you complete the upgrade tool. That being said, these customizations are not supported by Latitude so it is definitely something that you'll need to keep on top of. 0 -
Thank you for the information, I am curious if you can have the user choose the location to save their project locally?
Is this possible?
Thanks
-AC0 -
No, unfortunately it's not possible. This was an option with the Silverlight viewer but not the HTML5 viewer.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0
Please sign in to leave a comment.
Comments
5 comments