How to filter negative values from readonly grid

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

Parents Reply
  • 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)
    )
    ),

Children
No Data