Skip to main content
sarathkumr268295
December 12, 2024
Question

How to save one to many records

  • December 12, 2024
  • 7 replies
  • 0 views

We have 3 records in our application say record A, record B and record C. Record A is having one to many relation with record B where record B is having one to many relation with record C. Record A is having generic details, record B is having section details which can be multiple and record C is having one editable grid having multiple entries which is present in the above section. We are facing issue while displaying and saving the value into the rule input since we are not able to use [fv!index] for record variables. We are using only one rule input of record type A. How to make sure to show the values properly and save them properly?? 


This is just a mock UI i created for explaining the issue. Add member will add one more row in developer details grid. Add Team will repeat the whole section again.

7 replies

stefanhelzle0001
December 12, 2024

I hope this quick example helps

sarathkumr268295
December 12, 2024

Hi Stefan,

I am assuming this example is between 2 records having one to many relationship. Can you please let me know how to extend the same logic for 3 records where 1st record is having one to many relationship with 2nd record and 2nd record is having one to many relationship with 3rd record?

stefanhelzle0001
December 12, 2024

It's the same logic. Just treat the relationship like a field and store your list of records to it.