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!
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.
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
-
- 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
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:
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#