How To: Change the Add Data From Server dialog in ArcPad 10.2 to use services from web adapter instance not named 'arcgis'
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:
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');
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.