POST
|
I've had some success using a dynamic token in my proxy following this older forum post: http://forums.esri.com/Thread.asp?c=158&f=2396&t=297001 Here's the relevant code snippet, see if this helps.
<!-- serverUrl options:
url = location of the ArcGIS Server, either specific URL or stem
matchAll = true to forward any request beginning with the url
token = (optional) token to include for secured service
dynamicToken = if true, gets token dynamically with username and
password stored in this file.
userName = the secured user's username
password = the password for the username
host = the machine name that is hosting the map service
-->
<serverUrl url="http://route.arcgis.com/arcgis/rest/services"
matchAll="true"
dynamicToken="true"
host="host_name"
userName="userName"
password="password">
</serverUrl>
... View more
06-20-2013
09:03 AM
|
0
|
0
|
664
|
POST
|
In case anyone else comes up against this bug working with a FeatureLayer in a dynamic workspace (which I did), I implemented the above workaround in JSAPI by adding a definitionExpression similar to above. For example: var dirty = (new Date()).getTime(); var lyrDynamic = new FeatureLayer( serviceurl + "/dynamicLayer" ,{ id: "dynamicLayer" ,mode: FeatureLayer.MODE_ONDEMAND ,outFields: ["CLASS"] ,source: layerSource ,definitionExpression: dirty + "=" + dirty } ); Cheers, jtm
... View more
02-12-2016
12:11 PM
|
0
|
0
|
928
|
POST
|
Hello, they have the solution to your question here http://forums.arcgis.com/threads/27971-Constrain-Map-Extent?highlight=constrain
... View more
03-14-2013
06:39 AM
|
0
|
0
|
518
|
POST
|
As of 3.10, is this issue resolved for tables accessed as FeatureLayers? I am facing this issue with my tables...
... View more
09-04-2014
04:29 PM
|
0
|
0
|
379
|
POST
|
i just do this inside the row clicked event and it solves my issue e.stopPropagation();
var item = this._searchGrid.getItem(e.rowIndex);
if(item == null){return;}
if(e.cell.index == 1 && e.rowIndex == item.index[0])
{//remove item
var graphic = this._searchGrid.store.getValue(item,'graphic');
this.RemoveDisplayItem(graphic);
this._searchGrid.store.deleteItem(item);
}
else{
//var item = this._searchGrid.getItem(e.rowIndex);
var graphic = this._searchGrid.store.getValue(item,'graphic');
this.DisplayItem(graphic);
this.PublishItem(this._searchGrid.getItem(e.rowIndex).searchPrefix,this._searchGrid.getItem(e.rowIndex).value,graphic);
}
... View more
03-31-2012
01:04 AM
|
0
|
0
|
279
|
POST
|
This link worked for me http://forums.arcgis.com/threads/32876-What-s-wrong-with-this-line-of-code?p=121794&viewfull=1#post121794
... View more
03-10-2012
10:49 PM
|
0
|
0
|
1048
|
POST
|
Harold, look at: http://kinderas.blogspot.com/2008/12/quicktip-mouseover-vs-rollover.html http://theactionscripter.com/2009/09/29/as3-mouse_over-vs-roll_over.aspx
... View more
03-05-2012
09:52 AM
|
0
|
0
|
172
|
POST
|
Using ArcGIS 10.1 and Flex API 3.0 this will be possible. You can ask for the statistics for a field, in this case the max date. http://resourcesbeta.arcgis.com/en/webapis/flex-api/apiref/com/esri/ags/tasks/supportClasses/Query.html#outStatistics
... View more
03-12-2012
03:45 PM
|
0
|
0
|
174
|
POST
|
Yeah, it wasn't my data, even changing useAMF=false did not work through the API. I wound up excluding it from my outFields Thanks
... View more
03-02-2012
05:05 AM
|
0
|
0
|
149
|
POST
|
Hello, I am trying to auto-populate a couple area attributes after editing with the flex viewer (Acres and Sq Km). Since the areas need to be as accurate as possible i am projecting the geometry before sending it to the areasAndLengths() function. The problem i am having is i do not seems to be able to wait for the second Async response from the areasAndLengths() function to complete. I set up both the project result handler and the areasAndLengths result handler to return a boolean value as recommended but my application times out when waiting for the areasAndLengths to complete. I am calling the project function from the selection complete function as recommended in previous post here (http://forums.arcgis.com/threads/23497-EditTool-Autopopulate-Fields?highlight=autopopulate) and using the area and length code from the samples. Any suggestions or code samples to test if both have functions have completed are greatly appreciated. Considering an SOE or GP task but that seems to be overkill since these are both capabilities of the server in already. Thank you very much for your time and any assistance, as always i am happy to promote any helpful answers .
... View more
08-08-2012
08:54 AM
|
0
|
0
|
238
|
POST
|
It works just fine, I had some other stuff going on and had my closing parenthesis in the wrong spot. Thanks
... View more
11-20-2011
04:43 PM
|
0
|
0
|
112
|
POST
|
Hello, if this has been discussed, please point me to where... I have multiple features in one feature class that are stacked on top of each other. Currently I only have one editing template. When I want to edit attributes, I can only edit the attributes of the top most feature. Is there a way to gain access to the other features attributes? I'm using the FV but believe this is the case regardless so I posted here. Thanks
... View more
10-28-2011
06:20 AM
|
0
|
0
|
422
|
POST
|
With help from Thang at ESRI, I was able to solve this problem. The first thing I had to do was to add a line of code to my web page: <script type="text/javascript">
dojo.require("esri.map");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.BorderContainer");
var map;
function Init() {
esri.config.defaults.io.alwaysUseProxy = true;
esri.config.defaults.io.proxyUrl = "http://WebServerName/proxy.ashx";
dojo.style(dojo.byId("map"), { width: dojo.contentBox("map").w + "px", height: (esri.documentBox.h - dojo.contentBox("navTable").h - 40) + "px" });
map = new esri.Map("map");
var CountyDataLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://Server.Name/ArcGIS/rest/services/Counties/MapServer");
map.addLayer(CountyDataLayer);
var RestrictedLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://Server.Name/ArcGIS/rest/services/cadaster/ServiceName/MapServer");
map.addLayer(RestrictedLayer);
var resizeTimer;
dojo.connect(map, 'onLoad', function(theMap) {
dojo.connect(dijit.byId('map'), 'resize', function() {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function() {
map.resize();
map.reposition();
}, 500);
});
});
}
dojo.addOnLoad(Init);
</script> ... and I used the following code in my proxy.config file: <?xml version="1.0" encoding="utf-8" ?>
<!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.
mustMatch: true to only proxy to sites listed, false to proxy to any site -->
<ProxyConfig mustMatch="true">
<serverItems>
<serverItem url="http://Server.Name"
matchAll="true" tokenUrl="http://Server.Name/ArcGIS/tokens"
username="MyUserName" password="MyPassword"
timeout="5" />
</serverItems>
</ProxyConfig>
... View more
09-06-2011
07:13 AM
|
0
|
0
|
397
|
POST
|
Hello, are the results from the project function of the geometry service guaranteed to return in the same order that was sent to the service? Thanks
... View more
08-08-2011
05:45 PM
|
0
|
0
|
440
|
POST
|
Anyone have sent a serious answer on the issue? I have the same problem and I can't understand how to solve it. Please don't propose work around or redirect to documentation (without samples) Maurizio
... View more
12-26-2012
04:46 AM
|
0
|
0
|
169
|
Title | Kudos | Posted |
---|---|---|
1 | 01-26-2015 10:47 AM | |
2 | 03-11-2015 10:49 PM | |
1 | 01-09-2015 06:57 AM | |
1 | 06-29-2012 09:28 AM | |
1 | 09-22-2014 01:19 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|