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 / why does one collectio...
Power Apps
Answered

why does one collection work but the other dosent even though they collect the same thing?

(0) ShareShare
ReportReport
Posted on by 65
Spoiler (Highlight to read)
 why does one collection work but the other dosent even though they collect the same thing?
 why does one collection work but the other dosent even though they collect the same thing?

so i have a pretty weird problem i have a gallery where when you press the next arrow to get into the given record it does the following

Set(varLoading, !varLoading);

//gemmer ideet på recorded i en variabel

Set(varItemID, ThisItem.ID );

 

ClearCollect(colEditRestordre, Filter('STANDARD.v_MV_Shipping_RestOrderAPP', SalesOrder = ThisItem.OrdreNr));//finder alle gemte oplysninger om ordren og gemmer dem i en collection som bliver brugt flere steder på Screen_Details og screen_editpol

 

ClearCollect(colRestordre, Search(v_RestOrdrer, ThisItem.OrdreNr, "OrdreNr"));//finder alle records med dette ordrenummer og bliver brugt gal_Restordre, gal_details, Screen_addnewPol

 

ClearCollect(colRestordreDetails, Search(v_RestOrdrer, ThisItem.OrdreNr, "OrdreNr"));// det samme som forrige collection og bliver brugt på screen_Details, gal_details, galedit_addnewpol

 

Set(varOrdreNR, ThisItem.OrdreNr);//gemmer ordrenummeret i en variabel

 

Set(varOrdreDato, ThisItem.Dato);//gemmer dato

 

Set(varLoading, !varLoading);

 

Navigate(Screen_details);

the next screen I once again have a gallery bot the weird thing is that when I use the colRestordre, i get the items i want, but when i use colRestordreDetails i get nothing even though it collect the same **bleep** thing?

the details gallery have the following filter

If(

varColClosedRestordre,

colClosedRestordre,

If(

varRadioselected = 1,

Filter(colRestordreDetails, RestRest = "1"),

If(

varRadioselected = 2,

Filter(colRestordreDetails, Lukket = 1),

colRestordreDetails

)

)

)

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @fmc2022 ,

     

    From first sight there's nothing wrong with the formulas you posted. Have you made sure that when testing both collections contain the same data? Possibly one of the collections is reset without you being aware of it.

  • Verified answer
    fmc2022 Profile Picture
    65 on at

    I found a workaround where i deleted one off the collections and found another way to get the data i wanted, but i havent teste if both got data since i didn't tell it to clear it anywhere

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
timl Profile Picture

timl 122 Super User 2026 Season 2

Last 30 days Overall leaderboard