Discussions

 View Only
  • 1.  Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 19:45
    Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table? For instance i create an invoice based off a cost summary(parent table) now when i create the invoice it is created in a invoice table (child table)  related by record id from parent table (Cost Summary), i then want to add a copy button on the invoice that will create an almost identical copy and still relate to the Parent Table. Does this make sense and is it possible? i used this formula just to see if it will create a copy and not copy fields just the record id but it does not seem to be pulling over the ID it brings up a new invoice but does not show record id. URLRoot()&"db/(DB I know this)=GenCopyRecord&rid="&[Record ID#] . 


  • 2.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 19:50
    Does your actual formula include this

    ?a=GenCopyRecord&rid=49663


  • 3.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 20:03
    everything but the number you have there I thought that was just the [Record ID#] which would copy the field which would include the record number.


  • 4.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 20:19
    Sorry, I did not mean to include the [Record ID#] 

    I think that the problem is where the related parent field is set to read only on the form which is annoying that it does not populate.

    There are other option if you are unwilling to make that field be read only.  One way might one to have a form rule to say,
    when related parent is not blank, then make read only.  Then the field would not be read only until it gets populated.



     


  • 5.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 20:27
    That is definitely an option and i have no issues in doing that.


  • 6.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 20:37
    how would i make it not read only at the risk of sounding like a true noob? 


  • 7.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 20:42
    my users have modify permissions to related record in the relationship?


  • 8.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 21:28
    I made the assumption that on the record you are adding, that you had set the field for Related Parent to be read only on the form properties on the form.

    That is my current assumption as to why the button is not populating that field.


  • 9.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 22:02
    I figured out a way to create a copy and have it use the related record i use the create copy function under the more menu in the top right corner and in the table relationship under related record i choose to copy this value to copy of invoice. it copies a little more then needed however can easily be corrected by end user. 


  • 10.  RE: Is there a way to create a copy button that will copy a child record and several fields and still relate to the Parent table?

    Posted 01-12-2018 22:04
    OK, thx for letting me know.