POST
|
To return the minimum date, you'll have to use FeatureSetByPortalItem to get the layer.
... View more
an hour ago
|
0
|
0
|
17
|
POST
|
Can you give a better idea of what you'd like your final table to look like? Are you trying to get a summary of how many records are in the domains for each pair of fields? I'm guessing if your table looks like this id Field 1 Field2 1 domain 1 domain 1 2 domain 2 domain 1 3 domain 3 domain 3 4 domain 1 domain 1 5 domain 1 domain 2 you want your output table looking like this. Field 2, domain 1 Field 2, domain 2 Field 2, domain 3 Field 1, domain 1 2 0 0 Field 1, domain 2 1 1 0 Field 1, domain 3 0 0 1 Is this correct?
... View more
2 hours ago
|
0
|
0
|
2
|
POST
|
You shouldn't need the Text function in there either, unless you want use its formatting tools.
... View more
6 hours ago
|
1
|
1
|
18
|
POST
|
I ran a test for a double numeric field that has various values, including nulls. I didn't use the Number function when assigning the original attribute to the new feature (line 29) var jsonDictionary = {
fields: [
{ alias: "ID", name: "ID", type: "esriFieldTypeString" },
{ alias: "DoubleField", name: "DoubleField", type: "esriFieldTypeDouble" }
],
geometryType: "",
features: [
{ attributes: { ID: 1, DoubleField: 6168.25 } },
{ attributes: { ID: null, DoubleField: 0 } },
{ attributes: { ID: 1, DoubleField: null } },
{ attributes: { ID: 2 } }
]
};
var fs = FeatureSet(jsonDictionary);
var out_dict = {
fields: [
{ name: "projectid", type: "esriFieldTypeString" },
{ name: "bestcost", type: "esriFieldTypeDouble" }
],
geometryType: "",
features: []
};
for (var f in fs) {
Push(
out_dict["features"],
{ attributes: { projectid: Text(f["ID"]), bestcost: f["DoubleField"] } }
);
}
return FeatureSet(out_dict); This is the output table, with nulls remains as null in the double field.
... View more
6 hours ago
|
1
|
3
|
26
|
POST
|
Is there a reason you're trying to convert those values to a number? The Number function returns a 0 for a null value.
... View more
7 hours ago
|
0
|
7
|
36
|
POST
|
For the records where verifdat is populated, do you just want to keep that date? Give this a try When(
$record.size != null && $record.material != null && $record.verifdate == null, $record.survey_date,
$record.verifdate
);
... View more
yesterday
|
1
|
0
|
15
|
POST
|
You need the return, but when the if statement only has one line, you don't need brackets. This would work perfectly fine if ($record.size != null && $record.material != null && $record.verifdate == null) return $record.survey_date;
... View more
yesterday
|
0
|
0
|
17
|
POST
|
There's difference between the two. Week returns a value where the first week is 0 while ISOWeek returns a value where the first week is 1. Take a look at the difference using your example date (remember that month is zero-based)
... View more
Tuesday
|
0
|
0
|
21
|
POST
|
You can use the Arcade script ISOWeek($feature.surveydate) This is how it would look in the Field Calculator (with my data)
... View more
Tuesday
|
2
|
2
|
77
|
BLOG
|
That link points to the Instant Apps sessions blog article. It should be https://www.esri.com/arcgis-blog/products/experience-builder/announcements/arcgis-experience-builder-at-the-2025-devtech-summit/
... View more
Tuesday
|
1
|
0
|
41
|
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
|
0
|
0
|
34
|
POST
|
Did you follow all the steps on the migration page from the documentation?
... View more
Tuesday
|
1
|
0
|
79
|
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
|
0
|
1
|
108
|
POST
|
You also have a space in the field name, which is probably its alias. Use the actual field name.
... View more
Friday
|
0
|
1
|
94
|
POST
|
You have to use "<>" instead of "!=" in SQL statements var filteredFeatures = Filter(relatedFeatures, "Data Type <> 'cable'")
... View more
Friday
|
0
|
3
|
97
|
Title | Kudos | Posted |
---|---|---|
1 | 6 hours ago | |
1 | 6 hours ago | |
1 | yesterday | |
1 | Tuesday | |
1 | Tuesday |
Online Status |
Online
|
Date Last Visited |
6m ago
|