POST
|
Hi, thank you for the tip and confirmation the dashboard module cannot manipulate an existing item. I am also using similar methods to manipulate the JSON directly, which work fine for most scenarios. In this case I was hoping I could use the dashboard module to convert the older style JSON to the newer dashboard format, as we need to update specific design properties that are not present in the older format. We actually got an answer directly from the ESRI dev team that JSON conversion is not possible, as the conversion logic is baked into the dashboard editor. Every time a dashboard is saved, it is now converted to the new JSON syntax. That means we will need to open all dashboards and manually hit save. Thank you!
... View more
06-29-2022
06:20 AM
|
0
|
1
|
1468
|
POST
|
I am trying to modify an existing dashboard using arcgis.apps.dashboard Python module, but I am unable to create the Dashboard object from an existing item. I was searching for examples, but all documents I have seen only have directions how to create new dashboards. I am attempting to save all older dashboards to the new version 47+ using the Py API. I was hoping I can create the dashboard object from the existing older version of the dashboard and then use the .save() function. How can I modify an existing dashboard? The following code will fail, as it appears the Dashboard object does not allow passing in the item object from gis.content.get() dashboard = Dashboard(item) TypeError: __init__() takes 1 positional argument but 2 were given from arcgis.apps.dashboard import Dashboard
item = gis.content.get("123456789abcdefgetc")
dashboard = Dashboard(item)
print (dashboard.title)
... View more
06-21-2022
12:03 PM
|
1
|
3
|
1563
|
POST
|
I understand this is an older thread, but for those folks who would prefer to simply list unused domains without running arcpy, you can use the following SQL query that I have put together: WITH SUBDomainsAndFields
as
(
SELECT distinct
UPPER(PARSENAME(ClassDefs.Name,1)) AS "ClassName",
fieldDef.value('FieldName[1]', 'nvarchar(max)') AS "FieldName",
fieldDef.value('(../../SubtypeName)[1]', 'nvarchar(max)') AS "SubtypeName",
fieldDef.value('DomainName[1]', 'nvarchar(max)') AS "DomainName"
FROM
GDB_ITEMS AS ClassDefs
CROSS APPLY
Definition.nodes('/*/Subtypes/Subtype/FieldInfos/SubtypeFieldInfo') AS FieldDefs(fieldDef)
union all
SELECT
UPPER(PARSENAME(ClassDefs.Name,1)) AS "ClassName",
fieldDef.value('Name[1]', 'nvarchar(max)') AS "FieldName",
NULL AS "SubtypeName",
fieldDef.value('DomainName[1]', 'nvarchar(max)') AS "DomainName"
FROM
GDB_ITEMS AS ClassDefs
CROSS APPLY
Definition.nodes('/*/GPFieldInfoExs/GPFieldInfoEx') AS FieldDefs(fieldDef)
)
SELECT ITEMS.[Name]
FROM [dbo].[GDB_ITEMS] as ITEMS
INNER JOIN GDB_ITEMTYPES as ITEMTYPES
on ITEMS.Type = ITEMTYPES.UUID
WHERE (ITEMTYPES.Name = 'Coded Value Domain' OR ITEMTYPES.Name = 'Range Domain')
AND ITEMS.[Name] NOT IN (SELECT DomainName FROM SUBDomainsAndFields WHERE DomainName is not null and DomainName <>'')
... View more
12-19-2019
01:29 PM
|
3
|
0
|
795
|
POST
|
Hi, thanks for providing me with the query. This query is helpful to find out when the version was last touched, however this would still not provide the date when the last reconcile/post operation was run. Is there some special flag indicating which state/lineage had reconcile/post run on it specifically? Thanks for your help!
... View more
07-31-2018
08:11 AM
|
0
|
0
|
671
|
POST
|
Hi, I would like to create a view that would show the dates for the last reconcile and post operation for each version in GDB. I understand each state has a closing date and each version can have last touched data. However I am having a difficult time figuring out at which point either the states or lineages would be considered "reconciled/posted". I was trying to use a combination of SDE_states, SDE_versions, SDE_lineages_modified and SDE_state_lineages. Would anyone have SQL code or ideas how to accomplish this? The idea here is to create a report that would list which versions need to be reconciled and posted within a certain time period, to hold our users accountable. Thank you! Jan
... View more
06-20-2018
12:32 PM
|
1
|
3
|
984
|
POST
|
We are having the same issue, no definition expression is being return from the endpoint in either format (HTML/JSON). What has changed? In 10.1 this worked great and as with the previous poster, we are also dynamically reading and appending def query to our layers. Thanks for any suggestions.
... View more
10-02-2013
04:13 AM
|
0
|
0
|
592
|
Title | Kudos | Posted |
---|---|---|
1 | 06-21-2022 12:03 PM | |
3 | 12-19-2019 01:29 PM | |
1 | 06-20-2018 12:32 PM |
Online Status |
Offline
|
Date Last Visited |
09-20-2023
12:52 PM
|