Hi Daniel,But yes a select by Graphic option like ArcGIS would be good.I will see about adding one. (I am also happy to include contributions and enhancements from others.)
Where/How can I change the color of the selection results grid? I'd like a bit more contrast in the results. It's currently white text with an off-white background.I'm not seeing it in the mxml. Or perhaps is based on the style tags set in the config.xml????Thanks.
import mx.core.FlexGlobals;
protected function dg_initializeHandler(event:FlexEvent):void { var dgBackgroundColor:uint = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("global").getStyle('contentBackgroundColor'); dg.setStyle("alternatingItemColors",[dgBackgroundColor,dgBackgroundColor]); }
<mx:DataGrid id="dg" width="{dgContainer.width}" height="{dgContainer.height}" horizontalScrollPolicy="on" itemClick="dg_itemClickHandler(event)" itemRollOver="dg_itemRollOverHandler(event)" initialize="dg_initializeHandler(event)"/>
Mark,Thanks for your response. Unfortunately I didn't have this thread set to email notification so I am just seeing this now! I am aware of the ArcGIS Server setting which controls the number of features returned, however I don't think this is the culprit in my case. While my number of unique values does exceed that default limit, I am only getting ~50 unique values pulled into the selection tool. Let me know if you have an idea on what else might be going on. Thanks!
Thanks Robert i have another question! is it possible to change the code for use the ALIAS of fields in the XML file?
Lisa,List not showing all unique values is to do with an ArcGIS Server setting which controls the amount of features allowed to be returned. The setting can be changed in the server. See the comments on the page where you can download the Selection widget as there is an answer in one of the comments.
In SelectionByAttributes.mxml the function retreiveFieldValues, I had to comment out the query.where"1=1" and add a new line of query.text = "%". Not sure why text worked and 1=1 did not work on your layer, as both methods are doing the same thing.If you can access the source code, I would suggest making the change.//query.where = "1=1"; query.text = "%";
//query.where = "1=1"; query.text = "%";
{ "error" : { "code" : 500, "message" : "No display field", "details" : [] } }
Hi Markbut is it possible to extend the widget's function for a map service with a relationshio class?
Mike,Do you mean you are not getting a full list or none at all.If you are not getting a full list then it has been mentioned previously in this threadIf you are not getting any values at all, please post your selectionwidget.xml file.
<?xml version="1.0" ?> <configuration> <layers> <layer> <name>Water Wells</name> <url>http://dnrmaps.dnr.in.gov/ArcGIS/rest/services/ProgramMaps/WaterWells_DNR_102100/MapServer/1</url> <titlefield>DBLREFNO</titlefield> <linkfield></linkfield> <fields> <field name="DBLREFNO"/> </fields> </layer> </layers> <zoomscale>50000</zoomscale> <info>widgets/InfoTemplates/InfoPopupWidget.swf</info> </configuration>
I do have a problem with the Get Unique Values not loading
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.