I'm trying to make a new object (really actually a new row in my query results) using an existing object (read: row) as a template, and this is proving notoriously difficult. Does anyone have any tips for how to achieve this? Is it even possible?
Thanks in advance!
New object based on existing object
Re: New object based on existing object
You could use the duplicate function:
https://www.awareim.com/dokuwiki/doku.p ... /duplicate
If you don't want to save the row automatically, you could instead ignore the DUPLICATE function and make a process that can be executed on each row (operations with records) like:
ENTER NEW BO WITH
BO.Name=Bo.Name, Bo.Location=Bo.Location, BO.Description=Bo.Description USING Main
That will use the current row data as input and will populate each field for you inside the form, and you can edit it as you like before saving it.
https://www.awareim.com/dokuwiki/doku.p ... /duplicate
If you don't want to save the row automatically, you could instead ignore the DUPLICATE function and make a process that can be executed on each row (operations with records) like:
ENTER NEW BO WITH
BO.Name=Bo.Name, Bo.Location=Bo.Location, BO.Description=Bo.Description USING Main
That will use the current row data as input and will populate each field for you inside the form, and you can edit it as you like before saving it.
Re: New object based on existing object
This sounds like just what i need! i will try it out, thank you!joben wrote: ↑Fri Mar 31, 2023 9:14 am You could use the duplicate function:
https://www.awareim.com/dokuwiki/doku.p ... /duplicate
If you don't want to save the row automatically, you could instead ignore the DUPLICATE function and make a process that can be executed on each row (operations with records) like:
ENTER NEW BO WITH
BO.Name=Bo.Name, Bo.Location=Bo.Location, BO.Description=Bo.Description USING Main
That will use the current row data as input and will populate each field for you inside the form, and you can edit it as you like before saving it.
Re: New object based on existing object
Update: I made a process like suggested above and it works like a charm!
Re: New object based on existing object
Thanks for reporting back. I'm glad it worked!