|
POST
|
I didn't mention it, but I had a NULL value in the field I was calling in the script on. I put some values in that field then suddenly the symbols displayed! Oddly, I used the same expression in the label window and it worked regardless of NULL values...
... View more
07-31-2024
08:44 AM
|
0
|
0
|
726
|
|
POST
|
Formatting tags in AGOL labels are still not doable as of today's Map Viewer. I shared a layer from Pro where the expression worked just fine, not so in AGOL. Great suggestion, however.
... View more
07-31-2024
07:55 AM
|
1
|
0
|
1765
|
|
POST
|
I created a new post regarding the issue. https://community.esri.com/t5/arcgis-pro-questions/symbols-dissapearing-after-applying-arcade-script/m-p/1512353#M86184
... View more
07-30-2024
07:30 AM
|
0
|
0
|
1189
|
|
POST
|
I'm observing strange behavior in Pro v. 3.2.0. I have a simple point layer with less than 20 fields. I'm symbolizing using Unique Values. Everything is normal until I apply a nifty Arcade script that symbolizes based on time and date from a text field in my table. Nowhere do I have any scale set, but when I apply the expression only two of the 15 features appears at all scales. The others only draw when zoomed in farther. There is nothing apparent that differs the two features from the others. It's the same behavior in a Layout.
... View more
07-30-2024
07:30 AM
|
1
|
1
|
785
|
|
POST
|
I see what I did wrong. You have a space after the comma in the string here. In my table I didn't have spaces. I removed it in the script and it worked! Thanks a lot. var times = Split(fTime, ',') But I'm still getting weird behavior with what appears to be scale. Most features aren't visible until I zoom in. And I do not have the layer set with zoom in/out values. I'll have to investigate.
... View more
07-29-2024
01:38 PM
|
0
|
1
|
1208
|
|
POST
|
Thanks for the code. Unless I'm doing something wrong, I'm only seeing two Closed symbols created (highlighted in table below). And what's odd is that when when you zoom in Closed symbols for all features appear. There are no Open Now symbols created. On what's your line 10 I used this variable: var fTime = $feature.LocationHoursByDay I created a text field called LocationHoursByDay.
... View more
07-29-2024
12:26 PM
|
0
|
1
|
1234
|
|
POST
|
Here's the bigger picture. The locations rarely have simple hours. It changes on certain days and on weekends. My logic along the way was to put the starting and end times for each day into the Time field. Edit: I'm more or less experimenting on a working dataset. The LocationHours field is being used in the pop-up currently.
... View more
07-26-2024
01:18 PM
|
0
|
3
|
1282
|
|
POST
|
Ah, yes. Thank you. Earlier I changed the values to 24hr times. The earliest is 8:00 and the latest is 21:00. There's also one oddball open 24hr location, which I'll have to work in somehow.
... View more
07-26-2024
12:36 PM
|
0
|
0
|
2086
|
|
POST
|
Thanks for that. I replaced the dummy variables and it verified OK. However, there was only the Closed symbol class showing. It's not returning Open Now. So, it's hard telling where it's going wrong. var DaysOpen = "Su,M,Tu,W,Th,F,Sa";
var fTime = "8,8:30,9,9:30,10,10:30,11,11:30,12,12:30,1,1:30,2:30,3,3:30,4,4:30,5,5:30,6,6:30,7,7:30,8,8:30,9"; Unfortunately, there are more that a few Time field values that are after 6pm.
... View more
07-26-2024
11:54 AM
|
0
|
2
|
2094
|
|
POST
|
The values would be opening and closing times. For example: 8, 4:30 9,5 1,3
... View more
07-26-2024
08:46 AM
|
0
|
4
|
2125
|
|
POST
|
@KenBuja Thanks for pointing that out. It's a text field. Same goes for the DaysOpen field.
... View more
07-26-2024
08:36 AM
|
0
|
6
|
2129
|
|
POST
|
This is a nice snippet I got from an ESRI dev that returns what day a location has open in the Pro Symbology Expression Builder. It uses the DaysOpen field in my layer. My field values are like so: Su,M,Tu,W,Th,F,Sa. Here is the expression: var days_abbr = ["Su", "M", "Tu", "W", "Th", "F", "Sa"];
var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var weekday = Weekday(Today());
If(Find(days_abbr[weekday],$feature.DaysOpen,0)!=-1) {
return "Open (" + days[weekday] + ")";
}
else {
return "Closed";
} My question here is how to expand on that to include time using the Find() function. I created similar variables to get the time. Here is one attempt which returns an error (see pseudo text below) on the If() line. var days_abbr = ["Su", "M", "Tu", "W", "Th", "F", "Sa"];
var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var weekday = Weekday(Today());
var hours = ["8","8.5","9","9.5"]; //I also tried ["8","8:30","9","9:30"] which resulted in error
var timeofday = Time(Now()); //this displays the time the way I anticipated it
If(Find(days_abbr[weekday],$feature.DaysOpen,0)!=-1 && Find(hours[timeofday],$feature.Time,0)!=-1) {
return "Open Now";
}
else {
return "Closed";
}
// Error: Invalid expression. Integer index expected.
... View more
07-26-2024
07:51 AM
|
0
|
17
|
3440
|
|
POST
|
Hi @Brian_McLeer , I don't recall, sorry. You say you installed it in the Program Files (x86) directory? In the command prompt when you do step #9, are you sure you're running the npm ci command in that directory? My install is here: C:\arcgis-experience-builder-1.14, for what it's worth.
... View more
06-27-2024
06:52 AM
|
0
|
0
|
524
|
|
POST
|
I found a way that works. I set the position to "fill" and then adjusted the size manually until I was happy. Not sure if this is the best way, but it worked.
... View more
06-12-2024
07:46 AM
|
0
|
0
|
796
|
|
POST
|
The Experience Builder style elements, unless I'm just not completely use to it, are pretty clunky. The builder shows me one thing and the published page shows another. For example, when using a couple images in the header I place them completely to one side, and when published only one stays that way. Both my browser and the builder are zoomed to 100%. In the builder: Published:
... View more
06-12-2024
07:22 AM
|
0
|
1
|
808
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-13-2025 08:22 AM | |
| 1 | 11-12-2025 08:37 AM | |
| 1 | 10-22-2025 02:14 PM | |
| 1 | 01-17-2019 08:21 AM | |
| 1 | 07-06-2023 07:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|