web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding layout format f...
Power Apps
Answered

Adding layout format for booking the desks, also to show which following desks are available & booked , using SharePoint as data source.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi ,

I need to insert a layout for booking the desks, also to show which following desks are available & booked , using SharePoint as data source. Find the attachment about the kind of layout mentioning . I'm quite worried if that kind of feature is compatible  on power apps.

 

If we can insert such kind of layouts kindly do mention more details on that or reference materials on that , of how it can be achieved , expecting it early as need to let the customer know if this kind of feature can be integrated. So , kindly help me on this & let me know any more details to be required here.

oyuuC.png
Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you please share more details about your scenario? Would you like to create a booking seats PowerApps App with customize layouts of that screenshot?

     

    If so, you could achieve your need, steps are below:

    1\ Create "icons" stands for different status seats. You could edit the screenshot to get them:

    booked.jpgavailable.jpg

    2\ Save those icons in SP library or OneDrive, Google Drive, etc.

    3\ Use a Gallery to display all seats, set the Gallery's Wrap count to 4.

    4\ Insert 4 Image controls with URLs linked to those seat status pictures, set Display Mode of them, corresponding to the current seat status in SP list.

     

    It is not very complex but also need to do some work. Hope this helps and wish you good luck!

     

    If you have any further questions, please feel free to let us know.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-jefferni ,

     

    Thanks a lot for your quick response , for mentioning this kind of feature is possible in power apps. So ,yes i got some idea on these steps to be followed . It will be a great help if you can provide me with any of materials/resources for adding this layout, so I'll be more clear achieving this.

     

    Or else if you can explain me in more brief of achieving these steps in detail:

    \ Create "icons" stands for different status seats. You could edit the screenshot to get them:

    2\ Save those icons in SP library or One Drive, Google Drive, etc.

    3\ Use a Gallery to display all seats, set the Gallery's Wrap count to 4.

    Spoiler (Highlight to read)
     
     

    Also i will attach a screenshot from my present app, so you have more idea to look into . Presently i have a dropdown used to select the desks from a particular floor/building. So , all these data comes from share point lists & also once the booking is done , the data gets saved in another 'share point list'. This is the working of my app , for you get more brief on it . Kindly let me know ,if any more details required here.

     

    Waiting for the response.

    2020-12-15_12h44_08.png
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello , awaiting for the response . Kindly look into this.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello , awaiting for the response. Kindly look into this.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    Referring to this "Insert 4 Image controls with URLs linked to those seat status pictures" Can you please explain me what kind of URLs to be added here & once any of the layout image is selected , then i have submit button to submit the form. So , how to make these layout images 'clickable ' & make it store the value until the 'submit ' button is clicked . Missing this flow here.

     

    Kindly look into this , as I'm running out of time having no clue on this particular step.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Sorry for the late...

     

    For the first question, you could simply upload images to PowerApps App within the Media pane, then click the uploaded file name to add it into your App:

    66.png

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-images-pictures-audio-video

     

    For the second question, since a Booking App would be a project with multiple data tables, I could not provide a exact answer for it. You may look into this template App created by @aprildunnam :

    https://powerusers.microsoft.com/t5/Community-App-Samples/Desk-Booking-amp-Reservation-Power-Apps-Template/m-p/624784

     

    But follow the creation of the template App, if you would like to let users click the desk image which is displaying based on the Desk Reservation Status in a particular date, you will need to create:

    1) A desk list which holds all desks.

    2) A booking list which stores every users' reservation information.

     

    Then you could use a gallery to display the desk list, set the images compared with the dates and desk status by filtering the booking list's date time and IsBlank/IsEmpty functions along with variables.

     

    (At about 10:00 in the video of that template)

    The Checkbox has a similar action within you App's Image, set OnSelect of the Image to: 

     

    UpdateContext({Selected:!Selected});If(Selected,Set(SelectedDesk,ThisItem),Set(SelectedDesk,Blank()))

     

    and then set the Image of it to:

     

    If(IsBlank(LookUp(BookingList, DeskName = ThisItem.Name))&& SelectedDesk = Blank(),AvailableImage.Image,SelectedDesk.Name = ThisItem.Name, SelectedImage.Image,BookedImage.Image)

     

    Meanwhile, set the DisplayMode of the Image to:

    If(!IsBlank(LookUp(BookingList, DeskName = ThisItem.Name)),DisplayMode.View,DisplayMode.Edit)

    This would make the desk image non-clickable if it has been booked.

     

    All above steps are based on that you have looked into that video and understood the scenario.

     

    If you have any further questions, please feel free to let us know.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Edit:

    Steps of the whole project:

    1\ In App's OnStart, create a collection that collects the Desk List as a temporary table:

    ClearCollect(colDesk,AddColumns(DeskList,"Status",""))

     

    2\ Add a gallery with Items of collection "colDesk", set Layout to "Image and title", and then adjust the two elements to where you would like.

     

    3\ Add three Images from Media pane which pre-uploaded.

     

    4\ Add Labels below the images to claim the meaning of each.

     

    5\ Add a DatePicker control.

     

    6\ Set Image property of images in the gallery to:

    If(!IsBlank(LookUp(Filter(BookingList,BookDate = DatePicker.SelectedDate), DeskName = ThisItem.Name)),BookedImage.Image,ThisItem.Status = "Selected", SelectedImage.Image,AvailableImage.Image)

     

    7\ Set OnSelect of the Image and the DeskName Label to:

    If(ThisItem.Status = "Selected",Patch(colDesk,LookUp(colDesk,ID=ThisItem.ID),{Status:"UnSelected"}),Patch(colDesk,LookUp(colDesk,ID=ThisItem.ID),{Status:"Selected"}))

     

    8\ Set DisplayMode of the Image and the DeskName Label to:

    If(!IsBlank(LookUp(Filter(BookingList,BookDate = DatePicker.SelectedDate), DeskName = ThisItem.Name)),DisplayMode.View,DisplayMode.Edit)

    This would make booked desks non-clickable, if you want. 

     

    9\ Add a button to submit:

    Set(varSelectedDesk,LookUp(colDesk,Status = "Selected").Name);Patch(BookingList,Defaults(BookingList),{DeskName:varSelectedDesk,BookDate:DatePicker.SelectedDate})

     

    Below is the Gif the my test demo:

    BookDesk.gif

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Okay , thank you so much for that . Please do let me know as earliest as possible. Help on this is really appreciated . 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks a lot for very clear explanation @v-jefferni . I was struck here in this part , of it's not showing the 'booked ' desks images for the particular date, able to get the 'available' & 'selected' images. 'Desk Name=Thisitem.Name', is this checking out the desks in the 'bookings list ' & selected desk in the gallery ? like if they both are same or not? does it refers to that? Because the naming convention seems to be little different.

     

    And so accordingly we have 2 different lists 'desk lists' containing information about , the desks & 'Bookings list' carrying information about 'users who booked which desk on particular date ' right? Also following these '9 steps' will achieve the feature i guess , because not sure if i might have missed any steps here .

     

    Please do look into this , modifying from my end too , to get all the status properly. Thanks again.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Yes, you are right about the two list "DeskList" & "Booking List".

     

    For your questions, the formula in step 6 is the syntax that If(condition1, true value, condition2, true value, else value), as per you mentioned that "booked" desks not showing, since the Items of the Gallery is the collection of all desks, the condition and true value is 

    !IsBlank(LookUp(Filter(BookingList,BookDate = DatePicker.SelectedDate), DeskName = ThisItem.Name)),BookedImage.Image

    which means if could find the same desk name in booking list as in the desks collection in the selected date, booked image would be shown as this item. "DeskName" is column in BookingList and Name is column in desks collection as well as DeskList.

     

    My demo is basically the simplest version of your scenario, the goal could be achieved via the data sources of that two lists. 

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard