The Cloner in nuBuilder is a powerful tool that allows you to replicate forms (and optionally their related objects) from one nuBuilder database to another. It generates SQL statements that can be run in your destination database (or even within the same database) to create or update forms and objects. This is especially useful when moving forms between development and production environments, or when you want to reuse a form design without having to rebuild it from scratch.
Here's the process to replicate a nuBuilder form in another database.
Replicating a Form Using the Cloner
1. Open the Cloner in the Source nuBuilder
- Open the Database Dropdown menu in your source database.
- Select Cloner.
- Click Add and select Source Form.
- In the options:
- Untick “Generate new PKs” – This ensures that the replicated form and objects retain the same database IDs (primary keys) as the source form and objects.
- Tick “REPLACE INTO” – This will update any already existing forms or objects with the updated version from the source database.
- Click Run to generate the SQL output.
- Copy the generated SQL to your clipboard.
4. Execute the SQL in the Destination Database
- Open the Destination nuBuilder.
- Click the Database button to open phpMyAdmin.
- Paste the copied SQL into the query editor.
- Click Run to execute the SQL.
Workflow:
Result: The form is now replicated in the destination database.
Wiki documentation
Here's a more in-depth description of the Cloner, outlining various use cases in greater detail.: