Josh, thank you for help. I added your your edits to the expression:
var portal = Portal("https://www.arcgis.com/");
var polyfs = FeatureSetByPortalItem(portal,"2c70f00e262a4488b266595720312617",0,["*"],true);
var tablefs = FeatureSetByPortalItem(portal,"227503e1ba6848baa7227b6311c04802",0,["*"],false);
var joinedDict = {
fields: [
{ name: "StreetID", type: "esriFieldTypeInteger" },
{ name: "Name", type: "esriFieldTypeString" },
{ name: "Depth", type: "esriFieldTypeDouble" },
],
geometryType: "esriGeometryPoint",
'features':[]};
var i = 0;
for (var t in tablefs) {
var tableID = t["StreetID"]
for (var p in Filter(polyfs, "StreetID = "+tableID)){
joinedDict.features[i] = {
attributes: {
StreetID: tableID,
Name: p["Address"],
Depth: t["Depth"],
},
geometry: Geometry(p)
}
}
i++
}
return FeatureSet(Text(joinedDict));
The widget is working but does not display data when map extent changes.
Thank you,
Roman