Hi Tom,Excellent Widget! I have almost succeeded in getting it to work, but I am afraid I have run into some problems. I attached an image of the error that I am receiving; as well as the full text within the error window below.I believe the issues I am having are based upon my server's name. Locally our server is named GIS. The full path is "gis.wff.nasa.gov." Unfortunately, we have recently moved to an enterprise NASA network called the NDC. Our computer's path locally is still GIS, gis.wff.nasa.gov, but is also now gis.ndc.nasa.gov. There is another server on this larger domain named gis.ndc.nasa.gov, which is gis.larc.nasa.gov. The problem is when we try to connect to on the network to \\gis for example it tries to connect to the machine gis.larc.nasa.gov, which we don't have access. Therefore everything needs to reference gis.wff.nasa.gov. This includes our SDE geodatabase. Prior to this migration we could connect to it using GIS_SQLEXPRESS, but now I must type in GIS.WFF.NASA.GOV_SQLEXPRESS. I am wondering if this is causing my issue. I hope this is enough background information, but let me know if you need more.Thanks,Alex BrownGIS AnalystNASA Wallops Flight Facility<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>printMap (PCHPrintSOE)</title>
<link href='https://community.esri.com/ArcGIS/rest/ESRI.ArcGIS.Rest.css' rel='stylesheet' type='text/css'>
<script>
function addParameter() {
var table = document.getElementById("parameterTable");
var numRows = table.rows.length;
var row = table.insertRow((numRows - 1));
row.vAlign = "top";
var cell1 = row.insertCell(0);
cell1.innerHTML = "<input name='__paramName__' type='text' size='20' value='' />";
var cell2 = row.insertCell(1);
cell2.innerHTML = "<textarea name='__paramValue__' rows='3' cols='50'></textarea>";
}
function submitForm(method) {
var nameNodes = document.getElementsByName("__paramName__");
var valueNodes = document.getElementsByName("__paramValue__");
var form = document.createElement("form");
form.method = method;form.action = "http://gis.wff.nasa.gov/ArcGIS/rest/services/layout/MapServer/exts/PCHPrintSOE/printMap"
for (var i = 0; i < nameNodes.length; i++) {
var name = nameNodes.value;
var value = valueNodes.value;
name = name.replace(/\ /g, "");
if(name) {
var field = document.createElement("input");
field.type = "hidden";
field.name = name;
field.value = value;
form.appendChild(field);
}
}
document.body.appendChild(form);
form.submit();
}
</script>
</head>
<body>
<table width="100%" id="userTable">
<tr>
<td id="titlecell">ArcGIS Services Directory</td>
</tr>
</table>
<table id="navTable" width="100%">
<tbody>
<tr valign="top">
<td id="breadcrumbs">
<a href="https://community.esri.com/ArcGIS/rest/services">Home</a> > <a href="https://community.esri.com/ArcGIS/rest/services/layout/MapServer">layout (MapServer)</a> > <a href="https://community.esri.com/ArcGIS/rest/services/layout/MapServer/exts/PCHPrintSOE">PCHPrintSOE</a> </td>
<td align="right" id="help">
<a href="http://GIS/ArcGIS/SDK/REST/servicesdirectory.html" target="_blank">Help</a> | <a href="?f=help" target="_blank">API Reference</a></td>
</tr>
</tbody>
</table>
<div class='restHeader'>
<h2>printMap (PCHPrintSOE)</h2>
</div>
<div class='restBody'>
<form>
<table style="border:1px solid #000000;">
<tr valign="top">
<td>mapExtent: </td>
<td><textarea name="mapExtent" rows="10" cols="50"></textarea></td>
</tr>
<tr valign="top">
<td>printOutput: </td>
<td><textarea name="printOutput" rows="10" cols="50"></textarea></td>
</tr>
<tr valign="top">
<td>mapElements: </td>
<td><textarea name="mapElements" rows="10" cols="50"></textarea></td>
</tr>
<tr valign="top">
<td>mapServices: </td>
<td><textarea name="mapServices" rows="10" cols="50"></textarea></td>
</tr>
<tr>
<td>Format:</td>
<td>
<select name="f">
<option value="pjson" selected='true'>json</option>
</select></td>
</tr>
<tr><td colspan="2"><input type="submit" value="printMap" /></td></tr>
</table>
</form>
outputFile: http://gis/arcgisoutput/PrintTask_layout_1307476698542_map.pdf<br/><br/></div>
</body>
</html>