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
)
)
)