|
POST
|
Can you use HttpFox to see what the requests and responses are?
... View more
08-17-2012
11:10 AM
|
0
|
0
|
1403
|
|
POST
|
You can also create the object like this: <fx:Object myCustomTextElement="{customcontent}"/>
... View more
08-17-2012
09:21 AM
|
0
|
0
|
1739
|
|
POST
|
The fault "Unexpected < encountered at location 5" is because this is HTML coming back from the server instead of JSON so the JSON parser fails. The HTML seems to be coming from the ArcGIS Web Adaptor saying "The operation has timed out". I'd suggest contacting Esri Tech Support at http://support.esri.com/
... View more
08-16-2012
11:45 AM
|
0
|
0
|
1052
|
|
POST
|
Try setting the tokenServiceURL to the same as what you see on your server at /arcgis/rest/info e.g. http://sampleserver6.arcgisonline.com/arcgis/rest/info
... View more
08-15-2012
08:56 AM
|
0
|
0
|
1403
|
|
POST
|
Can you see what the response from the server is using a tool like HttpFox?
... View more
08-15-2012
08:47 AM
|
0
|
0
|
1052
|
|
POST
|
Meade, Were you able to try any of my suggestions from post #6 above?
... View more
08-15-2012
08:45 AM
|
0
|
0
|
1086
|
|
POST
|
Here's a sample of a chart inside an InfoSymbol: http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Query_result_as_charts/01nq00000040000000/
... View more
08-13-2012
11:50 AM
|
0
|
0
|
707
|
|
POST
|
Are you using the Edit widget? If yes, see this thread: http://forums.arcgis.com/threads/63034-Edit-widget-token?p=219615#post219615
... View more
08-10-2012
02:03 PM
|
0
|
0
|
457
|
|
POST
|
Are you requesting the token with f=json ? It should return an expires date. If you're sure that it's going to expire in an hour, you could use setTimeout() to either renew the token or redirect to the login in 59 minutes. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html#setTimeout() If using 3.0, you could use the IdentityManager instead: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/components/IdentityManager.html
... View more
08-10-2012
10:31 AM
|
0
|
0
|
284
|
|
POST
|
If you set the layer type to "dynamic", the client will ask the server for a single large map image to be generated for the current extent of the map. If the service on the server has cached tiles, it will stitch the tiles together and resample the image to match the requested scale and spatial reference. This can reduce the output quality vs. loading the tiles directly into the client. You can try setting imageformat="png32" to see if this improves the output quality. Another option, if you're using a 10.1 server, is to enable dynamic layers on the service and then the server will produce the new image from the source data instead. This means that the cached tiles would not be used at all. For the best performance though you'll need to set the layer type to "tiled" and make sure that all the "tiled" layers are cached using the same spatial reference and scales.
... View more
08-10-2012
08:58 AM
|
0
|
0
|
1664
|
|
POST
|
Are you setting the layer's type to "tiled"? See: http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Layer_tag/01m30000000p000000/
... View more
08-09-2012
01:26 PM
|
0
|
0
|
1664
|
|
POST
|
Instead of retrieving the tiles and stitching them together, the Print GP will make a /export map request to the service if it's a 10.1 service that has dynamic layers enabled on it. This will result in a new image being created from the data since /export will go to the data in this case. In all other cases, /export stitches the cached tiles together.
... View more
08-08-2012
12:38 PM
|
0
|
0
|
1642
|
|
POST
|
You can use the Flash API to upload a file. Here's sample code for this. FileReference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html#upload() REST API reference: http://resources.arcgis.com/en/help/rest/apiref/upload_item.html The DataFile also has an itemID property you can set to reference the uploaded file in a GP request: http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportClasses/DataFile.html#itemID <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <fx:Script> <![CDATA[ import com.esri.ags.utils.JSONUtil; import mx.controls.Alert; import mx.utils.ObjectUtil; private var fileReference:FileReference; private var timer:Timer; private var baseTimer:int; private function onLoad():void { //Instantiate on loading fileReference = new FileReference(); //create the filter which will be just uploading the txt var myFilter:FileFilter = new FileFilter("Zip", "*.zip"); fileReference.browse([ myFilter ]); fileReference.addEventListener(Event.SELECT, onFileSelect); fileReference.addEventListener(Event.COMPLETE, onFileComplete); fileReference.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, onUploadCompleteData); timer = new Timer(1000); timeElapsed.visible = timeElapsed.includeInLayout = true; timer.addEventListener(TimerEvent.TIMER, updateTimer); } private function onFileSelect(event:Event):void { var fileUploadRequest:URLRequest = new URLRequest("http://server/arcgis/rest/services/ServiceName/GPServer/uploads/upload"); fileUploadRequest.method = URLRequestMethod.POST; var urlVars:URLVariables = new URLVariables(); urlVars.f = "json"; urlVars.description = "this is just a test upload"; fileUploadRequest.data = urlVars; fileReference.upload(fileUploadRequest, "file"); baseTimer = getTimer(); timeElapsed.visible = timeElapsed.includeInLayout = true; timer.start(); } private function onFileComplete(event:Event):void { timer.stop(); timeElapsed.visible = timeElapsed.includeInLayout = false; } private function updateTimer(event:TimerEvent):void { timeElapsed.text = "TimeElapsed: " + new Date(getTimer() - baseTimer).seconds + "secs"; } private function onUploadCompleteData(event:DataEvent):void { var result:Object = JSONUtil.decode(event.data); Alert.show(ObjectUtil.toString(result), "upload completed - " + result.item.itemID); } ]]> </fx:Script> <s:Panel id="myPanel" width="500" height="500"> <s:VGroup> <s:Button click="onLoad()" label="Upload"/> <s:Label id="timeElapsed" includeInLayout="false" visible="false"/> </s:VGroup> </s:Panel> </s:Application>
... View more
08-07-2012
10:47 AM
|
0
|
0
|
687
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-06-2017 01:13 PM | |
| 2 | 03-06-2017 02:12 PM | |
| 1 | 06-22-2010 12:01 PM | |
| 1 | 08-06-2012 09:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-15-2025
04:18 PM
|