In my ArcGIS online map, I have two layers (morminte and layer2) related in a one-to-many relationship. For an item from the morminte layer I can have 0, one or two corresponding values from layer2. In the picture below it is shown the pop-up window for an item from morminte. In the pop-up,only the Nr. Mormant field is from the morminte layer. This is the only field that returns the right value.
The rest of the fields are from the related layer. The fields NUME (surname) and PRENUME (name) should return text values, DATA_NASTERII and DATA_DECES -> date values and VARSTA->a number. Instead, if for the selected item I have one corresponding value from layer2, the pop-up returns "1", if I have 2 corresponding values, then I get "2" and if there is no value to be related, then I get "0".
Before uploading the map to ArcGIS Online, I made sure that both layers involved in the relationship class are configured properly in ArcMap. NUME and PRENUME are string fields, DATA_DECES and DATA_NASTERII are date fields and VARSTA is a short integer field.
In the Configure Attributes window for the morminte layer, I noticed that I can select only count in the Statistic Operator tab. I don't know if it has something to do with this.
I also created a layer that has the fields NUME, PRENUME etc. as it's own. In this case, the pop-up shows the right values. But in my map I want to use two related layers instead of one because is more advantageous for what I need to do.
أكثر...
The rest of the fields are from the related layer. The fields NUME (surname) and PRENUME (name) should return text values, DATA_NASTERII and DATA_DECES -> date values and VARSTA->a number. Instead, if for the selected item I have one corresponding value from layer2, the pop-up returns "1", if I have 2 corresponding values, then I get "2" and if there is no value to be related, then I get "0".

Before uploading the map to ArcGIS Online, I made sure that both layers involved in the relationship class are configured properly in ArcMap. NUME and PRENUME are string fields, DATA_DECES and DATA_NASTERII are date fields and VARSTA is a short integer field.
In the Configure Attributes window for the morminte layer, I noticed that I can select only count in the Statistic Operator tab. I don't know if it has something to do with this.

I also created a layer that has the fields NUME, PRENUME etc. as it's own. In this case, the pop-up shows the right values. But in my map I want to use two related layers instead of one because is more advantageous for what I need to do.
أكثر...