Hexagon Geospatial
MENU

Developers Knowledge Base

WebGIS enables powerful geospatial web applications and services that securely share your organization’s rich geospatial data, and provides tools to deeply examine spatial data and create value added products, on demand.
Showing results for 
Search instead for 
Do you mean 

Configuring workspaces of custom portals

by Technical Evangelist on ‎10-16-2015 08:33 AM - edited on ‎04-06-2017 04:10 AM by Technical Evangelist (534 Views)

Modify the AdminHelper.js file

 

To make possible assigning workspaces for your custom portal, append/edit the following file

"C:\Program Files\Common Files\Hexagon\Services\AdminInstances\AdminPortal\js\AdminHelper.js"

code

Sys.Application.add_init(function(){
	var orig = Intergraph.WebSolutions.Core.WebClient.Controls.Instances.InstancesControl.prototype.initialize;
	Intergraph.WebSolutions.Core.WebClient.Controls.Instances.InstancesControl.prototype.initialize = function () {
	    orig.apply(this, Array.prototype.slice.call(arguments));
                //TODO: put your custom portal names in this array
		this._instancesDefaultTypes = this._instancesDefaultTypes.concat(["MyPortal"]);
	};
});
Overview