Hi,
I have a form with grid example-InventSerial in AX 2012- It iis customized.
The invent serial has customized field as Status-values are registered, available,scrap,not avaible,machine deployed etc
The user wanted me to filter the invent serial form where he should see all the values except Status -------Registered
So I went to execute query and wrote a range --
inventserial_ds.query().dataSourceTable(tablenum(InventSerial)).addRange(fieldnum(InventSerial, Status1cust)).value(strfmt('!%1', Status1cust::registered));
My query is filtered but it shows as below(image attaced)
Since I dont want user to change the filter, i applied Statusrange=Locked & hidden. As a result the field on form is not available for fileteration(it is greyed out and cant filter)
but the user want the field to be filter to be filterable.
Is there a trick or workaround where I can filter the form with status (!=registered) but also make that field fileterable

There can be some workaround to achieve this
please help