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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Saving date values in ...
Power Apps
Answered

Saving date values in a collection

(1) ShareShare
ReportReport
Posted on by 122

Hi

 

i am creating a collection with a date column, however when i view that collection in a another gallery it reverts the dates to the last selected date. 

 

I am adding each line to the collection through the following code:

 

Collect(
    collLineItemInfo,
    {
        Quatity: CollLineQuantity.Text,
        UnitPrice: CollLineUnitPrice.Text,
        AccountAssignmentGLCode: Value(CollLineGLCode.Text),
        UOM: ddUOM.Selected.Value,
        MaterialHCSGroup: CollLineMAtGroup.Text,
        ShortText40CharactersOnly: CollLineShortText.Text,
        GRNStatus: txtGRNSelect.SelectedText.Value,
        DeliveryDueDate: CollLineDelDueDate,
        AccountAssignment: CollAccountAssignment.Text,
        MASCode: CollMASCode.Text,
        MaterialMaster: CollMaterialMaster.Text
    }
)

 

Its displays as it should in the below table on the screen where the collection is being made

Massingc1983_0-1720441933506.png

 

 

however on the next screen where i want to view that same collection again i get the below?

Massingc1983_1-1720442077142.png

 

Many thanks

 

Chris 

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,928 Super User 2025 Season 2 on at

    Hi @Massingc1983 

     

    You said you are adding the items in this loop, but where exactly is the data coming from? You said its reverts, but when you do a collect, it will simply have whatever values you gave it.

     

    What is CollLineDelDueDate?? 

    How does it get set?

    If its a control then you should have like .SelectedDate or something to define.

     

    I would add a Trace statement and write the value of CollLineDelDueDate so you  can see why its not the value you expect.

     

    Also, look at the Column Binding on the Second Gallery to validate you are binding to the correct column.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard