Can we add multiple child records to a parent record at the click of a single button ?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
It's possible to add multiple child records to a parent record at the click of a single button. 

These child records will always have a fixed set of recurring values. For instance, the child table will have a field titled Activity, and every parent needs to have 5 pre-defined activities.
Photo of Gaurav Sharma

Gaurav Sharma

  • 5,882 Points 5k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Brendan

Brendan

  • 40 Points
Hi Guarav, from what you described it sounds like the Import details button functionality might meet your needs.  You can learn more about this here:
http://www.quickbase.com/user-assistance/#copy_master_detail.html#using_import

Is this what you are looking for?  Thanks!
Photo of Gaurav Sharma

Gaurav Sharma

  • 5,882 Points 5k badge 2x thumb
I do not want to import something.
I just want to add more than one child to parent as we do with API_AddRecord.
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 29,604 Points 20k badge 2x thumb
The efficient way to add multiple records is with one call to API_ImportFromCSV rather than multiple calls to API_AddRecord. So you do want to import something - that something being dynamically generated CSV data representing the default data for the child records you want to create (rather than importing a static file which you are probably familiar with).
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 29,604 Points 20k badge 2x thumb
See this Question and Answer which has alive demo:

What is the Hylo Technique?
https://quickbase-community.intuit.com/questions/1383163-what-is-the-hylo-technique
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 29,604 Points 20k badge 2x thumb
See this Question and Answer which has a live demo:

What is the Hylo Technique?
https://quickbase-community.intuit.com/questions/1383163-what-is-the-hylo-technique
Photo of Christine

Christine

  • 60 Points
Thy Hylo Technique sounds like what I'm looking for but I am a novice QB user and do not understand coding.  Is there a resource that can help walk me through developing the code I need in order to make my my app work the way I need it to?
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 29,604 Points 20k badge 2x thumb
The demo and the pastie provide all the relevant information and code to implement this but you will have to modify the code to suit your specific needs. If you need individualized help with an implementation feel free to contact me off-world using the information in my profile.