﻿/*global require, document */
/*jslint sloppy:true */
/** @license
| Version 10.2
| Copyright 2013 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
|    http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
*/
//============================================================================================================================//

require([
	"coreLibrary/widgetLoader",
	"application/config",
	"esri/config",
	"dojo/domReady!"
], function (widgetLoader, config, esriConfig, domReady) {

	//========================================================================================================================//

	try {

		/**
		* load application configuration settings from configuration file
		* create an object of widget loader class
		*/
		esriConfig.defaults.io.proxyUrl = "proxy.ashx";
		esriConfig.defaults.io.alwaysUseProxy = false;
		esriConfig.defaults.io.timeout = 600000;
		dojo.appConfigData = config;
		dojo.bookInfo = [];
		var applicationWidgetLoader = new widgetLoader();
		applicationWidgetLoader.startup();

	} catch (ex) {
		alert(ex.message);
	}
});
﻿/*global require, document */
/*jslint sloppy:true */
/** @license
| Version 10.2
| Copyright 2013 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
|    http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
*/
//============================================================================================================================//

require([
	"coreLibrary/widgetLoader",
	"application/config",
	"esri/config",
	"esri/arcgis/utils",
	"dojo/domReady!"
], function (widgetLoader, config, esriConfig, arcgisUtils, domReady) {

	//========================================================================================================================//

	try {

		/**
		* load application configuration settings from configuration file
		* create an object of widget loader class
		*/
		esriConfig.defaults.io.proxyUrl = "proxy.ashx";
		esriConfig.defaults.io.alwaysUseProxy = false;
		esriConfig.defaults.io.timeout = 600000;
		esri.arcgis.utils.arcgisUrl = config.PortalURL + '/sharing/content/items';
		dojo.appConfigData = config;
		dojo.bookInfo = [];
		var applicationWidgetLoader = new widgetLoader();
		applicationWidgetLoader.startup();

	} catch (ex) {
		alert(ex.message);
	}
});

Set Portal URL in bootstrapper