I have 2 tables, Service Booking & Service Availed in my app.
Service booking is a parent table & service availed is a child table. Now in the specific view I want the add action to be available on on a certain condition.
The condition is that the status of all the services under the booking, when it is not checked out, only then the add action should be visible, otherwise it should not be visible.
Could you update where the total list of all services is available? In the Service Booking table? If so in what from it is available- a selectable enumlist or how?
All services which are availed will be under the Service booking. Service avail table is ref with the service booking table. Does this answer your question?
Thank you. It partially answers the question. The remaining part of the question is below
@Suvrutt_Gurjar wrote:
If so in what from it is available- a selectable enumlist or how?
Umm under service booking i have an option to add service availed. Once i click on add, a form pops up where I have to select the service name. The service name is basically a unique ref from the service details table, where I store all my services uniquely. The service name is a ref + Enum.
Does that answer the second part?
Thank you. Again it partially answers the second part. So at a time only one service can be selected and so you would like to disable adding records to Service Availed table as soon as that one service related record is added?
Could you elaborate?
So under a particular service booking there are multiple services which can be added. When the status of all the services added under a booking changes to check out, I want the add button to dissappear. So that under a booking more services cannot be added.
Please take a look at the following several posts and solutions on the topic.
Search - Google Cloud Community
User | Count |
---|---|
17 | |
12 | |
9 | |
4 | |
4 |