|
POST
|
Either the itemId ('e6854954c9a744e09a0cfbe777d20492') or the layerId (0) is incorrect.
... View more
09-09-2024
11:07 AM
|
0
|
2
|
2352
|
|
POST
|
If you put in "return fs" between line 8 and 9 and hit the Run button in the upper left corner, do you get back a valid dataset?
... View more
09-09-2024
10:59 AM
|
0
|
4
|
2355
|
|
POST
|
What is the error that you're getting? Also, have you checked whether the layerId is correct?
... View more
09-09-2024
10:43 AM
|
0
|
6
|
2360
|
|
POST
|
I believe you have to get it from the $datastore, like you got the parent table.
... View more
09-09-2024
10:38 AM
|
0
|
1
|
1813
|
|
POST
|
Yes, you can do this by using the Filter function. This code returne all the records in the table that have same attribute in the common field var asset = $feature.theCommonField;
var fs = FeatureSetByPortalItem(
Portal('yourPortal'),
'itemId',
0,
['*'],
false
);
var related = Filter(fs, "theCommonField = @asset");
... View more
09-09-2024
09:17 AM
|
0
|
8
|
2384
|
|
POST
|
You're supplying a Feature to the OrderBy function, which needs a FeatureSet. Are you trying to order the FeatureSet that the feature is a part of or the parent layer?
... View more
09-09-2024
09:10 AM
|
0
|
3
|
1841
|
|
POST
|
Something you always have to remember when creating a Data Expression is that it has to return a FeatureSet. You'll have to take the extra steps to do that like this, replacing your last line with this var Dict = {
'fields': [
{'name': 'Category', 'type': 'esriFieldTypeString'},
{'name': 'Count', 'type': 'esriFieldTypeInteger'}],
'geometryType': '',
'features': []};
for (var i in results){
Dict.features[i] = {
'attributes': {
'Category':results[i].Category,
'Count': results[i].Count
}
}
}
return FeatureSet(Dict)
... View more
09-05-2024
11:49 AM
|
1
|
1
|
1293
|
|
POST
|
The video posts are pretty useful, but what would make them more useful is to post the code that you're using in the video and to link to the pages in the documentation that talk about this, like this and this. Note that you have an extra period in the file name, which is actually Pro.settingsConfig
... View more
09-05-2024
08:37 AM
|
0
|
0
|
935
|
|
POST
|
Thanks Jeffrey I really wish Esri would step up their efforts on getting proper documentation for Experience Builder. So many things are missing from the API Reference and it's tough digging through the code base to figure out how to use things.
... View more
09-05-2024
07:19 AM
|
0
|
1
|
1199
|
|
POST
|
Is there any working code available to show how to use the SidePopper in the settings.tsx? While the code in the documentation works on the doc page, it doesn't create a SidePopper in my application. The only places I see it used in the code base are in js files. <>
<div
data-layoutid="right-sidebar-right-layout"
style={{
border: '1px solid',
height: 'calc(100% - 70px)',
minHeight: '350px',
padding: '16px',
position: 'absolute',
right: 0,
top: 0,
width: '260px'
}}
>
<h3>
Widget setting panel
</h3>
<div
ref={{
current: '[Circular]'
}}
style={{
border: '1px solid'
}}
>
<h4>
Side popper trigger area
</h4>
<p>
Clicking this area won't close the side popper.
</p>
<p>
Clicking other area will close the side popper.
</p>
<Button onClick={() => {}}>
Toggle side popper
</Button>
</div>
</div>
<SidePopper
position="right"
toggle={() => {}}
/>
</>
... View more
09-04-2024
01:02 PM
|
0
|
3
|
1245
|
|
POST
|
This is usually caused by the not setting time zone setting in your data. If you don't specify the time zone of the data, it defaults to UTC. When this is converted to your local time in the dashboard, it sees this as the day before in the Western Hemisphere. Can you specify the time zone?
... View more
09-04-2024
08:55 AM
|
2
|
2
|
1709
|
|
POST
|
I'm not seeing that when I open the item in a web map and in ArcGIS Pro
... View more
09-04-2024
06:56 AM
|
0
|
0
|
968
|
|
POST
|
You can use the GroupBy function with and SQL Case statement to do this var fs = FeatureSetByPortalItem(
Portal("your portal"),
"your item",
0,
["Team_id", "Teamn_name"],
false
);
var sql =
`CASE
WHEN Team_id < 1000 THEN 'Cat 0'
WHEN Team_id < 2000 THEN 'Cat 1'
WHEN Team_id < 3000 THEN 'Cat 2'
WHEN Team_id < 4000 THEN 'Cat 3'
WHEN Team_id < 5000 THEN 'Cat 4'
WHEN Team_id < 6000 THEN 'Cat 5'
WHEN Team_id < 7000 THEN 'Cat 6'
WHEN Team_id < 8000 THEN 'Cat 7'
WHEN Team_id < 9000 THEN 'Cat 8'
WHEN Team_id < 10000 THEN 'Cat 9'
END`;
var TeamGroup = GroupBy(
fs,
["Team_ID", "Teamn_name"],
[
{ name: "TeamCategory", expression: sql, statistic: "MAX" }
]
);
return TeamGroup;
... View more
09-04-2024
06:43 AM
|
1
|
1
|
2725
|
|
POST
|
The larger the dataset, the faster Filter will be. For example, working with the one of the sample datasets in the Playground that had 50K records, looping through all the records took 12-14 seconds. The Filter took 0.1 seconds. You don't need braces when using single lines after the if or for, but you always need them for multiple lines.
... View more
08-30-2024
01:21 PM
|
0
|
0
|
2136
|
|
POST
|
Also, don't use quotes when using @ in the sql expression. That automatically takes care of whether it has quotes or not. Using "Street_ID = '@SID'" would fail
... View more
08-30-2024
12:27 PM
|
1
|
0
|
2199
|
| 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 |
Thursday
|