|
POST
|
Found that it is related to multiple issues. One is the version related. For ArcGIS 10.1, publishing a geoprocessing toolbox is different from the previous version.
... View more
07-02-2012
06:19 AM
|
0
|
0
|
712
|
|
POST
|
I used David Springs' tool: Export PDF web application and GP service sample from http://www.arcgis.com/home/item.html?id=8f16fdeef39c46b3952002b2d85ea5de. I loaded the widget in my project and then re-compiled the code. However, after I 'Generate PDF', I clicked 'Download Map' button, the PDF page: http://stlouis.esri.com/arcgisjobs/exportpdf/exportpdf_gpserver/j02b1cf79bae54815bc3591d57862d4a8/scratch/Map.pdf pops out. However, it is an empty map but only with Miles ruler. I guess this might be due to the API version difference. Has anyone used this component and is willing to provide his/her advise to debug this problem? Thanks.
... View more
06-28-2012
06:01 AM
|
0
|
1
|
1822
|
|
POST
|
Great! Exactly as you pointed out. Thanks so much!!!
... View more
06-28-2012
05:22 AM
|
0
|
0
|
1016
|
|
POST
|
Thanks. Re-post at http://forums.arcgis.com/threads/61116-Error-1009-Cannot-access-a-property-or-method-of-a-null-object-reference?p=211046#post211046
... View more
06-28-2012
03:29 AM
|
0
|
0
|
1002
|
|
POST
|
I loaded a component to export map to PDF (async one) from http://www.arcgis.com/home/item.html...f697d9965f1dd7. However, I got a runtime error: TypeError: Error #1009: Cannot access a property or method of a null object reference at WidgetManager.mxml's Line 403, var widget:IBaseWidget; widget = modInfo.factory.create() as IBaseWidget; widget.widgetId = widgetId; // Line 403 when I clicked the tool's icon to open the widget. Through tracing, I found that widget is null. I believe that the modInfo.factory.create() failed. How can this problem be solved? I will appreciate if someone can hint me how to debug this problem. Thanks.
... View more
06-28-2012
03:28 AM
|
0
|
2
|
2913
|
|
POST
|
I loaded a component to export map to PDF (async one) from http://www.arcgis.com/home/item.html?id=a6dddf4d4297436c8af697d9965f1dd7. However, I got a runtime error: TypeError: Error #1009: Cannot access a property or method of a null object reference at WidgetManager.mxml's Line 403, widget.widgetId = widgetId; // Its value = 8 as traced when I clicked the tool's icon to open the widget. What's the possible reason for the failure? I will appreciate if someone can hint me how to debug this problem. Thanks.
... View more
06-27-2012
12:36 PM
|
0
|
2
|
4195
|
|
POST
|
I want to add a MapMouseEvent in ActionScript. The code I created is below: map.addEventListener(MouseEvent.CLICK, myEventHandler); ...... private function myEventHandler(e:MapMouseEvent):void { ... } But I received TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent to com.esri.ags.events.MapMouseEvent. How can this bug be fixed? Thanks.
... View more
06-27-2012
05:32 AM
|
0
|
2
|
801
|
|
POST
|
I am testing for the solution using ActionScript. In my test, I tried to covert the code below: <esri:FindParameters id="myFindParams" contains="true" layerIds="[3]" outSpatialReference="{map.spatialReference}" returnGeometry="true" searchFields="[MCN]" searchText="{fText.text}" /> to ActionScript code: var myFindParams:com.esri.ags.tasks.supportClasses.FindParameters = new com.esri.ags.tasks.supportClasses.FindParameters(); myFindParams.contains = "true"; myFindParams.layerIds = "[3]"; // Error 1067 myFindParams.outSpatialReference = "{map.spatialReference}"; // Error 1067 myFindParams.returnGeometry = "true"; myFindParams.searchFields = "[MCN]"; // Error 1067 myFindParams.searchText = "{fText.text}"; But I received 3 Errors (type 1067 Implicit coercion of a value of type String to an unrelated type Array). How can these errors be corrected? Thanks.
... View more
06-18-2012
06:16 AM
|
0
|
1
|
1762
|
|
POST
|
Based Zoom to Found Features http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/, I created a widget. It works well except for adding the graphicsLayer on the map. I run the debug. From the Expressions window, it shows the values of its graphicsLayer and graphicProvider. But the graphicsLyaer does not display. I wish someone can help for his/her experience. Thanks.
... View more
06-15-2012
09:17 AM
|
0
|
2
|
1211
|
|
POST
|
Great! Your response made me recall some of my codes made 2 years ago. Thanks again.
... View more
06-15-2012
08:12 AM
|
0
|
0
|
582
|
|
POST
|
I used the sample: Zoom to Found Features source code at http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/ I want to retrieve the values of the found feature. In this piece of code private function executeCompleteHandler(event:FindEvent):void { myGraphicsLayer.clear(); myGraphicsLayer.symbol = sfsFind; var resultCount:int = event.findResults.length; if (resultCount == 0) { Alert.show("No record is found. Please change your search."); } else { // add feature as graphic to graphics layer for (var i:int = 0; i < resultCount; i++) { var graphic:Graphic = FindResult(event.findResults).feature; graphic.toolTip = event.findResults.foundFieldName + ": " + event.findResults.value; myGraphicsLayer.add(graphic); // Code I added in order to retrive the values of the feature (where STF, COF, ... are the attribute names) var tempObj:Municipality = new Municipality(); tempObj.STF = event.findResults.STF; tempObj.COF = event.findResults.COF; tempObj.MCN = event.findResults.MCN; tempObj.Type = event.findResults.Type; tempObj.Area = event.findResults.Area; ...... } ...... } } But it does not work. How to revise the code to retrieve the values? Thanks.
... View more
06-15-2012
05:50 AM
|
0
|
2
|
790
|
|
POST
|
Robert: I used your component 2 years for V1.3. It was wonderful. For Flexviewer V2.5, do you have the any update for it? Thanks.
... View more
06-12-2012
03:36 AM
|
0
|
0
|
1752
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-18-2023 10:02 AM | |
| 3 | 07-14-2023 12:29 PM | |
| 1 | 04-02-2021 12:16 PM | |
| 1 | 07-24-2017 11:31 AM | |
| 1 | 04-04-2016 03:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
11:58 AM
|