Dan,If you have the ability to amend the source code it may be easier to create yourself a widget.If you set yourself two input boxes (in this case one with an id="longText" and one with the id="latText") you can then create a feature set that gets sent to the gp service.
<?xml version="1.0" encoding="utf-8"?>
<viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:viewer="com.esri.viewer.*"
>
<fx:Script>
<![CDATA[
private function AddXY():void
{
var myMapPoint:MapPoint = new MapPoint(Number(longText.text),Number(latText.text),map.spatialReference)
var myFeatureSet:FeatureSet = new FeatureSet([{geometry:myMapPoint}]);
myFeatureSet.geometryType = "esriGeometryPoint";
var params:Object = {
"Point_Input": myFeatureSet, //this assumes your gp service is expecting an input called Point_Input
};
gp.execute(params);
}
]]>
</fx:Script>
<fx:Declarations>
<esri:Geoprocessor id="gp" url="your gp URL" useAMF="false" executeComplete="some event " outSpatialReference="{map.spatialReference}" fault="some event " />
</fx:Declarations>
<viewer:WidgetTemplate id="wTemplate">
<s:HGroup width="100%" horizontalAlign="left" verticalAlign="middle">
<s:Label width="60" id="latLabel" text="Latitude:" />
<s:TextInput width="100" maxChars="9" id="latText" restrict="0-9\." />
<s:Label width="60" id="longLabel" text="Longitude:" />
<s:TextInput width="100" maxChars="9" id="longText" restrict="0-9\." />
<s:Button width="100" label="Add XY" click="AddXY()" />
</s:HGroup>
</viewer:WidgetTemplate>
</viewer:BaseWidget>
This will send a single point to the gp service its up to your model what you want to do with itHope this is of some helpRegardsAnthony