English

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

Summary

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'.

Procedure

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:


Code:
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.

Note:
It is necessary to have full control privileges to make edits to this file.