|
POST
|
Esri support article that points to this thread: https://support.esri.com/en-us/knowledge-base/how-to-embed-a-survey-form-and-edit-existing-data-from--000021897
... View more
02-07-2025
07:28 AM
|
0
|
0
|
6020
|
|
BLOG
|
This method of adding the web map item ID to the Pro content pane, then configuring the desired symbology in Pro, then either publishing, or overwriting the web map, also works with custom dictionary mobile/web styles. In the web map item_data json (viewable in ArcGIS Assistant), new key-value pairs are added to the renderer key, which enables the symbology to be rendered within the web map.
... View more
01-13-2025
10:30 AM
|
1
|
0
|
1926
|
|
POST
|
I have a use-case in which I would like to use a data view in a data_filter url parameter. In the filter, I want to populate the count of a data view that is created from a layer. The url parameter would be placed inside of the web map popup, and lead the user directly to the filtered page for that data view text. I am able to successfully filter an operational layer in the application when I refer to the <webmap_id>-<layerid>, in this case: dataSource_1-18a09b4c123-layer-1 https://domain.portal.com/portal/apps/experiencebuilder/experience/?data_filter=dataSource_1-18a09b4c123-layer-1:Code=%27NYP%27&id=1373fa22361e4b31b4eaaa36bd2dabcd&page=app_page I am NOT able to filter the data view created from that layer: I obtained the data view's id from the app's item_data in the form of a json text (using arcgis assistant). In this case, the view's id is: dataSource_1-18a09b4c123-layer-1-dataView_1: https://domain.portal.com/portal/apps/experiencebuilder/experience/?data_filter=dataSource_1-18a09b4c123-layer-1_dataView_1:Code=%27NYP%27&id=1373fa22361e4b31b4eaaa36bd2dabcd&page=app_page The json shows this configuration for how the text is derived in the app: "text": "<p>Arrivals: <exp data-uniqueid=\"30b6aeb7_1db3_adce_2edf_80afb82fe54f\" data-dsid=\"dataSource_1-18a09b4c123-layer-1-dataView_1\" data-expression=\"%7B%22name%22%3A%22%20%22%2C%22parts%22%3A%5B%7B%22type%22%3A%22FUNCTION%22%2C%22exp%22%3A%22COUNT%22%2C%22dataSourceId%22%3A%22dataSource_1-18a09b4c123-layer-1-dataView_1%22%7D%2C%7B%22type%22%3A%22OPERATOR%22%2C%22exp%22%3A%22(%22%7D%2C%7B%22type%22%3A%22OPERATOR%22%2C%22exp%22%3A%22)%22%7D%5D%7D\"><span contenteditable=\"false\"> </span></exp> </p>", Out of that piece of json, I'd think the 'data-expression' string would be relevant to grab for the url parameter to control the dynamic text. Here is that string for better visibility: {
"name": " ",
"parts": [
{
"type": "FUNCTION",
"exp": "COUNT",
"dataSourceId": "dataSource_1-184ce793cfa-layer-9-dataView_1"
},
{
"type": "OPERATOR",
"exp": "("
},
{
"type": "OPERATOR",
"exp": ")"
}
]
} I am using ArcGIS Enterprise 11.2 "originExbVersion": "1.12.0" At this time, this is the only related post: https://community.esri.com/t5/experience-builder-custom-widgets/datasource-dataview-issues/m-p/1181358#M37 I would appreciate anyone's help: @TonghuiMing @Jianxia @Shen_Zhang @JeffreyThompson2
... View more
01-13-2025
09:57 AM
|
0
|
2
|
533
|
|
POST
|
for the second question, try setting the refresh interval in the dataView:
... View more
01-13-2025
09:32 AM
|
0
|
0
|
481
|
|
IDEA
|
There is a post by @rdbutger where he shows he used Arcade in the web map popup to bypass this automatic behavior. Here is my sample code: https://community.esri.com/t5/arcgis-online-questions/arcgis-online-popup-appending-rel-quot-noopener/m-p/1571741/highlight/true#M62960 This allows me to change the page in-place, instead of opening a new tab. var baseurl = 'https://www.something.com/route/'
var code = Lower($feature.ColumnName)
var train_stations_public_page = Concatenate([baseurl,code])
Console(train_stations_public_page)
var train_stations_public_page_link = '<strong><a style="color:#01507b;text-decoration: underline;cursor:pointer" target="_self" href="' + train_stations_public_page + '">Station Details</a></strong>'
Console(train_stations_public_page_link)
return {
type : 'text',
text : train_stations_public_page_link
}
... View more
12-30-2024
10:51 AM
|
0
|
0
|
730
|
|
POST
|
it works for me like this: var baseurl = 'https://www.something.com/route/'
var code = Lower($feature.ColumnName)
var train_stations_public_page = Concatenate([baseurl,code])
Console(train_stations_public_page)
var train_stations_public_page_link = '<strong><a style="color:#01507b;text-decoration: underline;cursor:pointer" target="_self" href="' + train_stations_public_page + '">Station Details</a></strong>'
Console(train_stations_public_page_link)
return {
type : 'text',
text : train_stations_public_page_link
} This way, I can change the page in-place, instead of opening a new tab. Thank you @rdbutger !
... View more
12-30-2024
10:45 AM
|
0
|
0
|
747
|
|
POST
|
I noticed this issue also. Seems the web map wants to prevent this referrer for security reasons. In my case, I wanted to try target="_self" to see if I can change the page view.
... View more
12-30-2024
10:09 AM
|
0
|
0
|
747
|
|
POST
|
It is also possible to use the embed widget to embed a dashboard url. In the dashboard, use the list element. On the Data tab, connect it to a dummy layer. In the List tab, write this code in the 'Advanced formatting' box: var time = Now()
return {
attributes: {
attribute1: time,
}
} In the line item template box, write this code after clicking the 'source' button: <p><span style="color:#ffffff">{expression/attribute1}</span></p>
... View more
12-27-2024
11:25 PM
|
0
|
0
|
1541
|
|
BLOG
|
https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/set-the-feature-drawing-order.htm in the pic above, it is sorting the drawing order alphabetically. we'd have to assign a rank/score to each status per record, so it can draw the layer accordingly. unfortunately, it is only supported within pro, not as web feature layers. when publishing, we get this warning: 20027: Layer uses advanced renderer settings Advanced settings are not supported This is misleading, because when I share this map as a web map from pro, the following json gets added to the operational layer within the web map: "layerDefinition": {
"orderBy": [
{
"field": "otp_status",
"order": "desc"
}
]
} So, although the layer draw order is not supported directly by the web feature layer, the draw order is able to be applied to the operational layer within a web map. this setting is controlled directly in the web map by the 'Feature Display Order' property: https://enterprise.arcgis.com/en/portal/11.2/use/set-feature-display-order.htm
... View more
12-19-2024
04:17 PM
|
4
|
1
|
430
|
|
POST
|
These two articles also helped me accomplish stopping and starting services programatically: https://developers.arcgis.com/python/latest/guide/managing-your-gis-servers/ https://developers.arcgis.com/rest/enterprise-administration/enterprise/service-status/
... View more
12-14-2024
12:05 AM
|
1
|
0
|
1488
|
|
POST
|
These two articles helped me accomplish stopping and starting services programatically: https://developers.arcgis.com/python/latest/guide/managing-your-gis-servers/ https://support.esri.com/en-us/knowledge-base/how-to-stop-gis-services-using-arcgis-api-for-python-0... https://developers.arcgis.com/rest/enterprise-administration/enterprise/service-status/
... View more
12-14-2024
12:04 AM
|
0
|
0
|
393
|
|
POST
|
These two articles helped me accomplish stopping and starting services programatically: https://developers.arcgis.com/python/latest/guide/managing-your-gis-servers/ https://support.esri.com/en-us/knowledge-base/how-to-stop-gis-services-using-arcgis-api-for-python-000019994
... View more
12-13-2024
10:24 PM
|
0
|
0
|
297
|
|
POST
|
Great question! Thank you for sharing your code. The following will output a sample sddraft xml document to the directory the script is in. You can then view the xml with an IDE. def prettify_xml(doc):
"""Pretty-print an XML document, removing unnecessary blank lines."""
return '\n'.join([line for line in doc.toprettyxml(indent=" ").splitlines() if line.strip()])
pretty_xml = prettify_xml(doc)
with open("sample_sddraft.xml", "w", encoding="utf-8") as file:
file.write(pretty_xml)
... View more
12-13-2024
07:44 PM
|
0
|
0
|
684
|
|
POST
|
Thanks @Clubdebambos , I saw your nice article here, which adds the aprx.save(): https://learn.finaldraftmapping.com/using-arcpy-to-allow-assignment-of-unique-numeric-ids-for-sharing-web-layers-in-arcgis-pro/
... View more
12-13-2024
06:28 AM
|
1
|
0
|
2172
|
|
POST
|
@JoshuaBixby , great find. @JonahLay I see this ArcGIS Pro idea is closed. Based on Joshua's finding's above, is there a chance the idea can be reopened? @TedCronin I see you have a need for this here: https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/td-p/852979 tagging my comment here for other reference with this saml login issue: https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1509666/highlight/true#M40082
... View more
12-11-2024
08:12 PM
|
0
|
0
|
607
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-03-2024 07:58 AM | |
| 1 | 01-13-2025 10:30 AM | |
| 1 | 04-18-2025 04:53 PM | |
| 1 | 02-21-2025 09:01 AM | |
| 1 | 12-14-2024 12:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|