Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Duplicate complete form with fields

Questions related to using nuBuilder Forte.
Post Reply
Olikun
Posts: 68
Joined: Tue Mar 09, 2021 6:45 pm

Duplicate complete form with fields

Unread post by Olikun »

Hello,

my current question.

How can I duplicate a complete form with fields?

If I click Duplicate now, will the form be duplicated without any fields?
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Duplicate complete form with fields

Unread post by kev1n »

Use the Cloner (Database tab)
Olikun
Posts: 68
Joined: Tue Mar 09, 2021 6:45 pm

Re: Duplicate complete form with fields

Unread post by Olikun »

I found it and tried it, but nothing happened

No new form will appear in the form list

I just want to clone the form, not the database


Image

Image
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Duplicate complete form with fields

Unread post by kev1n »

Code: Select all

I just want to clone the form, not the database
The cloner's purpose is to clone/duplicate one form, not the whole database.

All you need to do is

1) EIther untick "Dump SQL Statements" (SQL-Anweisungen ausgeben) to let nuBuilder run the SQL statements.
2) Or if "Dump SQL Statements" is ticked, the output can be verified (or modified if necessary) and then be run in e.g. phpMyAdmin.
icoso
Posts: 181
Joined: Sun Feb 07, 2021 11:09 pm
Been thanked: 1 time

Re: Duplicate complete form with fields

Unread post by icoso »

Kev1n I think he's talking about making a duplicate of the form itself along with all the fields (objects) that are on the original form? I've tried it myself and I get the form, and the code, but NONE of the objects are getting cloned. Not sure why? I assumed that they would. For example If I go into the properties of a from and I want to clone it so that I can do some testing on that form without having to change the code or fields on the original form, I click the Clone button and change the code and description then save it, I get a copy of the form, along with the custom code but none of the objects copied over. Shouldn't the objects copy over as well?
kev1n
nuBuilder Team
Posts: 4304
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Duplicate complete form with fields

Unread post by kev1n »

icoso wrote: I want to clone it so that I can do some testing on that form without having to change the code or fields on the original form, I click the Clone button and change the code and description then save it, I get a copy of the form, along with the custom code but none of the objects copied over. Shouldn't the objects copy over as well?
The "Clone" button won't clone the objects on a form. That's why I created the "Cloner" that offers this possibility (and more).

You should see these "INSERT INTO zzzzsys_object" statements:
You do not have the required permissions to view the files attached to this post.
Post Reply