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 / Insert multiple dates ...
Power Apps
Answered

Insert multiple dates in a row of a sharepoint list

(0) ShareShare
ReportReport
Posted on by 37

Hello everyone,
I would need some help.
I am developing an app to manage the entry of guests to some events, I would need to keep track of the entry date of each guest to the various events.

This is my SharePoint list

 

Immagine 2023-07-28 092231.png

 

How can I do to enter, using a datepicker, the various dates in the sharepoint list to have a history of them?

 

Also I would like, when I select a day on the search datepicker, to display the list of guests who were present that day at the event.

 

Immagine 2023-07-28 092434.png


Can someone please help me with this?

Categories:
  • elseb Profile Picture
    774 Moderator on at

    Hi,

     

    This is pretty simple to accomplish using patch to save dates and all the data required,

    and to display you need to use filter and gallery.

     

    i could help you with code if i saw the controls you're using for each detail.

     

    Seb

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @MatildeBecherel ,

     

    For a data source, I don't think this is the best practice. If I were to do this project, I'd prefer at least 2 lists, one for managing guests, the other for managing entries.

     

    Anyway, using 1 list can also fulfill your requirement (when the list contains less than 500/2000 entries, set the limit in App settings -> data row limit, maximum 2000). Please follow below steps:

     

    when updating an entry in the list, if you are using Edit form in New mode, OnSelect of Gallery where selecting a guest:

    Select(Parent);;Set(varData; ThisItem.'Data Ingresso')

    In the Form, in Data Ingresso DataCard, I assume you have unlocked and added a Date Picker. So the Update property of this Data Card set to:

    Concatenate(varData; Char(10); Text(DatePicker.SelectedDate; "m/dd/yyyy"))

     

    In the Gallery of guest list, use below formula in Items:

    Search('App ospiti'; Text(SearchDatePicker.SelectedDate; "m/dd/yyyy"); "Data Ingresso")

     

    Best regards,

    Best regards,

  • MatildeBecherel Profile Picture
    37 on at

    Thank you for the response.

    I inserted a datepicker in the guest detail screen, so that each time it enters the date on which it participates in the various events. 

     

    detail screen.png

    Instead this is the function I use to filter the gallery

    Gallery.png

     

    Do you need anything else or is that enough to help with the code?

     

    Thank you

     

  • elseb Profile Picture
    774 Moderator on at

    oh you're using forms, i can help you with code for patch and separate controls as i have very little experience with forms, i've moved away from them right at the start.

     

    Seb

  • MatildeBecherel Profile Picture
    37 on at

    Thank you for the answer but it doesn't work, with this solution nothing is inserted inside the sharepoint list.

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

    Hi @MatildeBecherel ,

     

    It's a display form in your screenshot, which are used for viewing item details rather than editing an item. If you only want to add the date to the item that is viewing in the form, you can try below formula on OnSelect of the Insert button:

    Patch('App ospiti'; YourGallery.Selected; {'Data Ingresso': Concatenate(varData; Char(10); Text(DatePicker.SelectedDate; "m/dd/yyyy"))})

     

    The formula for OnSelect of Gallery is still needed:

    Select(Parent);;Set(varData; ThisItem.'Data Ingresso')

     

    Best regards,

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard