Just tried to clone one of my forms which has loads of objects and found that the form clones ok but the objects don't.
Is there a way to clone the form AND it's objects?
I don't fancy cloning loads of objects individually because we will need to do this a good few times as we develop.
Thanks as always
Martin
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Cloning many form objects
-
- Posts: 60
- Joined: Fri Oct 26, 2012 8:09 pm
Re: Cloning many form objects
I expect that I can select the objects using a query into a temp table and then amend the formID and regenerate a PrimKey.
And then import back to object table?
And then import back to object table?
Re: Cloning many form objects
Martin,
You are correct but you'll also need any objects on any Subforms on that Form.
Steven
You are correct but you'll also need any objects on any Subforms on that Form.
Steven
-
- Posts: 60
- Joined: Fri Oct 26, 2012 8:09 pm
Re: Cloning many form objects
thank you Steven
I've just written a small python script to do this - saved me a bit of time !
But I guess most of us won't want an exact clone - but better to delete objects off a form than add them on individually.
It might be handy to have an index page button which did an entire form clone (just a thought)
(or a page of advanced utilities that we might use "sometimes")
thanks
Martin
I've just written a small python script to do this - saved me a bit of time !
But I guess most of us won't want an exact clone - but better to delete objects off a form than add them on individually.
It might be handy to have an index page button which did an entire form clone (just a thought)
(or a page of advanced utilities that we might use "sometimes")
thanks
Martin
Re: Cloning many form objects
Martin,
If you had written it in PHP you could have shared it with us as a Activity Procedure!
Steven
If you had written it in PHP you could have shared it with us as a Activity Procedure!
Steven