Welcome to the nuBuilder Forums!

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

Question about cloning forms

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Question about cloning forms

Unread post by kknm »

There is a form (browse_Edit) and its table.
I make a copy of this table (structure) in a database with a different name. I clone a form with the parameters of the copied table.

I get the correct form (browse), but empty Edit.

Is this due to the fact that the fields in both tables have the same names or is there another reason?
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Question about cloning forms

Unread post by kev1n »

Hi,

There's no problem using the same object ids in multiple forms.

Make sure you also change the table name in the sob_all_table column of the zzzzsys_object table.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Question about cloning forms

Unread post by kknm »

base -V.4.5-2024.02.29.01
files -V.4.5-2024.03.05.02

I don't have the zzzzsys_object table. I'm trying to update - new zzzz objects do not appear in the database.how to update?
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Question about cloning forms

Unread post by kev1n »

zzzzsys_object has been around since the beginning, without it nuBuilder wouldn't work.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Question about cloning forms

Unread post by kknm »

zzzzsys.png
This database has been in operation for 2 years and has been updated periodically.
I copied this base (structure) for use in another organization. To expand the functionality, it was necessary to clone some forms and tables, and here I discovered the absence of many system tables.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Question about cloning forms

Unread post by kev1n »

The left panel doesn't show all tables. But you can search for one:
2024-03-15_092121.png
Tables can also be hidden:

https://stackoverflow.com/questions/524 ... left-panel

Also, when you export the database, all the tables are in the dump.
You do not have the required permissions to view the files attached to this post.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Question about cloning forms

Unread post by kknm »

Please forgive me for my inattention - the tables are in place, it’s just that the database is too big for my screen. :-)

However, the form does not clone Edit, neither through cloning on the form nor through Cloner - only browse. In zzzzsys_object there are only the original objects of the native form and table; there are no records about the new table.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Question about cloning forms

Unread post by kev1n »

When you run the cloner, don't you see the zzzzsys_object section ?
dump.png
You do not have the required permissions to view the files attached to this post.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Question about cloning forms

Unread post by kknm »

The original form is -fro.
The cloner shows that it created the form fro_clone_1
All sections are present, but the fro_clone_1 form is not present in the forms. It is also not in zzzzsys_object.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Question about cloning forms

Unread post by kev1n »

zzzzsys_object doesn't contain the form code, just the form id.
Post Reply