POST
|
Yep. Tried everything but still no luck. Even tried remove the tooltip from json but it still does the same.
... View more
09-04-2017
05:28 PM
|
0
|
0
|
381
|
POST
|
Not sure if it is a bug or I did something. But no matter how I modify the tooltip setting, the tooltip does not change. The attached screenshot shows the tooltip. However, my setting is as the following, Any idea? Or anyone else experienced the same issue?
... View more
09-04-2017
04:59 PM
|
0
|
3
|
532
|
POST
|
{ "services": [{ "type": "Map Service", "serviceurl": "https://tiles.arcgis.com/tiles/okWBWNlpfMx5q1bT/arcgis/rest/services/PlanningTeamArea_agspro/MapServer", "size": 926219, "serviceItemId": "dc7ee927d0e242bc8de5200634532de1", "encodedServiceURL": "https://tiles.arcgis.com/tiles/okWBWNlpfMx5q1bT/arcgis/rest/services/PlanningTeamArea_agspro/MapServer" } ] } that's the response from the publish service url, and obviously there is no jobId in it.
... View more
08-30-2017
09:07 PM
|
0
|
4
|
1015
|
POST
|
And I tested the same script using version 1.0.1 and it worked. I am currently running 1.2.1.
... View more
08-30-2017
08:38 PM
|
0
|
0
|
1015
|
POST
|
Yep. The job id is supposed to be generated by arcgisonline but I don't see it anywhere.
... View more
08-30-2017
08:37 PM
|
0
|
0
|
1015
|
POST
|
As far as I know. It is a dictionary. And according to this sample, I don't see what's wrong with my script.
... View more
08-30-2017
07:41 PM
|
0
|
1
|
1015
|
POST
|
Hi, I've tried using the following script to upload a map tile package and publish it to a hosted tile layer but it failed. The map tile package was successfully uploaded and the hosted tile layer was successfully created. However, it didn't copy the min and max scale to the service so the publishing tile process was failed. That's the script I used. from arcgis.gis import GIS
gis = GIS("https://www.arcgis.com", "username", "password")
cm = gis.content
print(gis._con._token)
itemProperties = {}
data = r"TileMapPackage\PlanningTeamArea_agspro.tpk"
item = cm.add(itemProperties, data=data, folder="test_automation")
if item != None:
print(item)
tiledServiceItem = item.publish()
if tiledServiceItem != None:
print("published") that's the error message I got. Traceback (most recent call last): File "D:/Data/Requests/Requests 2017/26_0511_AGOL_Automation_Test/Codes/addingItems.py", line 11, in <module> tiledServiceItem = item.publish() File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4299, in publish serviceitem_id = self._check_publish_status(ret, folder) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4519, in _check_publish_status raise Exception("No job id") Exception: No job id Any idea?
... View more
08-30-2017
07:19 PM
|
2
|
10
|
2157
|
POST
|
Does esri have any plan to add the 3D measurement tool to ArcGIS Earth? Or to Web Scene viewer in ArcGIS Online or portal?
... View more
08-28-2017
06:52 PM
|
0
|
2
|
548
|
POST
|
Does ArcGIS Earth support 3D measurement (e.g. measuring building height in a loaded scene layer from ArcGIS Online)? I am using version 1.6 and found the current measurement tool only works in 2D. Or maybe there is something I missed. Thanks.
... View more
08-28-2017
06:24 PM
|
0
|
5
|
968
|
POST
|
Finally I found the reason. The application has a FeatureDataGrid binding to the FeatureLayer. I have to set both FeatureDataGrid.Map and FeatureDataGrid.GraphicsLayer to null before I can assign a null value to g.Attribute["UPDATEDATE"]. See code below,
theFeatureDataGrid.Map = null;
theFeatureDataGrid.GraphicsLayer = null;
ESRI.ArcGIS.Client.FeatureLayer fl = theMap.Layers["flyr_RoadClosureLocations"] as ESRI.ArcGIS.Client.FeatureLayer;
foreach (ESRI.ArcGIS.Client.Graphic g in fl.Graphics)
{
if (g.Attributes["UPID"].ToString() == "CAB_035")
{
g.Attributes["UPDATEDATE"] = null;
}
}
theFeatureDataGrid.Map = theMap;
theFeatureDataGrid.GraphicsLayer = fl;
And it works.
... View more
03-23-2011
10:22 PM
|
0
|
0
|
433
|
POST
|
You are right, by default DateField has a default length of 36. You can try the following feature service that has a nullable DateField. Setting the attribute value to null does not raise any exception. You can wire up to EndSaveEdits and SaveEditsFailed to see that this new value is actually saved.
FeatureLayer layer = new FeatureLayer() { Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/0", OutFields = new ESRI.ArcGIS.Client.Tasks.OutFields() { "*" } };
layer.Initialized += (s,e) =>
{
layer.Update();
};
layer.UpdateCompleted += (s,e) =>
{
var graphic = layer.Graphics.FirstOrDefault(g => (int)g.Attributes["objectid"] == 105635);
graphic.Attributes["collection_time"] = null;
};
layer.Initialize();
If you are still experiencing issues please explain your use case with details about the data and application workflow so we can reproduce it here. Thanks. I tried the easiest way to populate the field but still get a NullReferenceException error.
ESRI.ArcGIS.Client.FeatureLayer fl = theMap.Layers["flyr_RoadClosureLocations"] as ESRI.ArcGIS.Client.FeatureLayer;
foreach (ESRI.ArcGIS.Client.Graphic g in fl.Graphics)
{
if (g.Attributes["UPID"].ToString() == "CAB_035")
{
MessageBox.Show(g.Attributes["UPDATEDATE"].ToString());
g.Attributes["UPDATEDATE"] = null;
}
}
I uploaded three screenshots to show the settings of the feature class, the layer and the feature service. In the Silverlight App, I tried both 2.1 and 2.2 API but get the same error. Environment: ArcSDE 10 Sp1 ArcGIS Server 10 Sp1
... View more
03-23-2011
06:25 PM
|
0
|
0
|
433
|
POST
|
I guess DateTime is Non-Nullable DataType so setting it to null won't work. Try setting it to null as follows: g.Attributes["UPDATEDATE"] = new DateTime?(); It throws a NullReferenceException error. I think it is the same as g.Attributes["UPDATEDATE"] = null .
... View more
03-23-2011
04:01 PM
|
0
|
0
|
856
|
POST
|
I think that since you gave a length requirement, a validation exception will be thrown if this is not met. If you made g.Attributes["UPDATEDATE"] = null. If you remove this length requirement, I think you should be able to set it to a null value without validation exception. How can you remove the length of a Date field? I think by default you can only setup the field type and nullable for a Date field.
... View more
03-22-2011
06:29 PM
|
0
|
0
|
856
|
POST
|
Graphic.Attributes["DateField"] = null should work. Are you saying it doesn't? It not, what happens when you try that? No it does not work. It throws a NullReferenceException. foreach (ESRI.ArcGIS.Client.Graphic g in fl.Graphics)
{
if ((int)g.Attributes["OBJECTID"] == objid)
{
IDictionary<string, object> att = g.Attributes;
if (att["UPDATETIME"] != null)
{
att["UPDATETIME"] = "";
}
if (att["UPDATEDATE"] != null)
{
//UpdateDate is a Date field
att["UPDATEDATE"] = null;
}
if (att["DESCRIPTION"] != null)
{
att["DESCRIPTION"] = "";
}
}
} It's strange. For these records that have null value in the date field. I am able to get the null value from the Attributes property. Just not able to write a null value to it.
... View more
03-22-2011
06:21 PM
|
0
|
0
|
856
|
POST
|
UPDATEDATE (Type: esriFieldTypeDate, Alias: UPDATEDATE, Length: 36, Editable: True) And 'Allow Null values' on the field is set to true. This is actually the default Date field setting. I don't think I can create a Date field with a specific length. Does this mean you cannot update the date value to null in silverlight?
... View more
03-21-2011
09:01 PM
|
0
|
0
|
856
|
Title | Kudos | Posted |
---|---|---|
2 | 08-30-2017 07:19 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|