- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2014 12:54 AM
Hello everyone,
Is it a way for duplicate a record easily ?
I means without copying each field ?
Actually I use this method
current.start_date = 'NULL'; current.end_date = 'NULL'; current.calendar_duration = 'NULL'; current.opened_at = current.opened_at; current.opened_by = current.opened_by; current.sys_created_on = current.sys_created_on; current.sys_created_by = current.sys_created_by; current.insert();
But my record have a lot of field, and It can be very long...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2014 01:07 AM
Hi Romain,
if you simply put current.insert(), it will insert a duplicate of the current record in your table. So incase you need to set certain values for this new record like:-
current.description="Duplicate record";
current.short_description="Duplicate";
you can set those values and then use current.insert().
Thanks & Regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2025 04:26 AM
Cool, Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2020 07:05 AM
Is there anyway without out inserting data to system, can we show the duplicate records in open form.
Kindly help.