Page 1 of 1
cloneable objects
Posted: Wed May 16, 2018 11:45 am
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?
Re: cloneable objects
Posted: Thu May 17, 2018 7:12 am
by marc
Is this cloning functionality described somewhere?
Re: cloneable objects
Posted: Thu May 17, 2018 7:58 am
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
Re: cloneable objects
Posted: Sun May 20, 2018 9:40 am
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?
Re: cloneable objects
Posted: Sun May 20, 2018 11:59 pm
by admin
marc,
Not yet.
Steven
Re: cloneable objects
Posted: Mon May 21, 2018 8:37 am
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();
}
}
Re: cloneable objects
Posted: Tue May 22, 2018 1:25 pm
by marc
thanks toms.
Re: cloneable objects
Posted: Tue May 22, 2018 6:13 pm
by admin
.