Select to view content in your preferred language

Trigger related records from Pop-up

218
2
02-24-2025 01:39 AM
Labels (1)
AnnaHradecká
Frequent Contributor

Now it is possible to show related records in pop-up. But when I open a Related record in pop-up (or Feature info widget) I still have in map selected a parent feature. So it doesn't match what I see in the map and pop-up. 

Is it possible to synchronize it, for example with some trigger?

 

In my example I have table and 1:n related feature layer. I have list with organization and in map I have their buildings. When I select organization in list, feature info show information about this organization and in map I select all buildings, which my organization has (by trigger from list). In Feature info I also have buildings by related records. So I click on one building and now in feature info is information about this one building, but in map I still have selected all buildings and it is confusing. 

AnnaHradeck_2-1740389794935.pngAnnaHradeck_3-1740389929176.png

 

 

0 Kudos
2 Replies
ShengdiZhang
Esri Regular Contributor

Hi @AnnaHradecká ,

I think you can use the selected features view in the Feature Info widget:

ShengdiZhang_0-1740462284753.png

Make sure that "View for empty selection" is checked for the Buildings layer.

ShengdiZhang_1-1740462557827.png

 

Please let me know if this solves your problem.

Regards,

Shengdi

 

0 Kudos
AnnaHradecká
Frequent Contributor

I'm not sure, if I understand it correctly, but I don't think it works. 

There is a problem with selection. If I click on the building (related record from pop-up), organization is still selected not building. So in the map I see all the time all buildings not the one, which I see in detail. 

My question is about adding option to have trigger for choosing related record in pop-up (feature info). 

 

In my app I finally use different solution with list of buildings (instead of related records in pop-up) filtered by related organization. Same filter is for map (because of framework setting). When i select building from list I open second view with feature info about building and map with all building of organization, but only the correct one is selected. 

It is hard to describe all the settings, but it works for me now. On the other side, the problem from beginning is still there. It can help to have easy and clear settings for app with less views and sections.

0 Kudos