Welcome to the nuBuilder Forums!

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

cloneable objects

Questions related to using nuBuilder Forte.
Post Reply
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

cloneable objects

Unread post by marc »

Hello,

Some controls have cloneable set to NO. When I fill out a form, save it and then click the clone button, all controls are cloned.
The controls with cloneable set to NO should be blanked out after the cloning action. Shouldn't that be the way it works, or am I missing the point?
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

Re: cloneable objects

Unread post by marc »

Is this cloning functionality described somewhere?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: cloneable objects

Unread post by admin »

marc,

You were right the Cloneable Object did nothing.

Now it does, but you'll need the latest from Github.

It works for all editable Objects, except Subforms at the moment.

Let me know if it works for you.


Steven
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

Re: cloneable objects

Unread post by marc »

Thanks for that! Is there an easy way to "clear" all fields in a subform grid after a cloning action has taken place?
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: cloneable objects

Unread post by admin »

marc,

Not yet.

Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: cloneable objects

Unread post by toms »

marc wrote:Thanks for that! Is there an easy way to "clear" all fields in a subform grid after a cloning action has taken place?
This will clear all fields of your subgrid (the rows are still there but with the values blanked out):

Code: Select all

if (nuFormType() == 'edit') {
        if (nuIsClone()) {
            $("Input[id^='subgridname']").val('').change();
        }
}
marc
Posts: 92
Joined: Mon May 14, 2018 3:26 pm

Re: cloneable objects

Unread post by marc »

thanks toms.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: cloneable objects

Unread post by admin »

.
Post Reply