I have a form data source (OMOperatingUnit) on a form where I need to filter by "OMOperatingUnitType", but I am getting a null reference error. What is the proper way to filter this query?
public void executeQuery() { this.query().dataSourceName("OmOperatingUnit").addRange(fieldNum(OmOperatingUnit, OMOperatingUnitType)).value(queryValue(OMOperatingUnitType::OMBusinessUnit)); super(); }
Hi Philly,
Have you debugged the code?
Is the error throwing on executeQuery method you have written?
Also no need to mention the datasource name.
OmOpearatingUnit_ds.queryBuilDatasource().addRange(FieldNum(Fields...)).value(ranges...);
Thanks,
Girish S.
André Arnaud de Cal...
292,074
Super User 2025 Season 1
Martin Dráb
230,900
Most Valuable Professional
nmaenpaa
101,156