I used a data expression to create a new FeatureSet by joining two existing FeatureSets. I've copied the code I used below. Since I also imported the geometry, I'm able to use the zoom/pan actions when the list item is clicked. However, the 'Show Popup' action is not available. I'm guessing this is due to using a data expression, but is there a way to create a new Popup to associate with the new FeatureSet?
var portal = Portal('https://***.maps.arcgis.com')
var project_field_points = FeatureSetByPortalItem(portal, '3251059bad18424893cb90726e840c00')
var projects = FeatureSetByPortalItem(portal, '46e225a5e2884852969839bc958cc727')
var features = []
var feat
for(var field_point in project_field_points) {
var contract_id = field_point.Contract_ID
var row = First(Filter(projects, 'ID = @contract_id'))
feat = {
attributes: {
Contract_ID: contract_id,
Project_Name: row.Name,
Status: row.Status,
Pay_Item: DomainName(field_point, 'Pay_Item'),
Units: field_point.Units
},
geometry: Geometry(field_point)
}
Push(features, feat)
}
var joined_FS = {
fields: [
{ name: "Contract_ID", type: "esriFieldTypeString" },
{ name: "Project_Name", type: "esriFieldTypeString" },
{ name: "Status", type: "esriFieldTypeString" },
{ name: "Pay_Item", type: "esriFieldTypeString" },
{ name: "Units", type: "esriFieldTypeSingle" }
],
'geometryType': 'esriGeometryPoint',
'features': features
}
return(FeatureSet(joined_FS))