|
POST
|
I have a .NET application that uses an ITable to input into the Append Class from the DataManagementTools Namespace. I would like to send a subset of the ITable selected rows as input to the Append Class, but am not sure how to create this. I tried using the ITable.Select Method, but this returns an ISelectionSet. I would like what amounts to a view of the ITable by applying a QueryFilter. Any ideas on how to do this? Thanks, Mele
... View more
08-28-2013
03:37 PM
|
0
|
1
|
985
|
|
POST
|
Thanks Ben, I did find the FEATURE_LAYER.fields object and its Aliases. What I would like to do is use that to substitute the field name results of getSelectedFeatures, with the Alias programmatically. Please let me know if anyone has a code sample. Thanks, Mele
... View more
07-19-2013
08:56 AM
|
0
|
0
|
1186
|
|
POST
|
I am using the selectFeatures method on a Feature Layer to select features. Upon completing the selection, I am calling the .getSelectedFeatures method which returns the features and their attributes selectecd from a FeatureLayer. I would like to get the Alias and value, rather than the field name and value to display in a form. How can I get the Field Alias and Field Value after executing the getSelectedFeatures method? Thanks, Mele
... View more
07-19-2013
08:27 AM
|
0
|
3
|
1713
|
|
POST
|
Thanks for the link to the existing thread. I ended up using this code from the linked forum post in the init function and it looks promising for fixing our issue: esri.setRequestPreCallback(function (ioArgs) {
try {
if (ioArgs.url.indexOf("FeatureServer") > -1 &&
ioArgs.content.returnGeometry == true) {
ioArgs.preventCache = true;
}
return ioArgs;
} catch (e) {
console.log(e.toString());
return ioArgs;
}
});
... View more
07-19-2013
08:07 AM
|
0
|
0
|
928
|
|
POST
|
We have a JavaScript web application running on IIS that allows users to delete and add features using an ArcGIS 10.0 Feature Server and we recently encountered a new issue. When a Feature is deleted from the map, it is removed from the SDE database and from the current view. However, when zooming out, the feature can be seen at other map extents if it existed when the application was started. Also, if a feature is added, it is shown in the current view, but cannot be seen at other views. The feature remains selectable as well. To investigate the issue, we used Fiddler and IE Developer tools to see the requests. In the IE Developer Tools, we can see that the Requested Query on the Feature Layer is getting a cached copy of the Query and not going back to the Server because the Result shows a 304 code. To test this out, I changed my IE browser to ???Always refresh from server??? and this resolved the issue, but I would like the Tiled services to utilize cached data and this is an all or nothing setting. \We are using the ON_DEMAND mode on the Feature Layers used for editing We had not seen this until a recent republish of the website. I don???t think it is practical to force our users to change their browser settings. Is there a setting in IIS that can be used to change this behavior or something in the application that is making this happen? Thanks, Mele
... View more
07-12-2013
12:16 PM
|
0
|
2
|
1628
|
|
POST
|
I would like to get the map click point, buffer it, and then use the resulting buffer polygon to Identify features with the IdentifyTask. The IdentifyTask does not execute using the code below, but if I use the evt.mapPoint, it does execute. Has anyone used a polygon as input into the IdentifyTask and can you tell me what I am doing wrong in this code? Thanks, Mele function executeIdentifyTask(evt) {
var bufferGeometry;
params = new esri.tasks.BufferParameters();
params.bufferSpatialReference = new esri.SpatialReference({ wkid: 2223 });
params.geometries = [evt.mapPoint];
params.distances = [35];
params.outSpatialReference = map.spatialReference;
gsvc = new esri.tasks.GeometryService("http://Server/Utilities/Geometry/GeometryServer");
gsvc.buffer(params);
gsvc.on("buffer-complete", function (result) {
bufferGeometry = result.geometries[0]
identifyParams.geometry = bufferGeometry;
//identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
identifyTask.execute(identifyParams);
});
... View more
06-17-2013
03:33 PM
|
0
|
0
|
679
|
|
POST
|
Thanks Ken for the suggestion. I took a look at it appears that this level of control of Operation Allowed is availabe in 10.1. I did not see it in our 10.0 installation, but did see it in our 10.1 installation. This holds some promise, but like you said, I hope that the update of attributes is not disabled by un-checking 'Update'. I did notice that there is a "Allow Geometry Updates" Property but this would allow users to only update attributes. I will have to experiment with settings in the service, but it doesn't sound like we can prohibit the users from editing the geometry. Maybe there is something in the API.
... View more
06-13-2013
03:53 PM
|
0
|
0
|
553
|
|
POST
|
Is it possible to allow users to only ADD features with the Editor Widget? We don't want the users to be able to MOVE, DELETE, or EDIT VERTICES. I was looking at the the CreateOptions parameters, but didn't see how we could limit the functionality of the Editor Widget to only allow ADDs. Let me know if there is a way to do this. Thanks, Mele
... View more
06-13-2013
02:19 PM
|
0
|
2
|
863
|
|
POST
|
Kelly, Thanks for responding. I believe I may have found a fix for my issue. I had used css to set the height and width of the attribute inspector as shown: .esriAttributeInspector { height: 250px; width: 250px; } But if I change the height to 500px .esriAttributeInspector { height: 500px; width: 250px; } It appears that I can now click through the selected records. I will continue to test, but this is enouraging. Mele
... View more
05-31-2013
08:01 AM
|
0
|
0
|
776
|
|
POST
|
I am using the Attribute inspector in a DIV where users can edit attributes of selected features. If I select more than one feature, the attribute inspector shows (1 of 2) and has buttons to scroll through the selected features. The problem I am having is that only the "Last" button allows the user to click on it. The "Last" button take the user to the last record, but he other button do not move through the selected features. Any ideas as to what is preventing the buttons from being usable?
... View more
05-30-2013
02:13 PM
|
0
|
2
|
1414
|
|
POST
|
Charmalee, Thanks for the sample. This looks like just what I needed. Mele
... View more
05-14-2013
06:50 AM
|
0
|
0
|
1826
|
|
POST
|
I have a datagrid (dojox.grid.DataGrid) configured such that I can click on a row and show a symbol on the map for the "clicked" feature in the Grid. What I would like is to flash a symbol where the feature is. My thinking is to draw a graphic, pause, and then remove it to simulate a flash. Anyone have some code using the methodology above, or with a different method? Thanks, Mele
... View more
05-07-2013
03:43 PM
|
0
|
1
|
3363
|
|
POST
|
Kelly and Sowjanya, I am having trouble with getting the getSelectedFeatures method to show the current set of selected Features. Can you provide an example of what worked for you? I was able to get some success by using the "onselectioncomplete" event, but it fires often and the count did not seem correct. Thanks Mele function initSelectToolbar() {
var selectQuery = new esri.tasks.Query();
dojo.connect(map, "onClick", function (evt) {
var layerInfos = hydrMSL.layerInfos;
var visible = hydrMSL.visibleLayers;
for (var i = 0; i < layerInfos.length; i++)
{
layer = layerInfos;
if (visible.indexOf(layer.id) > -1)
{
var FL = find_in_array(FLayers, layer.id);
FL.setSelectionSymbol(selectionSymbol);
selectMode;
if(evt.ctrlKey) {
selectMode = esri.layers.FeatureLayer.SELECTION_SUBTRACT;
}
else
{
selectMode = esri.layers.FeatureLayer.SELECTION_ADD;
};
var centerPoint = new esri.geometry.Point
(evt.mapPoint.x, evt.mapPoint.y, evt.mapPoint.spatialReference);
var mapWidth = map.extent.getWidth();
//Divide width in map units by width in pixels
var pixelWidth = mapWidth / map.width;
//Calculate a 10 pixel envelope width (5 pixel tolerance on each side)
var tolerance = 10 * pixelWidth;
//Build tolerance envelope and set it as the query geometry
var queryExtent = new esri.geometry.Extent
(1, 1, tolerance, tolerance, evt.mapPoint.spatialReference);
selectQuery.geometry = queryExtent.centerAt(centerPoint);
//selectQuery.geometry = evt.mapPoint;
FL.selectFeatures(selectQuery, selectMode, function (features) {
if (features.length > 0) {
} else {
}
});
// dojo.connect(FL, "onSelectionComplete", selectMode, function(){
// for (var x = 0; x < FLayers.length; x++) {
// var selected = FLayers .getSelectedFeatures();
// var selected = FL.getSelectedFeatures();
// alert(selected.length);
// for (i =0; i < selected.length; i++)
// {
// var row = selected;
// }
//};
// });
};
}
});
function find_in_array(arr, value) {
var FLayer;
for (var i = 0, len = FLayers.length; i<len; i++) {
if (arr.layerId == value) return FLayers;
};
}
};
... View more
05-03-2013
03:02 PM
|
0
|
0
|
1209
|
|
POST
|
I am adding both the feature layer and the map service to a map and setting the mode on the FeatureLayer to esri.layers.FeatureLayer.MODE_SELECTION. The application will have the ability to change the visibile layers for the Map Service. Based on the visible layers in the Map Service, I would like to either allow or disallow a query on the feature layer within the Map Service. How can I determine if the FeatureLayer is visible based on the visibleLayers for the Map Service. Thanks, Mele
... View more
04-26-2013
02:38 PM
|
0
|
0
|
560
|
|
POST
|
I was able to work around this bug by putting the following as the last line of code in my application: Process.GetCurrentProcess().Kill()
... View more
04-25-2013
03:21 PM
|
0
|
0
|
1320
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-27-2026 09:23 AM | |
| 1 | 02-26-2026 06:47 AM | |
| 3 | 10-20-2025 05:21 AM | |
| 1 | 03-13-2015 04:39 PM | |
| 1 | 09-18-2025 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|