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!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
No new ID made when 'clone' record
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 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#