Thanks very much John, you can probably tell I'm a newbie and had no idea you didn't need {} within actionscript. I'm pretty close I think but the query itself isn't executing. here's what I have. Here�??s the defined query
<esri:QueryTask
id="queryTaskAssignments"
url="http://blah blah/MapServer/6"
/>
<esri:Query
id="queryAssignments"
returnGeometry="true"
outFields="[assignment_number,team_name,timeslider,team_name,description]"
where="resultPeriod"
/>
Here�??s the button and text box
<s:TextInput id="textPeriod" enabled="true"/>
<s:Button id="textButton" label="Go" enabled="true" click="textButton_clickHandler(event)"/>
Here�??s the actionscript
// function to return assignments to data grid
public function textButton_clickHandler(event:MouseEvent):void
{
var resultPeriod:String = "";
if (textPeriod.text>"") {
resultPeriod = new String('period ='.concat(textPeriod.text))
}
if (textPeriod.text=="") {
resultPeriod = "1=1"
}
queryTaskAssignments.execute(queryAssignments);
}
I tested with Alert.Show(resultperiod) and get the correct strings to pass to the where= statement, no compiler errors but it�??s not firing the query. Is there something I need to do to pass values from with an actionscrip to mxml?Thanks againJon