POST
|
This is easy to do - just click the column header (i.e., First Name, Last Name, etc.) to sort the records for the field that you click. Click once and the records are sorted from A-Z. Click again and they are sorted from Z-A. By the way, in your attached graphic file, it shows last names in the First Name field, and first names in the Last Name field. Is it that way in the actual DB, or is your screenshot just a test DB? I feel very silly now. I was thoroughly confused because I thought that was default behavior and it didn't seem to work. However, after I read your post I went back in and tried it again on a simple table (15 rows). It worked just as expected. Then I realized the table I was attempting to "sort" had about 50K un-indexed rows.......<hanging head in shame> (And yes, the attached file was a "dummy" table. I had attached it with code and a big long explanation, then realized it was getting too long and rewrote it. ( I have been told at times I can be a little verbose...) I forgot to unattach the file.... It has just been that kind of week I guess.) Any way, thanks for the help. I would probably still be scratching my head if you hadn't confirmed that it actually does work. -matt
... View more
04-25-2013
11:34 AM
|
0
|
0
|
218
|
POST
|
Hello, I am using Flex 3.2. I have users want to sort a column by the attribute field value? (I know how to sort the viewable columns but that is not what I am having trouble with. What I am trying to do is sort a column by field value.) Thanks in advance for any pointers or tips. -matt
... View more
04-18-2013
05:55 AM
|
0
|
2
|
1917
|
POST
|
Hi, Can I format the output in the Attribute Table without having to go into the mxml code? Example: [INDENT]In an Attribute Table I have a column "A" that has the value "0.898387189343111312". I would like to truncate it at 3 decimal points so that the table just shows "0.898". (Like you can in the InfoPopUpWindow. <field> name = "zyz" <format precision = "2"> </field>) [/INDENT] Thanks for any assistance you can give. -matt siple
... View more
03-12-2013
04:24 AM
|
0
|
0
|
463
|
POST
|
Robert, Thanks for taking the time to answer my question. Based on what you said about widgetConfigLoaded and mxml code, I was able to figure out the problem. Although the selected graphic was being added to the graphics layer, the graphics layer wasn't being added to the map. I added the "map.addLayer(clickGraphicsLayer);" and got rid of all of the MXML Elements and now it works. There are several answers to your question: Q. "Why are you not just using the IdentifyWidget". [INDENT]A. It doesn't do everything I really need. A. Because I am trying to build my knowledge of the product so that eventually I do know what I am doing. A. Because I am an Engineer and that is what we do. 🙂 First we understand how something works, break it, put it back together again, modify it, get it to work again, (repeat about 100 times) and then maybe improve it. [/INDENT] Thanks again, -matt Matt, With your limited understanding of ActionScript and MXML and what all the line in the sample are actually doing, why are you not just using the IdentifyWidget that has all of this done for you and much more?.. In Widgets almost everything except GUI elements are done in ActionScript and not MXML as in the samples. Graphics layers are added in the widgets widgetConfigLoaded event. As it stands the graphics layer that you have in the mxml code are not part of or added to the map in any way so they are useless. The Flex API sample are not meant to be ported over to widget but it can be done with the proper knowledge of what the code is doing and what needs to be changed to fit a widgets code structure. Identify Widget: http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89 Don't forget to click the Mark as answer check on this post and to click the top arrow (promote). Follow the steps as shown in the below graphic:
... View more
07-12-2012
07:51 AM
|
0
|
0
|
170
|
POST
|
Hi, I am having a hard time understanding how to modify the example programs in the ACRGIS API Flex IdentifySample to work with Flexviewer as a widget. After 4 days of trying to figure this out, I need to finally admit defeat and ask for a little help. I understand how to modify the "Application" to be a "BaseWidget" and "WidgetTemplate" and all of that. Using the "IdentifySample.xml" I modified the <Application> tag to <viewer:BaseWidget> tag and added the imports etc... I have run the debugger and found that all of the code executes. However, nothing happens when the code complete. So that tells me some variable not being set or is a different copy/instance of the variable. I suspect it is somewhere in one of the graphics variables but I am not sure. Here is where I think the trouble comes in. [INDENT]... </fx: Declarations> <esri:Map id="myMap" mapClick="mapClickHandler(event)"> <esri:extent> <esri:WebMercatorExtent minlon="-120" minlat="30" maxlon="-100" maxlat="50"/> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> <esri:GraphicsLayer graphicProvider="{lastIdentifyResultGraphic}"/> <esri:GraphicsLayer id="clickGraphicsLayer"/> </esri:Map> </s:Application> [/INDENT] Here is my thinking: 1. The "<esri:Map id='myMap'..." is not needed since it already set to "map". So in the script portion where ever their is referenceto "myMap" I chance it to "map" 2. The "<esri:ArcGISTiledMapServiceLayer url="http:..." is just setting up the base map and since this done already I omit it. 3. The script makes use of the "{lastIdentifyResultGraphic}" and since I think that all this does is declarethe graphics provider I leave that line in there. 4. The next line " <esri:GraphicsLayer id="clickGraphicsLayer"/>" I am not sure what it is doing except declaring a variable named "clickGraphicsLayer" so I leave that in there as well. So I have: [INDENT]... </fx: Declarations> <esri:GraphicsLayer graphicProvider="{lastIdentifyResultGraphic}"/> <esri:GraphicsLayer id="clickGraphicsLayer"/> </viewer:BaseWidget> [/INDENT] I have attached the modified code so you can see the whole thing. The original code can be found at: http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Identify_features/01nq0000000z000000/ Thank in advance, -matt
... View more
07-12-2012
05:10 AM
|
0
|
3
|
1941
|
POST
|
THANKS! I will look into the coded values option and see if it might work.. Again, thank you for all the work you have done. -matt Matt, No there is no option for the userlist to come from a field. The userlist is only for manual entry of values. The values can come from a coded value domain in the Geodatabase though. But as you said if the values are changing regularly than that might not be an option either.
... View more
07-10-2012
04:56 AM
|
0
|
0
|
380
|
POST
|
Hi, Is there any way to specify a field name for a "userlist"? I have a database with 5,000,000 entries that have with 10-15 unique "types". However, the types change every month or so and updating them every month would be a pain! I have been through the document a few times and just cant seem to find it. Am I just missing the syntax for it somewhere or is it not an option? Thanks for any help you may be able to provide. Great work by the way! -matt siple
... View more
07-09-2012
05:46 AM
|
0
|
0
|
380
|
POST
|
I am trying to create a layer structure that looks something like this: Food [INDENT] - Fruit [INDENT]-Apple [INDENT]<feature layers for Apples 1> <feature layers for Apples 2>[/INDENT][/INDENT] [INDENT]-Apricots [INDENT]<features layer for Apricots 1> <features layer for Apricots 2>[/INDENT][/INDENT] etc...[/INDENT] So what I am looking for is something that allows me to create a "layer group". Since there is not a "layer group tool" I thought I would just create one in python. That is where I am having trouble. I can use addLayer to add a .lyr file but the only adds a layer to an existing "layer group". Can anyone tell me how to create a layer group? (other than in the GUI) Is there anyway to accomplish this that I am not seeing? Thanks in advance. -matt
... View more
10-14-2011
05:25 AM
|
0
|
5
|
7712
|
POST
|
I am a Flex newbie, so I apologize if this question seems basic. Is there a document (or whatever) that tells a user which tags are used with a widget? For instance, if you didn't have layerlistwidget.xml file, how would I determine that the <excludelayer> tag can be used? Can you get it from the .mxml file? Thanks, -matt
... View more
08-18-2011
07:33 AM
|
0
|
1
|
693
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|