Hello to all and many thanks in advance.
I need to hide/show a button in power apps when a specific condition applies.
Here is the scenario:
- I have a list in SharePoint that contains Incidents created by users
- I have another list in SharePoint that contain all the Actions related to an incident
Incidents:
Title, Columns etc, Status
2021-12,..., Approved
2021-11,..., In Progress
2021-10,...,In Progress
2021-9,...,Open
Incidents Actions:
Incident, Actions, Status
2021-12, action1 , Open
2021-12,action 2, Closed
2021-12,action3, Closed
The button i want to show/hide, "Close Incident", should only be available when all Incidents Actions for the Incident are Closed.
Like in the scenario above, since 2021-12,action1 is still open then i cannot close the incident.
I can't get my head wrapped around this. First time building a power app.
Do a filter to get all Actions from 'Incident Actions' where Incident is equal to the actual incident i am working on,
then Countrows(),
then do a lookup to get all Open Actions, count those. If count >0, mean that an action is still open and i cannot close the incident.
Help