POST
|
Dear Robert, Thank you very much.Finally the if condition is running.
... View more
04-11-2017
10:47 AM
|
0
|
1
|
1314
|
POST
|
Dear Robert, I have run your code and find the same if condition problem.i have just removed the if line and code runs fine.So the problem is in the if statement.Please guide me me with this if statement: //if(array.indexOf(fields, "FeederID") > -1){
options.push(response.id);
alert(options);
// }
... View more
04-11-2017
09:59 AM
|
0
|
3
|
1314
|
POST
|
Dear Robert, Thank you for your time.I have copied your code into my application ,on button search click it is showing only datagrid columns and nothing in console log.
... View more
04-11-2017
09:13 AM
|
0
|
5
|
1314
|
POST
|
I am running a query but some map services doesn't contain field name "FeederID".So my query task is not running.
I have tried to get field names by using getFieldList() and store it in an array and then use if conditions using
jQuery. i have also tried to copy my code inside if(fieldtest.name=="FeederID") but not worked.
what i am looking is if query is true on query3.where = "FeederID='HITAM POW F2'".
jQuery code:
if ($.inArray('example', myArray) != -1){ // found it} My code: on(dom.byId("search1"), "click", function () { var typesData = []; var allPromises = []; var j=0; var y=1; for(j=15;j<19;j++){ var url="http://localhost:6080/arcgis/rest/services/RAEC/MapServer/"+j; var queryTask3 = new QueryTask(url); var query3 = new Query(); query3.returnGeometry = false; getFieldList(); var options = []; function getFieldList() { esri.request({ url: "http://localhost:6080/arcgis/rest/services/RAEC/MapServer/"+j, content: { f:"json" }, handleAs: "json", callbackParamName: "callback", load: function(response, io) { var fields = response.fields; dojo.forEach(fields, function(fieldtest) { if(fieldtest.name=="FeederID") { options.push(fieldtest.name); } }); } }); } query3.where = "FeederID='HITAM POW F2'" ; var promise = queryTask3.executeForCount(query3,function (count) { //alert(count); var typeCount={ field: y, field1: count }; typesData.push(typeCount); y++; }); allPromises.push(promise); options=[]; } all(allPromises).then(function(){ var grid= new Grid({ columns: { field: 'Serial', field1: 'Count' } }, 'grid'); grid.renderArray(typesData); }); });
... View more
04-11-2017
01:09 AM
|
0
|
7
|
2182
|
POST
|
@ thejus kambi Thank you very much.It worked, I was missing dojo/promise/all. And thanks for correcting the code to AMD.
... View more
04-10-2017
06:25 AM
|
0
|
1
|
569
|
POST
|
I am running a query to get count of features on two layers and show it in a dgrid . Dgrid is only hsowing the headings and nothing else .I have run the code using alert() and get the counts of both layers. I think the problem is in array.Please guide. on(dom.byId("search1"), "click", function () { var typesData = []; for(var j=15;j<17;j++){ var queryTask3 = new esri.tasks.QueryTask("http://localhost:6080/arcgis/rest/services/RAEC/MapServer/"+j); var query3 = new esri.tasks.Query(); query.outFields = ["OBJECTID"]; query3.returnGeometry = false; query3.where = "FeederID='HITAM POW F2'"; queryTask3.executeForCount(query3,function (count) { //alert(count); var b={ field: j, field1: count }; typesData.push(b); }); } var grid= new Grid({ columns: { field: 'Layers', field1: 'Count' } }, 'grid'); grid.renderArray(typesData); });
... View more
04-10-2017
02:58 AM
|
0
|
3
|
1305
|
POST
|
I am using the following code to read data from related table.The function always shows "Attributed Relationship exist".
Although i have checked the relationship name its shows.please guide.
while (feature != null)
{
IRelationship_Example(feature);
count++;
feature = featureCursor.NextFeature();
}
//IRelationship Example
public void IRelationship_Example(IFeature feature)
{
//assumes that only one RelationshipClass exists for the Origin feature class
IEnumRelationshipClass enumRelClass = feature.Class.get_RelationshipClasses(esriRelRole.esriRelRoleAny);
IRelationshipClass relClass = enumRelClass.Next();
//if a feature with no Relationships established has been selected, exit
if (relClass == null)
{
return;
}
ESRI.ArcGIS.esriSystem.ISet relSet = relClass.GetObjectsRelatedToObject((IObject)feature);
relSet.Reset();
//If an Attributed Relationship does not exist, exit
if (relClass.IsAttributed != true)
{
return;
}
IFeature destinationFeature = (IFeature)relSet.Next();
while (destinationFeature != null)
{
IRelationship relationship = relClass.GetRelationship((IObject)feature, (IObject)destinationFeature);
IRow row = (IRow)relationship;
object attributeValue;
if (row.get_Value(0) == null)
{
attributeValue = "0";
}
else
{
attributeValue = row.get_Value(0);
}
Console.WriteLine("Destination OID: {0} Origin OID: {1} Attribute value: {2}", relationship.DestinationObject.get_Value(0), relationship.OriginObject.get_Value(0), attributeValue);
destinationFeature = (IFeature)relSet.Next();
}
}
... View more
04-02-2017
09:48 PM
|
0
|
0
|
2136
|
POST
|
I am using the following code to read data from related table.The function always shows "Attributed Relationship exist".
Although i have checked the relationship name its shows.please guide.
while (feature != null)
{
IRelationship_Example(feature);
count++;
feature = featureCursor.NextFeature();
}
//IRelationship Example
public void IRelationship_Example(IFeature feature)
{
//assumes that only one RelationshipClass exists for the Origin feature class
IEnumRelationshipClass enumRelClass = feature.Class.get_RelationshipClasses(esriRelRole.esriRelRoleAny);
IRelationshipClass relClass = enumRelClass.Next();
//if a feature with no Relationships established has been selected, exit
if (relClass == null)
{
return;
}
ESRI.ArcGIS.esriSystem.ISet relSet = relClass.GetObjectsRelatedToObject((IObject)feature);
relSet.Reset();
//If an Attributed Relationship does not exist, exit
if (relClass.IsAttributed != true)
{
return;
}
IFeature destinationFeature = (IFeature)relSet.Next();
while (destinationFeature != null)
{
IRelationship relationship = relClass.GetRelationship((IObject)feature, (IObject)destinationFeature);
IRow row = (IRow)relationship;
object attributeValue;
if (row.get_Value(0) == null)
{
attributeValue = "0";
}
else
{
attributeValue = row.get_Value(0);
}
Console.WriteLine("Destination OID: {0} Origin OID: {1} Attribute value: {2}", relationship.DestinationObject.get_Value(0), relationship.OriginObject.get_Value(0), attributeValue);
destinationFeature = (IFeature)relSet.Next();
}
}
... View more
04-02-2017
09:42 PM
|
0
|
0
|
1172
|
POST
|
Trying to get Feature Workspace property by using the following code. The code works fine when i am adding data through add data. But when i am trying to login through Arcfm it is not showing. ESRI.ArcGIS.Geodatabase.IDataset dataset = (ESRI.ArcGIS.Geodatabase.IDataset)(layer); MessageBox.Show(dataset.Workspace.PathName.ToString()); Actually, I want to connect through a related table of a feature layer. There are so many versions in the database so i want to use the layer which is added in ArcMap. Please suggest me any solution. Also, I want to use this workspace to get coded value domain and subtype description.
... View more
04-01-2017
11:20 PM
|
0
|
0
|
1050
|
POST
|
Actually i want to use shell standard symbols hosted on https://esri-styles.maps.arcgis.com/home/item.html?id=8a89e7ffe4154efa94c65090c4dab485 in Arcmap
... View more
03-26-2017
11:46 PM
|
0
|
1
|
3216
|
POST
|
I want to open .stylx file in Arcmap. Any tool in ArcPro to convert files to .style format? or any way to load .stylx symbols in arcmap?
... View more
03-26-2017
11:40 PM
|
3
|
6
|
5877
|
POST
|
I have made an addin using visual studio 2013 and armap10.3 DotnetSDK. It is running fine on 10.3. i want to run this on 10.2.1.I have change the following settings:. <Targets> <Target name="Desktop" version="10.2" /> </Targets> It is installed but when i click on it Arcmap crashes without any error. i have tried on two different systems also. I have also tried by creating a blank form on button click to check but it didn't work and crashes. Plz guide
... View more
02-28-2017
09:24 AM
|
0
|
1
|
1034
|
POST
|
We have two different styles and want to make a comparison difference.We are in a process to update our styles. I have opened the style by converting into access(.mdb) extension and trying to make a comparison.we need symbol(picture) with name & description in excel.Any suggestion?
... View more
01-14-2017
10:02 PM
|
0
|
0
|
1217
|
POST
|
I have build an application using arcgis web app builder which is using web map hosted on arcgis portal 10.4.1 and features layer from arcgis server.My web application contains editing/updating and viewing.I have added my arcgis web map service to portal and share it with specific people in that group.Same i have added feature service with different group of people and then dded to my web map.To my understanding that Map services should not be visible to other groups?i have tried but this doesn't work.both layers are shown.:(
... View more
12-18-2016
11:55 PM
|
0
|
1
|
484
|
POST
|
I am using portal for Arcgis 10.4.1 and web app builder developer edition to build application.My application is ready but now i have to create two groups. one group have a view capability only and other can have edit capabilities in the same application. please guide.
... View more
12-18-2016
03:12 AM
|
0
|
4
|
1400
|
Title | Kudos | Posted |
---|---|---|
1 | 07-11-2020 02:38 AM | |
1 | 12-11-2016 01:16 AM | |
3 | 08-29-2018 01:30 AM | |
1 | 12-18-2017 04:49 AM | |
3 | 03-26-2017 11:40 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|