POST
|
Thanks Josh for the prompt response. That's what I had to resort to. What I'm really trying to do is to build an HTML block of table,rows,columns tags that is embedded with a dataset returned by a FeatureSetBy... function in the arcade. Unfortunately though since the {expression/expr#} embedded in the HTML can only be single values I'm not able to accomplish this. I was able to do this in a custom web map without issue. So then there is no way to do what I'm trying to do using the Map Viewer popup configuration tool without upgrading to 11.0? Do you know if the arcade element option is available with ArcGIS Online?
... View more
02-17-2023
03:35 PM
|
0
|
2
|
1223
|
POST
|
I'm having trouble inserting HTML code in an arcade expression in the Map Viewer popup configuration and have the HTML code be processed not as a text string. I'm using template literals rather than single quotes around the HTML code. However, the Map Viewer interpreter does not process the value like the javascript interpreter does and displays the HTML as text in the popup window. I read this post Solved: Arcade expression correct but doesn't show up in p... - Esri Community where it is mentioned that there are two types of arcade you can configure in the popup window, arcade expression and arcade element. Here's the image showing the two in the post and that you can add an arcade element using the "+ Add content" button, then "</> Arcade" However, I'm not seeing that "</> Arcade" option when I go to add it. I'm using Enterprise 10.9.1. Does anyone know what version is that arcade element option available? Also, why wouldn't the expression work? I figure that the Map Viewer wouldn't interpret it as vannila javascript would and that is understandable, but is there another way to use arcade expression and still get injected HTML code to display correctly? Appreciate any help you can give.
... View more
02-17-2023
02:40 PM
|
1
|
5
|
1244
|
POST
|
Hello all! I have a use case that calls for making an API call to a document management system (OTIS) to retrieve URLs of documents in OTIS and display in the popup of a clicked feature of a web map. The GISID of the feature is passed in the API call that searches OTIS for the docs corresponding to that GISID. The API call requires authentication so I cannot use Arcade. The web map is an existing web map (let's call it Wastewater) that was created using the enterprise portal Map Viewer. I was able to load Wastewater in a staging page using webmap.load() and include code in the staging page to dynamically handle a click on a feature to return the corresponding document URLs from OTIS. I included a webmap.save() in the code. The result is, after launching the page, clicking some features and verifying that the correct doc URLs corresponding to the clicked features returned by OTIS and displayed in the popups, what is saved in the Wastewater web map popup configuration is the URLs of the last feature I clicked on. I.e. when I look at the web map's popup configuration in the Portal Map Viewer, I see the URLs of the last feature click on. My question is would the portal Map Viewer popup configuration be able to store the javascript needed to handle the above API call? Is there a way to insert javascript code into the portal Map Viewer and have it saved in there? I tried pasting my javascript in the web map's sublayer popup configuration's Custom Attribute Display window as html source code (with the appropriate <script> tags of course), but the codes won't save. The codes would disappear from the Custom Attribute Display window when I open it again. Any help or tips on how to implement my use case on an existing web map would be greatly appreciated. I am trying to avoid recreating, using code, the entire web map which has many sublayers requiring tedious popups and widgets configurations through code.
... View more
08-15-2022
09:14 AM
|
0
|
0
|
276
|
POST
|
I have the following Attribute Assistant rules Is it possible to have a solution where I can combine the two rules to accomplish this scenario: "When the TRANSMISSIONCODE field >0 populate the PRESSUREZONE field with "635", else populate the PRESSUREZONE field with the ZONEID value of the intersecting WaterPressureZone polygon" Is it possible to call the INTERSECTING_FEATURE value method from within the expression in the second rule such as something like this: IIF([TRANSMISSIONCODE]>0, "635", INTERSECTING_FEATURE|WaterPressureZone|ZONEID) I did try the above but it doesn't work. Just wondering if anyone has any ideas (no matter how wild, involving AA, or not, but maybe just might work) they could share.... Thanks in advance.
... View more
03-26-2020
10:48 AM
|
0
|
0
|
410
|
Title | Kudos | Posted |
---|---|---|
1 | 02-17-2023 02:40 PM |
Online Status |
Offline
|
Date Last Visited |
04-14-2023
06:35 PM
|