cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate I
Advocate I

Book a Room PowerApp template

Hi Everyone,

 

I wonder if someone could help me. I am playing with the Book a room template and i am very impressed with the quality of the app, really have to up my game here.

 

However I noticed a bug and was hoping someone has come across this before and will be able to help.

 

When a user starts the app and selects the "Book for an existing" meeting option, they get brought to a screen showing their existing meetings, when they select a meeting here

 

pic1.JPG

 

 

 

 

 

They then select the meeting they wish to book and they are brought to the following screen

 

pic2.JPG

 

 

 

 

 

This seems to be a screen saying that there are no rooms available (there are rooms available), however if the user clicks on the "Book now without a meeting" in the top right of the screen they are brought to the screen below

 

pic3.JPG

 

 

 

 

Which is fine, this a room that is available, now when the user click on the "Book for an Existing Meeting" button again they get brought back to the meeting select screen, however this time when they select a meeting they get the correct room available.

 

It would be great to be able to get the correct room selection on the first meeting selection.

 

Anyone have thoughts.

 

Ronan

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @rockonron ,

Do you mean that when you can not load available rooms select screen at the first time if you choose "select for an existing meeting"?

If so,I've found where the problem is.

Since only when variable DateTimeRoomChange is true, the available room collections will be created.So I think the problem is the variable's value.

I found this here:

RoomSelectScreen's OnVisible:

 

Set(CalendarFromSelectMeeting, false);
If(DateTimeRoomChange,
 ...............)
//only if DateTimeRoomChange is true, the followed actions will be acted.

 

 

Please modify MeetingSelectScreen's OnVisible to this:

If(DateTimeRoomChange,
    UpdateContext({ShowLoading: true});
    Set(DateTimeRoomChange, true);  //change false to true
    ClearCollect(FutureCalendarEvents,
        Filter(
            Office365.GetEventsCalendarViewV2(MyCalendar, Text(DateAdd(DateSelected, -1, Hours), UTC),   Text(DateAdd(DateSelected, 1, Days), UTC)).value, 
            Organizer=MyName.Mail
        )
    );
    UpdateContext({ShowLoading: false}));
Set(CalendarFromSelectMeeting, false)

2195.PNG

 Then the available rooms will display correctly when you choose "book for an existing meeting" at the first time.

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @rockonron ,

Do you mean that when you can not load available rooms select screen at the first time if you choose "select for an existing meeting"?

If so,I've found where the problem is.

Since only when variable DateTimeRoomChange is true, the available room collections will be created.So I think the problem is the variable's value.

I found this here:

RoomSelectScreen's OnVisible:

 

Set(CalendarFromSelectMeeting, false);
If(DateTimeRoomChange,
 ...............)
//only if DateTimeRoomChange is true, the followed actions will be acted.

 

 

Please modify MeetingSelectScreen's OnVisible to this:

If(DateTimeRoomChange,
    UpdateContext({ShowLoading: true});
    Set(DateTimeRoomChange, true);  //change false to true
    ClearCollect(FutureCalendarEvents,
        Filter(
            Office365.GetEventsCalendarViewV2(MyCalendar, Text(DateAdd(DateSelected, -1, Hours), UTC),   Text(DateAdd(DateSelected, 1, Days), UTC)).value, 
            Organizer=MyName.Mail
        )
    );
    UpdateContext({ShowLoading: false}));
Set(CalendarFromSelectMeeting, false)

2195.PNG

 Then the available rooms will display correctly when you choose "book for an existing meeting" at the first time.

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,141)