HowTo:  Change the Add Data From Server dialog in ArcPad 10.2 to use services from web adapter instance not named 'arcgis'

相关信息
Article ID: 41587
Software:
ArcPad 10.2
Platforms: N/A

问题描述
Instructions provided describe the steps to modify the ServerBrowser.js file to enable the use of a custom web adaptor name.

This is done to change the 'Add Data From Server' dialog in ArcPad 10.2 to use services from a web adapter instance not named 'arcgis'.
已邀请:

易智瑞技术支持

赞同来自:

解决方案
The 'Add Data from Server' dialog has the ability to connect to ArcGIS Server, Portal and ArcGIS Online with users being able to input shorthand addresses for all three. This doesn't account for customers using services from a web adapter instance not named 'arcgis'.


1. To fix this issue, edit to the ServerBrowser.js file in the following folder:
C:\Program Files (x86)\ArcGIS\ArcPad10.2\System\Scripts
At the bottom of the ServerBrowser.js file is the OnRefresh function:



function OnRefresh()
{
errorStatus = null;
error404count = 0;

Console.Print('Refreshing Services ...');

var url = '' + cbxURL.Text;
if (url.indexOf('://') == -1)
{
url = 'http://' + url;
cbxURL.Text = url;
}

ArcGISServer_Info(cbxURL.Text + '/arcgis');
Portal_Version(cbxURL.Text);
}


2. Delete the bold text + '/arcgis' and save the file. This allows ArcPad users to use a custom web adaptor name.
It is necessary to have full control privileges to make edits to this file.




创建及修改时间
Created: 9/17/2013

Last Modified: 9/19/2013
原文链接
http://support.esri.com/en/kno ... 41587

要回复问题请先登录注册