
If you see the above picture as example, in this form I want Records that have any value but Not "Posted" value in Enum.
this.query().dataSourceName(formDataSourceStr(XYZ_PayrollWorkspaceWorkerMissingAllTimesheetsPart, ProjMissingHourRegView)).addRange(fieldNum(XYZ_ProjMissingHourRegView,ApprovalStatus )).value(SysQuery::valueNot(TSAppStatus::Ledger));
So, I apply this range (code attach above) on init Method of Form Data Source
but after this code Form Does not show any Record
like this
