Page 1 of 1

Custom form control

Posted: Mon May 13, 2024 3:47 pm
by shuray
Hi!
I have several forms with the same set of controls - they are same by look and behavior.
Is there a nuBuilder way to implement such subset as custom control - to develop it once and put to various froms?

Thank you.

Re: Custom form control

Posted: Mon May 13, 2024 4:18 pm
by kev1n
Hi,

There is no such feature. However, you could ‘clone’ the objects that are in the zzzzsys_object table.
I.e. assign a new primary key (column zzzzsys_object_id), adjust the form Id (sob_all_zzzzsys_form_id) and also the tab Id (sob_all_zzzzsys_tab_id) accordingly.

Possibly also change sob_all_id, sob_all_table if the underlying table is different.
This could be automated with a PHP procedure. Of course, you would still have to check whether the target form already contains those objects and then just update instead of copying.