I have published a Feature Service where one Polygon layer is related to several other Polygon/ Line layers (1-M relationships).
I want to configure a popup window so that when I click on the central Polygon that has relationships to all other layers, all the necessary information is displayed in one popup window. I use the “Add related records” command to configure the popup window on the Web Map. This works for a layer with 136 records, but does not work for a layer with more than 600 records.
Is there a limit on the number of records on the Web Map side, beyond which such a more complex popup window display will no longer work? Or is it configurable on the Feature Service side? At the moment the pupup window provide me notification that no related data was found,but all relationships are there on the database level.
On the service level I set the Maximum Number of Records Returned by Server: 100 000. I don’t have that many records on the database (all layers together).
Any suggestions?
Hmm, that's interesting — I’ve been able to show related records in popups for a layer with over 30,000 records. I just made sure the layer and its related tables were properly configured in each map. Are you saying that there are over 100 related records tied to that one polygon specifically?
OK, maybe the question then is not about the amount of data rather than filtering the same layer. I have one polygon layer in the Feature Service and one related table in 1:M relationship. On the web map I add the same polygon layer several times (6 or 7) and filter data by status (starting, in progress, accepted, partly accepted etc.). Then I try to add show related records. It shows related records in some cases but not in all cases.
Why do you need to add it 7 times? You could create an app and use a filter widget? Do the popups work as expected if you remove the filter and just view using 1 layer?
Filter is a good solution. In my case the end user preferes the predefined layer solution where she/he can turn different views in or out in layer list - thats whay I need to add the same layer several times and do the filtering there.
Could they be viewing the popup for a different filter than they think and that's why it doesn't show related records. You need to go through all 7 popups to find the one you're looking for?