1 (edited by thezimguy 2018-08-10 10:26:07)

Topic: [SOLVED] Copy Row As New Record

Hello Dmitry and MVD friends
Please can this feature be implemented?
http://thezimguy.vacau.com/copyASnew.jpg

I wish the next update will have the 'Copy As New Record' added to the Action for the button.

Please how do I implement this manually using a button.

When I click on the 'COPY AS NEW', it should copy the selected row as a new record which I can edit before saving.
Thank you.

@thezimguy

Re: [SOLVED] Copy Row As New Record

Hello.


I made an example for you. On the form for edit record you can click on button "Save record as new"

Post's attachments

Attachment icon Dublicate save as new record.zip 6.59 kb, 418 downloads since 2018-08-10 

Dmitry.

3 (edited by thezimguy 2018-08-21 05:00:34)

Re: [SOLVED] Copy Row As New Record

Thank you Dmitry
I am really grateful.
MVD, the best Visual DBase App

It is perfect and simple.
http://thezimguy.vacau.com/MVD/saveASnew.jpg

Dmitry used only two lines of code to do that. Excellent.

procedure frmEmployee_bSaveAsNew_OnClick (Sender: TObject; var Cancel: boolean);
begin
    frmEmployee.bSave.dbGeneralTableId:=-1;
    frmEmployee.bSave.Click;
end;

Download from the link provided by Dmitry above

Check other examples derek provided from link below
http://myvisualdatabase.com/forum/viewt … 146#p26146

@thezimguy

Re: [SOLVED] Copy Row As New Record

DriveSoft wrote:

Hello.


I made an example for you. On the form for edit record you can click on button "Save record as new"

This is great.
I wish it will be added to the 'button action' as 'Show As New Record' so that we will not code it.
Please Dmitry, can it be added in the next update.
Regards

@thezimguy

Re: [SOLVED] Copy Row As New Record

Unfortunately I can't add it. Because this is not a often used function.

Dmitry.

Re: [SOLVED] Copy Row As New Record

Yes. It will be very nice and simple for we the newbies
I wish Dmitry will add it