Hello
I am currently trying to build an app to track people and utilise my rooms.
I have two tables, Rooms and Tracking
Rooms consist of the following columns: RoomName and active.
Tracking has the following columns: Name, Room, and Finished.
I want to be able to select my dropdown to list the rooms. (Currently, this works well)
If I select a room, it writes the room against the person's name (i.e., room5). If I have another person listed and they click to allocate a room, I don't want room5 to be in the dropdown.
I am new to this and would appreciate some help in what to put in drpRoom_v2.Items.
Here are the settings I am using so far:
drpRoom_v2.Items = ForAll(Rooms, RoomName)
drpRoom_v2.Defaults = If(IsBlank(pat.Room),Blank(),LookUp(ForAll(Rooms, RoomName),Value = pat.Room).Value)
drpRoom_v2.OnChange = Patch(PatientTracking,pat,{Room:drpRoom_v2.Selected.Value})
if someone could help me or suggest a way that a room can will only appear if not booked (so untill finished is ticked on patient tracking) i would appreciate it.