The problem arises if you only want to show empty strings, as this
range normally would mean all values. The solution is ALWAYS to use
the methods queryValue and queryRange (Class Global) to insert
values in a queryBuildRange from the X++.

You could make your programming a bit more secure by using table-
id's to address the datasources. The best practice way to find a
datasource is:

query.dataSourceTable(TableNum(<TableName>))

This construction will result in a compiler error if the name of the
table does not exist.

Your example would look like:

<DataSourceName>_DS.query().dataSourceTable(TableNum
(<TableName>)).addRange(FieldNum(<TableName>,<FieldName>)).value
(QueryValue(''));

Best regards,
Bj�rn M�ller Pedersen
Thy Data Center Development A/S
http://development.thydatacenter.dk/

--- In [EMAIL PROTECTED], "jp_axapta"
<[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I want to filter the records whose values are null in a perticular
> field using
>
> datasourcename_ds.query().datasourceno(1).addrange(fieldname).value
();
>
> I want to filter only those records whose field values is null.
>
> Thax in advance.
>
> Regards,
> jay


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to