|
POST
|
For Step 7, use "https://localhost:3001/" For Step 8, navigate to the directory where you have unzipped the Experience Builder files from the downloaded zip file. On my machine, it's located at D:\ExperienceBuilder\ArcGISExperienceBuilder_115, so I navigated to the directory D:\ExperienceBuilder\ArcGISExperienceBuilder_115\server to run "npm ci" If you're using Visual Studio Code and opened the client folder as a project as explained here, you can also open a new terminal (Terminal|New Terminal). That will automatically put you in the client directory, , but you can easily change to the server directory with the command "cd ../server". You can run "npm ci" in that terminal You can use this terminal window to start the server in step 9. You can open another terminal window and run "npm ci" and start the service for the client directory. You can see both of these terminals in the screen shot above, which is how I have this set up for my widget development, instead of using two external command windows.
... View more
03-11-2025
06:45 AM
|
1
|
0
|
1885
|
|
POST
|
Did you follow all the steps on the migration page from the documentation?
... View more
03-11-2025
06:12 AM
|
1
|
0
|
2580
|
|
POST
|
This is one way I do it for a particular map. The layer has a table with fields for 15 different species, along with other fields to describe the feature's location. For each species, the field name is MAX_Species (MAX_Austra, MAX_Crater, MAX_Globic, etc) and the alias is Species (Australien, Craterifor, Globiceps, etc). Each field contains either a 0 or 1 to show if the species is present. I use this script in a Text element Expects($feature, 'MAX*')
var theSchema = Schema($feature);
var fields = theSchema['fields'];
var species = [];
for (var i in fields) {
if (Find('MAX', fields[i]['name']) > -1 && $feature[fields[i]['name']] == 1) {
Push(species,fields[i]['alias']);
}
}
return `• ${Concatenate(species,'\n• ')}`; which returns this popup
... View more
03-10-2025
01:08 PM
|
0
|
1
|
1352
|
|
POST
|
You also have a space in the field name, which is probably its alias. Use the actual field name.
... View more
03-07-2025
06:27 AM
|
0
|
1
|
1841
|
|
POST
|
You have to use "<>" instead of "!=" in SQL statements var filteredFeatures = Filter(relatedFeatures, "Data Type <> 'cable'")
... View more
03-07-2025
06:16 AM
|
0
|
3
|
1844
|
|
POST
|
Here's one way to combine the counts of multiple datasets into a single indicator var fs1 = FeatureSetByPortalItem(
Portal("yourPortal"),
"item1",
0
);
var fs2 = FeatureSetByPortalItem(
Portal("yourPortal"),
"item2",
0
);
var Dict = {
fields: [{ name: "Total", type: "esriFieldTypeInteger" }],
geometryType: "",
features: [{ attributes: { Total: Count(fs1) + Count(fs2) } }]
};
return FeatureSet(Dict);
... View more
03-07-2025
06:11 AM
|
0
|
0
|
757
|
|
POST
|
According to the ArcGIS Online Health dashboard, hosted feature services are running sluggishly today. Some are reporting that server3 is affected
... View more
03-05-2025
11:40 AM
|
1
|
0
|
1004
|
|
POST
|
That will show whatever you have set as the Title in the Popup configuration. Note that your popup doesn't have a title in the individual popup
... View more
03-04-2025
09:59 AM
|
0
|
2
|
1086
|
|
POST
|
Here's a way to do that using Arcade, returning the first field that isn't null. When(!IsEmpty($feature.field), $feature.field,
!IsEmpty($feature.field1), $feature.field1,
!IsEmpty($feature.field2), $feature.field2,
"No attributes");
... View more
02-27-2025
12:19 PM
|
4
|
1
|
1429
|
|
POST
|
Esri does plan to upgrade the Arcade editor in ArcGIS Pro, but it doesn't sound like it's going to be in the next release. See this idea
... View more
02-27-2025
08:54 AM
|
0
|
0
|
2606
|
|
POST
|
You can apply standard linting rules (which includes indenting) to your code with Shift+Alt+F or right-clicking and selecting Format Document.
... View more
02-27-2025
07:56 AM
|
3
|
3
|
2630
|
|
POST
|
Your else statement runs when there are no intersecting polygons, which is why getting the ParcelID from a null value throws an error. Where is the existing account value coming from?
... View more
02-25-2025
08:08 AM
|
0
|
1
|
1142
|
|
POST
|
Unfortunately, without access to your data, there's not much more I can do. I made sure each of the possible combinations of variables in my test code would give the expected response. For example, changing this line var GreenUnits = "Q30" returns "Grey"
... View more
02-24-2025
11:38 AM
|
0
|
1
|
1826
|
|
POST
|
I was testing with dummy data and didn't include the IIf statement, which threw things off. Here's the testing code with an update in line 13 in this code (line 6 of the previous code) var STANUM = 1102;
var ALL_UNITS = "E29, E64, E82, E244, E286"
var st1102 = IIf(STANUM == 1102, ALL_UNITS, null);
var RedUnits //= "E29"
var GreenUnits //= "Q30"
var BlueUnits //= "S32"
var st1102array = Split(st1102, ", ");
var RedUnitsArray = Split(RedUnits, ", ");
console(st1102array, RedUnitsArray)
for (var i in RedUnitsArray) {
if (!IsEmpty(st1102) && Includes(st1102array, RedUnitsArray[i])) return "White Yellow";
}
if (
RedUnits == null &&
GreenUnits == null &&
BlueUnits != null
)
return "Brown";
else if (RedUnits == null && GreenUnits != null)
return "Grey";
else if (RedUnits != null) return "White";
else return "Black"; This allowed me to test different scenarios, like changing STATNUM and the units to verify that each of the returns work.
... View more
02-21-2025
02:33 PM
|
0
|
3
|
1870
|
|
POST
|
One thing I see is that st1102array is ["E29"," E64"," E82"," E244"," E286"]. Note that there is a space before all of text elements except the first. This means that if RedUnits was "E64", it would return "White" instead of "White Yellow". You should use ", " instead of "," for the separator in the Split function. The other thing I see is if there are two items in RedUnits (STATNUM 33), it would return "White". You can split RedUnits into an array to check if any of them match. This should work properly var st1102 = IIf($feature["STANUM"] == 1102, $feature["ALL_UNITS"], null);
var st1102array = Split(st1102, ", ");
var RedUnitsArray = Split($feature.RedUnits, ", ");
for (var i in RedUnitsArray) {
if (Includes(st1102array, RedUnitsArray[i])) return "White Yellow";
}
if (
$feature.RedUnits == null &&
$feature.GreenUnits == null &&
$feature.BlueUnits != null
)
return "Brown";
else if ($feature.RedUnits == null && $feature.GreenUnits != null)
return "Grey";
else if ($feature.RedUnits != null) return "White";
else return "Black";
... View more
02-21-2025
01:33 PM
|
0
|
5
|
1882
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|