cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rockonron
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
v-yutliu-msft
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
v-yutliu-msft
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (44,123)