Record action not shown in a grid but available in Related Actions

Certified Senior Developer

I have an action in a record type. I've set up a very simple visibility rule for it, but it behaves weirdly.

The record type has a field Canceled of type Boolean and it cannot have null values.

The visibility rule is configured to show the action only if it's not canceled.

The action is available for users in a read-only grid and in a Related Actions tab of record's overview.

There's always correct behavior in the Related Actions tab.

In the read-only grid the action is shown only if I add a check for NULL to its visibility rule.

And in that case the actions is always visible in the grid, no matter if it's canceled or not.

So it behaves like Canceled is always NULL, though there's always a value.

What might be causing this problem?

We are still on Appian 21.4 hosted in our environment, not sure if it matters.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to Stefan Helzle

    all records in DB have defined values, i checked it. But in a time I created the record type that field was nullable. Later I changed it to be not nullable in DB and in CDT. I hoped that with data sync the record type would be updated. But looks like something is still wrong in the record type definition after that update. Though it's strange that the same action behaves as expected in the related actions tab

  • 0
    Certified Lead Developer
    in reply to Stefan Helzle
    rv!record[recordField] <> true

    I personally traditionally prefer either the simpler, if(rv!record[recordfield], false(), true()); especially since the "<>" operator can be finnicky about value and particular data types.

    Though in terms of keeping my code modern and "correct" these days i try to just use modern a!defaultValue() functionality:  not(a!defaultValue(value: rv!record[recordfield], default: false()).