Your Offer is very welcome. I'm not seeing any specific issues currently, an initial load time of about 5 secs (acceptable). I am looking to simplify and streamline the app as much as possible though. The if statements are in to ensure the entire data source is loaded into the collection, thereby avoiding the delegation limit when filtering.
//initial load
ClearCollect(
colMassImport,
'[dbo].[tjCostings]'
);
//Further loads if necessary
UpdateContext({varLastCostRecord: Value(Last(colMassImport).RowID)});
If(
Last(colMassImport).RowID >= 2000,
Collect(
colMassImport,
Filter(
'[dbo].[tjCostings]',
RowID > varLastCostRecord
)
)
);
UpdateContext({varLastCostRecord: Value(Last(colMassImport).RowID)});
If(
Last(colMassImport).RowID >= 4000,
Collect(
colMassImport,
Filter(
'[dbo].[tjCostings]',
RowID > varLastCostRecord
)
)
);
UpdateContext({varLastCostRecord: Value(Last(colMassImport).RowID)});
If(
Last(colMassImport).RowID >= 6000,
Collect(
colMassImport,
Filter(
'[dbo].[tjCostings]',
RowID > varLastCostRecord
)
)
);
UpdateContext({varLastCostRecord: Value(Last(colMassImport).RowID)});
If(
Last(colMassImport).RowID >= 8000,
Collect(
colMassImport,
Filter(
'[dbo].[tjCostings]',
RowID > varLastCostRecord
)
)
);
UpdateContext({varLastCostRecord: Value(Last(colMassImport).RowID)});
If(
Last(colMassImport).RowID >= 10000,
Collect(
colMassImport,
Filter(
'[dbo].[tjCostings]',
RowID > varLastCostRecord
)
)
);
//addcolumns to data source
ClearCollect(colWorkingRecords,AddColumns(colMassImport,"RecordAmended",false)
);
The column I am adding needs to default to 'false', rather than 'null' if I add the column at the beginning.
Many thanks again for your offer of help.
Tim.