I have two forms, parent_form and child_form. The parent_form has inline subform which is child_form.
My question is about importing CSV data which has many null values(so when imported, some rows are not imported correctly, but it's OK for me) to child_form_report. Import actions are done frequently.
The results of imports are that the child_form_report has data from CSV, but the parent_form's inline child_form does not have. I think if could, when imports are completed, inline child_form will have same data.
I tried writing workflows for that, like:
// omitted
row = parent_form.child_form();
row.name = input.name;
rows = Collection();
rows.insert(row);
for each r in parent_form[ID == input.parent_form_id]
{
r.child_form.insert(rows);
}
The above code is partially worked. But once the inline child_form's rows inserted, child_form_report had duplicate data about the import... I thought it was because of two-times-written, first time was when imported, the other was mirroring data automatically from inline child_form. They are very strange results for me.
I just want to know the method for importing data to inline subform only, and it'll be mirrored automatically, so child_form_report has only-one data. How do that?
Thanks,