Bug
| Bug ID Number | BUG-000139012 |
|---|---|
| Submitted | April 14, 2021 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS Dashboards |
| Version found | 9.1 |
| Operating System | Windows OS |
| Operating System Version | 10.0 |
| Status | Will Not Be Addressed |
var portal = Portal("https://www.arcgis.com/");
var fl1 = FeatureSetByPortalItem(portal,"<layer id>",0,["*"],true)
var fl2 = FeatureSetByPortalItem(portal,"<layer id?",0,["*"],true)
var combinedDict = {
fields: [
{ name: "textField", type: "esriFieldTypeString"},
],
geometryType: "esriGeometryPoint",
features: [],
};
// Loop through each of the three FeatureSets and store attributes into a combined dictionary.
var i = 0;
for (feature in fl1) {
combinedDict.features[i] = {
'geometry':Geometry(feature),
attributes: {
textField: feature["textField"],
}
};
i++;
}
for (feature in fl2) {
combinedDict.features[i] = {
'geometry':Geometry(feature),
attributes: {
textField: feature["textField"]
}
};
i++;
}
// Return dictionary cast as a feature set
return FeatureSet(Text(combinedDict));
Bug ID: BUG-000139012
Software:
Get help from ArcGIS experts
Download the Esri Support App