POST
|
I found the solution, but it took a lot of research. First, thanks for all who responded. Here's the code: tabContainer.watch("selectedChildWidget", function(name,oval,nval){ //tabContainer is the id of my TabContainer if (nval.id == "popTab"){ createMap("e1cff258e4674ab1985e2303106b0cc8"); } else if(nval.id == "ageTab"){ createMap("3dea9137545e41eb8d4877ac8970294f"); } else if(nval.id =="raceTab"){ createMap("b3ab092a57c14fab9c8b9cc697e25eaf"); }http://forums.arcgis.com/images/icons/icon11.png else{createMap("374ea990475d4db0ad0397543c9539af");} }); I discovered I didn't need to do the onshow/onclick etc. event because the watch() method already does this. This is actually in the dojo documentation, but not being a seasoned programmer makes it easy to not understand what is being shown in front of you. Now, when someone clicks on my population tab with the id of (popTab) it will fire my createMap function. The problem I was running before I successfully implemented watch() was every time I hit a tab it redrew the map even if the map was already present. Thanks again and hopefully someone will find this helpful. Doug dkampe@howardcountymd.gov
... View more
12-11-2013
04:21 AM
|
0
|
0
|
444
|
POST
|
I am developing an application with 4 tabs on the left and a map served by ArcGIS Online(AGOL) on the right. What I want to do is when tab1 is active (focused), I want the webmap to be webmap1. When the user clicks tab2 I want the webmap to change to webmap2, and so on. This is seemingly a simple task, but I cannot find enough documentation for a novice like me to understand how to make this happen. Here's a bit of code starting the initial map that works correctly: var webmap = "e1cff258e4674ab1985e2303106b0cc8"; arcgisUtils.createMap(webmap,"mapDiv").then(function (response){ map = response.map; }); What if want is to make myvariable webmap dependent upon the active tab: var webmap = (if tab1.active){"e1cff258e4674ab1985e2303106b0cc8"} (else if tab2.active){"3dea9137545e41eb8d4877ac8970294f"} etc. etc. etc.... Can anyone help me with this? Thanks
... View more
12-06-2013
08:13 AM
|
0
|
4
|
641
|
POST
|
I have a topology between 2 features (1 point and 1 polygon) and when I try to validate 1 rule (points shall be covered by polygon) I get an error message. The message is: "Validate Topology Failed. A failure was detected inside the topology engine overlay processor. [error id:220]" Anyone know what that means and how to remedy it? I'm using ArcMap 10.0 and Windows XP SP 3. Doug
... View more
10-31-2011
11:00 AM
|
0
|
3
|
3278
|
POST
|
I am trying to avoid future problems, so I thought I'd better ask about using SQL programability with a SDE database. What problems (if any) can I incur by using triggers, functions, and stored procedures with versioned SDE data? If it would be helpful, I could give some specifics on the project I'm working on.
... View more
07-18-2011
05:38 AM
|
0
|
1
|
231
|
POST
|
I'm trying to learn as much as I can about developing tools for Flex using Adobe Flash Builder 4. For a few months now, I have been tweaking the code of the shared widgets from the code gallery, but now I want to go beyond this. I figured using ESRI's sample code and adapting it would be a good start, but I'm not finding this to be an easy task. Here's what I'm trying to do for my first project. I want to use ESRI's reverse geocoding sample code, but have it display the address on the sample Hello World Widget that comes with the viewer. I've watched the Create a Custom Widget video, and while it is somewhat informative, it's not very helpful with my project. Ultimately, I'd like to try to make tools that are more complicated and more useful. This is what I thought I could get it to do: The user clicks on the widget icon in the tray, The user is advised to "Click on the map to get an address." (I can do this part.), The address populates on the widget (obviously where I'm stumped), The user is blown away!, 😉 And finally, the user closes the widget. Any help from the pros would be greatly appreciated by me and I'm sure all the beginners trying to learn this stuff on their own. I'm not a total novice to programming. I have some experience with VB.NET and am pretty proficient in T-SQL, so it's not as if I've never looked at code. Thanks in advance. Doug
... View more
04-15-2011
06:34 AM
|
0
|
1
|
367
|
POST
|
Thanks for the response. Yes, this is the chart widget for flexviewer, version 2.2, and I'm using ArcGIS Server 9.3.1. What I'm envisioning is the combobox would be populated with the names of the different layers from the REST services. In my case, it would be the layers 1. County & 2. Watersheds. Currently, the tool does query the server for values, but this is to calculate the parts of the graph and is all declared in the tool's xml. I do not want to allow the user to choose different values to graph, because it would introduce additional complexity and confusion. Thanks, Doug
... View more
03-25-2011
04:42 AM
|
0
|
0
|
169
|
POST
|
I've done some minor code modification to the chart widget, but a few days ago I was asked to include a combobox so users can select different layers to pull statistics from. I thought I could figure it out by looking at examples online having some basic programming knowledge in VB. I've modified the uncompiled chart tool, but I'm quickly realizing this request is beyond my skill level. Has anyone modified this tool to include a combobox and, if so, would you be so kind to share your code? Thanks, Doug
... View more
03-22-2011
07:22 AM
|
0
|
2
|
952
|
POST
|
Well, I finally realized that the tool was taking my summaryField and was increasing it by a factor of 6. Of course, I have no idea why, but as a quick fix I took the final line of code, and divided the summaryValue by 6. Now it's reporting the correct number! var msg:String = chartLabel + " [" + featureSet.features.length + " " + entitiesLabel + "]: " + numFormatter.format(summaryValue/6) This tool is great! Doug
... View more
03-15-2011
11:00 AM
|
0
|
0
|
118
|
POST
|
Hello, I've successfully modified the chart widget for our organization's needs, but it has one minor quirk with it; when it displays the statistics results, it gives a nonsense value. Actually, I believe it is even doing it on the Flex interactive example: http://www.arcgis.com/home/item.html?id=51558a31b24a4139bf915a0ba47bd25d So, what should be happening is the widget sumarizes the bumber of features selected and the sum of a user-defined field <summaryfield>DRAIN_ACRES</summaryfield> from the ChartWidget.xml. (Drain acres in my case.) The correct sum should be 370.327, but here is the result straight from the widget: "Total for selected area [1 features]: 2,221. (Again, actual is 370.327.) Since I'm not a developer (I'm using Flex Builder 4 triall version since yesterday), and I am fruitlessly trying to figure this out, is there something in the code below that is causing this? I highlighted the bottom-most code below which populates the result string. Thanks, Doug ArcGIS Server 9.3.1, Flex 2.2, ChartWidget 2.2 private function calculateStatistics(featureSet:FeatureSet):void { summaryValue = 0; for (var i:Number = 0; i < chartFields.length; i++) { var chartFieldArray:Array = chartFields.split(","); var chartValueArray: Array = []; for (var j:Number = 0; j < chartFieldArray.length; j++) { var label:String = chartFieldArray ; var value: Number = 0; for (var r:Number = 0; r < featureSet.features.length; r++) { value += Number(featureSet.attributes [label]); summaryValue += Number(featureSet.attributes [summaryField]); } var obj:Object = new Object(); obj.label = label; obj.value = value; chartValueArray.push(obj); } chartSeries.push(chartValueArray); } ColumnChartStatistics.visible=false; PieChartStatistics.visible=true; PieChartStatistics.dataProvider = chartSeries[0]; var msg:String = chartLabel + " [" + featureSet.features.length + " " + entitiesLabel + "]: " + numFormatter.format(summaryValue);
... View more
03-11-2011
11:30 AM
|
0
|
2
|
677
|
POST
|
Thanks Ravi. I wish I would have seen your post earlier. 😉 It would have saved me an hour with ESRI support. We found that this is a problem with ArcGIS Server 9.x and will not be resolved. ArcGIS Server 10.x has resloved this issue however. Thanks for the reply Ravi. Doug
... View more
03-07-2011
03:56 AM
|
0
|
0
|
553
|
POST
|
After a lengthy chat with ESRI support, we found that this is a problem with ArcGIS Server 9.x and will not be resolved. ArcGIS Server 10.x has resloved this issue however. Thanks for your help Robert. Doug
... View more
03-07-2011
03:54 AM
|
0
|
0
|
210
|
POST
|
Hello, I'm running ArcGIS Server 9.3.1 and am able to successfully create new GIS Services. However, I have a field with a coded domain applied and the domain does not show up. I'm need the coded domain for a Flex widget I'm configuring. Any suggestions? I can't find anything online about it. Doug
... View more
03-04-2011
10:21 AM
|
0
|
2
|
893
|
POST
|
Doug, Your issue with the images is that the folder under widgets has to be called eSearch. widgets/eSearch/assets/images/ For your major issue can you post a screen shot or copy and paste of the Rest Service end point that shows the Coded domain values? Example: Fields:
* OBJECTID (Type: esriFieldTypeOID, Alias: OBJECTID)
* Local_ID (Type: esriFieldTypeString, Alias: Local ID, Length: 10 )
* Bin (Type: esriFieldTypeInteger, Alias: Bin)
* Length_ (Type: esriFieldTypeDouble, Alias: Length)
* B_Road_W (Type: esriFieldTypeDouble, Alias: Bridge Roadway Width (Curb to Curb))
* Deck_W (Type: esriFieldTypeDouble, Alias: Deck Width (Out to Out))
* Approach_R_W (Type: esriFieldTypeDouble, Alias: Approach Roadway Width)
* Span_Num (Type: esriFieldTypeSmallInteger, Alias: Number of Spans)
* M_Span_L (Type: esriFieldTypeDouble, Alias: Max Span Length)
* Deck_Cond_C (Type: esriFieldTypeString, Alias: Deck Condition Code, Length: 5, Domain: Coded Values: , [9: 9 - Superior to present desirable criteria], [8: 8 - Equal to present desirable criteria], ...8 more... ) Robert, The icons are now showing. I thought of that possiblity, but didn't follow my gut. Thanks for that one. Ok, the Rest services do not show my coded Domain on the bottom-most field LINK, but the domain works perfectly in ArcMAP. I do not understand this. I cleared the Rest cache, and double checked the domain in ArcCatalog. Also, I'm creating the GIS Service from ArcMAP and enabling Mapping, KML, and WMS. No problems there. Obviously, I'm missing something. Fields: ID (Type: esriFieldTypeOID, Alias: ID) SEQ_NUMB (Type: esriFieldTypeDouble, Alias: SEQ_NUMB) MDE_NO (Type: esriFieldTypeDouble, Alias: MDE_NO) FIPS (Type: esriFieldTypeDouble, Alias: FIPS) REPORT_SOURCE (Type: esriFieldTypeString, Alias: REPORT_SOURCE) N83_MT (Type: esriFieldTypeDouble, Alias: N83_MT) E83_MT (Type: esriFieldTypeDouble, Alias: E83_MT) COSEG (Type: esriFieldTypeDouble, Alias: COSEG) FALLINE (Type: esriFieldTypeString, Alias: FALLINE) SUBBASIN (Type: esriFieldTypeString, Alias: SUBBASIN) MDE8DIGT (Type: esriFieldTypeString, Alias: MDE8DIGT) FIRST_MDE8 (Type: esriFieldTypeString, Alias: FIRST_MDE8) STRU_CODE (Type: esriFieldTypeString, Alias: STRU_CODE) STRU_TYPE (Type: esriFieldTypeString, Alias: STRU_TYPE) C (Type: esriFieldTypeString, Alias: C) UWG_CLASS (Type: esriFieldTypeString, Alias: UWG_CLASS) YEAR (Type: esriFieldTypeDouble, Alias: YEAR) DRAIN_ACRES (Type: esriFieldTypeDouble, Alias: DRAIN_ACRES) DRAIN_SQ_FT (Type: esriFieldTypeDouble, Alias: DRAIN_SQ_FT) SHAPE (Type: esriFieldTypeGeometry, Alias: Shape) LINK (Type: esriFieldTypeString, Alias: LINK)
... View more
03-04-2011
09:35 AM
|
0
|
0
|
210
|
POST
|
Doug, The Flex Viewer allows for multiple Config.xml files to be use with the same viewer. Configuring the viewer for multiple agencies with different widgets and look is exactly what the viewer is good at. The url that is used can have a url parameter called config (i.e config="config-agency1.xml" or config="config-agency2.xml"). Documentation is really not that bad. I just think people are skimming over it. Details on the Main configuration file are here: http://help.arcgis.com/en/webapps/flexviewer/help/mainconfig.htm I stand corrected. After playing with the Flex Viewer for some time now, I've found that this tool is pretty easy to use and configure. Like any new tool, there is a learning curve. Pour over the documentation and these posts and it'll give you most of the info one needs.
... View more
03-04-2011
08:34 AM
|
0
|
0
|
244
|
Title | Kudos | Posted |
---|---|---|
1 | 01-23-2018 08:09 AM | |
1 | 09-22-2016 06:16 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|