Hi everyone,
I was hoping someone could make a suggestion on how to approach a certain logic problem we're encountering when submitting a form containing lists.
Basically it's a one-to-many relationship.
Normally, I would create the parent record first and then pass the ID of that record to each child record so that when I load the parent later, I can load all of it's children by filtering based on the parent ID.
Using the K2 Mobile app, I only get 1 server call to create all the records. This means that I can't pass the parent ID to the child records.
The way I've dealt with the issue is to generate a random number between 1 and 2 billion and assign that to all records.
This works great to create the items but eventually there will be a clash and some child records will have multiple parents. Not good.
Is there a better way to address this issue?
Apologies if it doesn't make much sense.