So digging through D365 documentation it looks like I need to create an extension of the datasource from the Form.

So I have attempted to create that but get some errors that I am unsure of. I am trying to adjust the executequery method.
[ExtensionOf(formDatasourcestr(WHSLoadPlanningListPage, WHSLoadTable))]
final class WHSLoadTable_Extension
{
public void executeQuery()
{
if (!filteredByMenuItem)
{
qbrLoad = SysQuery::findOrCreateRange(WHSLoadTable_ds.queryBuildDataSource(), fieldNum(WHSLoadTable, LoadStatus));
if (showClosedLoads)
{
qbrLoad.value('');
}
else
{
str loadStatusFilterStr = strFmt('(((%1.%2 == %4) && (%1.%3 != %5)) || ((%1.%2 == %6) && (%1.%3 != %7)))',
formDataSourceStr(WHSLoadPlanningListPage, WHSLoadTable), // 1
fieldStr(WHSLoadTable, LoadDirection), // 2
fieldStr(WHSLoadTable, LoadStatus), // 3
any2Int(WHSLoadDirection::Outbound), // 4
any2Int(WHSLoadStatus::Shipped), // 5
any2Int(WHSLoadDirection::Inbound), // 6
any2Int(WHSLoadStatus::Received)); // 7
qbrLoad.value(loadStatusFilterStr);
}
}
super();
}
}