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.
insert multiple lines in a subform.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
It would also make it a great deal easier if you could create a minimal example that form/subform together with some dummy data. Then upload the db dump here so I can further assist you.
Re: insert multiple lines in a subform.
Kev1n
Here's my printscreen
Johan
Here's my printscreen
Johan
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
Is new data entered in (1) and then before saving, it should check if (1) does not exist in (2) ?
You do not have the required permissions to view the files attached to this post.
Re: insert multiple lines in a subform.
Kev1n
When entering a new activity, user must enter 1.
Based on this info, 2 must be entered before saving or maybe even better with object RUN.
In this example I entered an activity that takes place weekly between 15 and 22/7.
Employee afterwards still must have the option to make changes in 2?
Johan
When entering a new activity, user must enter 1.
Based on this info, 2 must be entered before saving or maybe even better with object RUN.
In this example I entered an activity that takes place weekly between 15 and 22/7.
Employee afterwards still must have the option to make changes in 2?
Johan
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
Can't (2) be generated automatically from (1) when the form is saved? For each day a row is added to (2)
Re: insert multiple lines in a subform.
Yes that's the idea for a new form.
I have to check with SQL that the room is available on that moment.
When available fill in the room, if not add date, hours and leave room empty so user can choose An other room
I have to check with SQL that the room is available on that moment.
When available fill in the room, if not add date, hours and leave room empty so user can choose An other room
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
Could you also post a screenshot of the db columns of the main form?
Re: insert multiple lines in a subform.
Printscreen in attachment.
Johan
Johan
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
Could you export the db schema of these two tables to an .sql file? Then I'll try to create a demo on our test platform.
Re: insert multiple lines in a subform.
Kev1n
SQL export of my tables.
We'll use this database for our work in a prison.
So I have to add extra conditions in my select query when a room can be used.
Every room has his max capacity and a room is in a section of the prison. Every section also has it's max capacity. But SQL is not a problem.
SQL export of my tables.
We'll use this database for our work in a prison.
So I have to add extra conditions in my select query when a room can be used.
Every room has his max capacity and a room is in a section of the prison. Every section also has it's max capacity. But SQL is not a problem.