I have a view which has a field OfficeLocation (Originated from HcmWorkerTitle table). When I add a range to the AOT query properties (OfficeLocation field, Value property set to “”) view shows the records which have empty OfficeLocation and this is fine. But when I use While Select statement on this View and add a condition Where OfficeLocatoin == “” it doesn’t show any records.
Also, I have this view added to another Query and this Query added to a ListPage form as a DataSource. In the interaction class of this Form I overrode InitializeQuery(). In this method whenever I add a range officeLocationRange.value(SysQuery::valueEmptyString()) it doesn’t show any records for some reason. I checked and the SQL statement is correct:
SELECT * FROM UserRoles(UserRoles) WHERE ((OfficeLocation = ‘’))
I checked for other field and AX does absolutely the same. What am I missing? Is there another way to select records with empty strings in a view?