Hi
I'm currently working on a form to help our employees schedule repetitive activities.
I want to use a subform where I want to automatically add multiple lines. Eg 1 row for each week of July.
When inserting a new line in the subform I would also like to check that the requested locale is still free. If not, I'd like to report it. However, I don't know how to build in this control. Anyone has a suggestion.
Thanks
Johan
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: 4301
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
To add a new row, call the JavaScript function nuAddRow().
I don't quite understand that.When inserting a new line in the subform I would also like to check that the requested locale is still free. If not, I'd like to report it
Re: insert multiple lines in a subform.
In every row of my subforum I want to reservate a meeting room. So I need to look up in my database tot be sure if they room is available before adding that row.
On thé form user adds first date, last date, room, frequency.
With that information I would like to add the subrows where they room is available and An alert for thé dates where they rooms are occupied
On thé form user adds first date, last date, room, frequency.
With that information I would like to add the subrows where they room is available and An alert for thé dates where they rooms are occupied
-
- nuBuilder Team
- Posts: 4301
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
When should the check take place? Before saving the form or at some point before?
Re: insert multiple lines in a subform.
It would be nice if It could do a check before save with an alert after save.
-
- nuBuilder Team
- Posts: 4301
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
-
- nuBuilder Team
- Posts: 4301
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: insert multiple lines in a subform.
Which columns should be checked for duplicates? first date, last date, room ?
Re: insert multiple lines in a subform.
Kev1n
For each row I want to run a SQL
select to check if the room is still available.
If so he has to input date, room with thé last date <= enddate
There can't be duplicates on date in subform
For each row I want to run a SQL
select to check if the room is still available.
If so he has to input date, room with thé last date <= enddate
There can't be duplicates on date in subform
-
- nuBuilder Team
- Posts: 4301
- 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 post a screenshot of your form and also the Ids of your subform columns.