Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

No new ID made when 'clone' record

Questions related to using nuBuilder Forte.
Post Reply
88tc88
Posts: 15
Joined: Tue Mar 04, 2025 10:53 am
Has thanked: 11 times

No new ID made when 'clone' record

Unread post by 88tc88 »

Hi all,

Currently I am running into the following problem. I am having a browse and edit form which is built around my 'appointments' table. When I open the edit form of one of these appointments, I clone it, adjust it and try to save it, it gives an JavaScript error:

"Uncaught TypeError: Cannot read properties of null (reading 'style')"

This has to do with the fact that I have the appointment_id visible on my edit-form. When I remove it, it works just fine and nubuilder creates a new unique ID for the cloned appointment. Hower, I would like this appointment_id to still be visible om the edit-form. I tried changing the access-settings and changing it into an input object and a display object, but nothing seems to work besides completely deleting it form the form.

Any solutions you could help me with? Thanks a lot in advance!
kev1n
nuBuilder Team
Posts: 4565
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 529 times
Contact:

Re: No new ID made when 'clone' record

Unread post by kev1n »

Hi,

You could add a Display Object with a different ID than appointment_id (e.g., app_id) and use it to display the appointment_id.

For example, you can use the following SQL query:

Code: Select all

SELECT appointment_id FROM your_table where appointment_id = '#RECORD_ID#
Post Reply