Disable projects from being selected if closed
Posted: 2016-07-27 08:04
Hi!
For starters - Nice app! Thank you!
So to my question.
I have 3 tables: projects, statuses and orders.
The projects table has a list of projects with a lookup field to the statuses table.
The statuses table has a field with options active and closed.
When entering a new record into orders one of the fields is a lookup to the projects.
First, I would like to enable, that when a project has a status of:
- active it can be selected from the dropdown,
- closed it can no longer be selected from the dropdown.
Second, if the date for te status of the project has been set to closed on today I should still have an option of selecting the project if i'm enetring an order on yesterdays date.
To complete the second, it would maybe be easier if I would add the start and end dates of the projects into the projects table itself? I really have no idea on how to go about this. Can anyone point me in the right direction?
Using latest version of AppGini.
Thank you!
For starters - Nice app! Thank you!
So to my question.
I have 3 tables: projects, statuses and orders.
The projects table has a list of projects with a lookup field to the statuses table.
The statuses table has a field with options active and closed.
When entering a new record into orders one of the fields is a lookup to the projects.
First, I would like to enable, that when a project has a status of:
- active it can be selected from the dropdown,
- closed it can no longer be selected from the dropdown.
Second, if the date for te status of the project has been set to closed on today I should still have an option of selecting the project if i'm enetring an order on yesterdays date.
To complete the second, it would maybe be easier if I would add the start and end dates of the projects into the projects table itself? I really have no idea on how to go about this. Can anyone point me in the right direction?
Using latest version of AppGini.
Thank you!