Hello,
IN extension of the standard form HCMWorkLookup I'm trying to update query like that
if (this.args().parm() == "TORFCTABLE")// && this.args().caller() && this.args().caller().name() == classStr(TOR_FCTableReport_UNI))
{
QueryRun qr;
hcmWorkerLookup.parmIncludeOnlyCurrentLegalEntity(true);
LegalEntityRange.visible(false);
qr = this.HcmWorker_ds.queryRun();
qr = HcmWorker_ds.queryRun();
HcmWorker_ds.queryRun().query(hcmWorkerLookup.updateQuery());
}
While executing line12 I get an error
System.NullReferenceException: 'Object reference not set to an instance of an object.'
I checked qr above this line 12 and they return null.
hcmWorkerLookup.updateQuery() return query correctly.
This code actually exists on the original HCmWorkerLookup form
HcmWorker_ds.queryRun().query(hcmWorkerLookup.updateQuery());
and doesn't cause any issues. Maybe I'm missing something?
Thanks.