Starting with a 'flat' feature layer I have created a feature layer with a related table
I'm using the Global ID from the feature layer as the foreignkey in the table. This works, rows in the layer have between 0 and 3 rows in the related table as expected.
Then I created a survey using 'connect' and 'feature service' as input which created a survey with a repeat section.
Existing data seems to be alright, however I cannot add another record/repeat when there is existing data (I tried allowAdds=true in bind::esri:parameters although this should be default, either way doesn't work)
Another disturbing thing is when I create a new survey and fill in the repeat, this gets saved (I can see it in online) but the repeating section does not have the globalID in the 'foreignkey field so the connection is lost.
What am I doing wrong here? How do I get the globalID of the parent in the repeat/related record?
thanks in advance for your time.
What did you call the foreign key field? 123 is expecting parentglobalid.
I usually have my own relationship class as well that has my own created key vs globalid. I then pass that into each repeat. This then works even on exports and and imports.
Hope that helps.