Hi all
In the home stretch of finishing my current app, but what I am finding is my Gallery is showing the wrong totals until I hit refresh, I will be accumulating a lot of records and I was hoping not to be refreshing data too often. This is the Gallery that's showing the wrong totals.
AddColumns(
SortByColumns(
Filter(
GroupBy(
Sanford_Pallet_Serial_Number_Record,
"DateOfProduction",
"SNDumped",
"SNGroup",
"PalletNumber",
"OPProductCode",
"DataPool"
),
DateOfProduction >= DatePicker01_1.SelectedDate && DateOfProduction <= DatePicker02_1.SelectedDate
),
LabelSwitchCode.Text,
Descending
),
"ItemCount",
CountRows(DataPool),
"FSNumber",
First(DataPool).SerialNP,
"LSNumber",
Last(DataPool).SerialNP
Which gets fed from this.
UpdateContext({loadSpinner:true}); ClearCollect(GeneratedSNumbers, GalleryNumsGen.AllItems);ForAll(GeneratedSNumbers,Patch(Sanford_Pallet_Serial_Number_Record,Defaults(Sanford_Pallet_Serial_Number_Record),{SerialNP:GalGSNumbers.Text,LotNumber:TILLotNumberFull.Text,DateOfProduction: Now(),OPProductCode:GalleryOpCode.Selected.Value,SFProductCode:LabelSFCode.Text,SNGroup:LabelSFGrade.Text}));UpdateContext({loadSpinner:false})
Which gets it's sequence from here.
Sequence(Value(TIQtyGenerated.Text),Value(FSNumber.Text))
Clear as custard I'm sure.