I have configured a pop-up for a layer using arcade where I am calling a layer from our Portal, looping through each of its elements and when a certain statement is true adding a string concatenation for HTML to a defined variable and if false adding a different string concatenation for an HTML. This is to have the pop-up for the feature display a table showing the status of each feature and having the same pop-up for every feature, with the intention being only showing one of the pop-ups in the experience builder.
It seems when I add the Feature Info widget to my experience builder, the arcade configuration does not display. I've tested with the Text and it displays fine. However I need the arcade to be used so I can have a dynamic table created in HTML where the number of rows will update automatically when new features are added. Any workarounds if this is not supported? We are on 11.2
I've discovered if you have the feature in the actual map and don't call on the layer as a standalone, the arcade will display. This is something that should be fixed so you don't have to have the layer present in the map. The layer I am working with doesn't need to be in the map as its only purpose is to display the configured pop-up.
Hi @CameronLacelle ,
Thanks for your feedback. Looks like you find a workaround.
But for issue investigation, would you be able to share a copy of your app to us?
Thanks,
Wei
Unfortunately due to sensitive information in the application we are building, I cannot share it. However, all you need is to have a layer (hosted or otherwise), configure its pop-up in the Visualization tab of the layer, add an arcade script to return an HTML string. Then create an experience builder application, add the map to it and add two feature info widgets: one where it calls on the layer directly from the map and another calling on the layer independently from the map (directly from the source). This should recreate the issue where the widget where you call on the layer directly (not from the map) you will see a blank pop-up.
I've run into this as well.
I have a standalone table that I'm need users edit in Experience Builder (EB).
Frustration 1: For a standalone table in a Hosted Feature Layer (which has no spatial component), Esri does not expose the "Visualization" tab and does not allow a user to configure the table popup or form. 🤔 Therefore, I cannot set the arcade on the popup or create the form. I tried the ArcGIS Assistant on this hosted feature layer but the Data tab shows that there is no json for the Data. 😟
Solution 1: I added the table to a temporary map, configured the popup and form then saved the configurations to Layer. When I used that Layer in EB the Arcade popup was displayed properly. 😀
Frustration 2a: Now I have an extra item in ArcGIS Online to manage. When I share the layer to a group, I have to remember to share the source data as well. This becomes a 'gotcha' issue down the road. 😬
Frustration 2b: When I'm viewing the Layer item details page from Solution 1, Esri does not show the Visualization tab, so I cannot adjust those settings via the ArcGIS Online GUI. 😬 I can use the ArcGIS Assistant or the ArcGIS API for Python to adjust the visualization properties.
Solution 2: Create a new Hosted Feature Layer which contains a dummy point layer as well as my standalone table. Esri now allows me to set the visualization for the dummy points as well as the table. 😀
Frustration 3: When I add the table from Solution 2 to the EB, the arcade is not displayed. 😫
I suppose I just have to manage a 'Layer' or put the table in a map and not store the visualization configuration on the table itself if I want it to work in EB.
I was trying to reproduce the issue in Experience Builder where you describe that the Arcade is not displayed for the hosted table layer popup, but I cannot seem to be able to!
@fklotz Are you able to recreate this issue by creating a new and empty simple hosted table layer in ArcGIS Online, configuring the popup through the map as you described above - maybe add a few dummy records too -, and adding that layer to a new app to display its popup in the Feature Info?