Hi All.
I need to allow some of my users to export data from my app. The data they need to get out must include related objects. This would be OK if I didn't have multiple allowed objects that I need to export, but one of the related objects is a many to many relationship. I'd want to see something similar to the following:
Parent.Name, Parent.Surname, Parent.Child.Name, Parent.Child.Surname, Parent.Child.Name, Parent.Child.Surname, ...
When importing from a csv there is the option to map to a path. This doesn't exist for exporting.
Is my best option going to be making the csv string for each record manually and export only the attribute with the string in it? Would that even work? 😐
Something like:
PROC1
Parent.csvString=Parent.Name+', '+Parent.Surname
FIND Child WHERE (Child IN Parent.Children)
PROC2
PROC2
Parent.csvString=Parent.csvString+', '+Child.Name+', '+Child.Surname
Really not ideal.. Any better solutions would be great.