This topic is locked

Duplicate record with file fields

4/27/2023 8:12:15 AM
PHPRunner General questions
P
Prof_Moriarti author

Hello all
I have a button that copies the current record (modifying the key field) and adding a new record almost equal that the first one
Thiis works fine
But the record has a file field, so i copy the info and works..
My problem is that if i delete the file in the first record also is deleted on the copied record
As the file is deleted in the OS
Is there any way to duplicate the file and the file info in the copied record in order to prevent loosing the info using code¿?

fhumanes 5/1/2023

Hello,
I have done a trial project in Phprunner 10.7 version and when the registration is copied, the files that the record were assigned, being assigned some files with the same content, but with different names.
Possibly, you are not using one of the last versions of Phprunner.
Greetings,
fernando