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 Children
  • thankyou   for responding 

    hi mike thankyou for responding

    my 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 42
    if there is any solution please let me know

  • 0
    Certified Senior Developer
    in reply to appian.user

    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)
    )
    ),