I have a requirement to filter negative values from readonly grid and It needs to get configured from expression rule but Im not able to filter the negative values.
I tried using "<" as operator for that particular field but still not filtering out.
please help me achieve this
Discussion posts and replies are publicly visible
For testing purpose I used the some value and here is the result. Maybe it will be helpful for you.
thankyou baji mekala for responding
hi mike thankyou for respondingmy requirement is I have to make a filter for latitude and longitude as latitude from latitude to and longitude from longitude to when user put some values in latitude from and latitude to then it filters the values between those values from grid
for reference :
here i want values above 42 as well like 42.2 but just getting values between 41 and 42if there is any solution please let me know
Hi, please try the below code, as mike said increment that end value & check both < and >= in query filter with ri!latTo+ 1 and remove the extra query filter "between" query filter. Hope this will works for you.
a!queryFilter( field: 'recordType!{9441efd7-521a-4695-82a7-d661a237c67d}.fields.{499d2d44-21c8-41dc-a3be-2dbd3ee0356f}', operator: ">=", value: ri!latFrom, applyWhen: and( not(rule!APN_isEmpty(ri!latFrom)), rule!APN_isEmpty(ri!latTo) )),a!queryFilter( field: 'recordType!{9441efd7-521a-4695-82a7-d661a237c67d}.fields.{499d2d44-21c8-41dc-a3be-2dbd3ee0356f}', operator: "<=", value: ri!latTo + 1, applyWhen: and( not(rule!APN_isEmpty(ri!latTo)), rule!APN_isEmpty(ri!latFrom) )),