Hi Robert,
It is select by attribute, I found Mark Hoyland's sample which based on your eSearch.
function onSelectItem(e:ContextMenuEvent):void{
if(datagrid.selectedIndex >= 0){
"selected Item No = " + datagrid.selectedItem.itemNo);
"selected Item Sub No = " + datagrid.selectedItem.itemSubNo);
this.cursorManager.setBusyCursor();
var query:Query = new Query;
query.where = "SELECT * from dev_db.DBO.ItemDetails WHERE Item_No = '" + datagrid.selectedItem.itemNo + "' and Sub_No = '" + datagrid.selectedItem.itemSubNo + "'";
new AsyncResponder(onSelectResult, onSelectFault, targetLayer));
else{
"Select a record first","ATTENTION");
}
}
private function onSelectResult(info:Array, token:FeatureLayer = null😞void {
this.cursorManager.removeBusyCursor();
var fl:FeatureLayer = token;
if (fl.selectedFeatures.length == 0)
"Selection completed but found no features. Please check your parameters." ,
"Nothing Found", Alert.OK);
}
private function onSelectFault(info:Object, token:Object = null😞void
{
this.cursorManager.removeBusyCursor();
"Could not complete Selection. Please try again.\n" + info.toString(),
"Selection Error", Alert.OK);
}
All features are in the layer dev_db.DBO.ItemDetails, but never select the feature and the busy icon there.
Thanks a lot for the patient and attention.