Skip to main content
Question

copyMasterDetail but not all fields in sub records

  • September 3, 2023
  • 0 replies
  • 63 views

Hi Quickbase community,

I have a parent table and child table, where I want to duplicate the child records.  I would like to duplicate all of the child record fields, but change the value in one of the text fields to "new" to clearly identify the duplicates. 

This is my formula URL:

"javascript:void(copyMasterDetailButtonHandler(

'&relfids=7

&destrid=" & [Record ID#] &" 

&sourcerid=" & [Record ID#] & "   ', 

'xxxxxxxx'

))"

The xxxxxxxx is the master table ID and the relfids=7 refers to the field for the report link for the child table.    Is there a parameter that I can add which would not copy every field in the child record?

Many thanks.

Chris



------------------------------
Chris Sipes
------------------------------
This topic has been closed for replies.

AdamKrzyzanek
Forum|alt.badge.img+10
  • Registered
  • September 5, 2023

Each field contains option "Auto-Fill".

To enable copy of value this option needs to be checked.



------------------------------
Adam Krzyzanek
------------------------------

MarkShnierYou
Forum|alt.badge.img+24

Unlike the More ... Copy this record button, the copymasterdetail wizard and URL API equivalent is documented to copy all fields, regardless of the field setting us set to copy.

Hence you will need to use a Pipeline to trigger once the children are created to reset some child fields.  The challenge will be how to identify the children to update as in your case you are adding children to an existing parent..



------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------