Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to Grayscale Header Actions Dynamically in Avonni Data Table

Keep the Data Table header buttons grayed out until the user ticks at least one row, with a Boolean formula bound to Disable Actions.

A Reassign button in the table header makes no sense while nothing is ticked. Clicking it opens a second flow with an empty list. Gray the header actions out until the user selects at least one row: a formula counts the selected rows and drives the table's Disable Actions setting.

Data Table with its header buttons grayed out because no row is selected
No row ticked, so the header actions stay disabled.

Before you start

  • A Data Table with at least one header action. Passing multiple record IDs to another flow builds a Reassign action.

  • The API name of the Data Table on the screen, shown in the screen's properties when you select the component. This page uses DealsTable.

Steps

1

Create the formula

In Flow Builder, open the Toolbox, click New Resource and set:

  • Resource Type: Formula

  • API Name: NoRowsSelected

  • Data Type: Boolean

  • Formula:

nbSelectedRows is the Data Table output Number of Selected Rows. The formula returns true while no row is ticked, which is when the actions must be disabled. BLANKVALUE treats an empty count as zero. Replace DealsTable with your Data Table's API name.

2

Bind the formula to Disable Actions

  1. Select the Data Table and click Open Component Builder.

  2. In the Properties tab, open the Header group.

  3. Next to Disable Actions, open the resource picker and select the formula. The picker shows NoRowsSelected as No Rows Selected.

Header group of the Properties tab with Disable Actions bound to the NoRowsSelected formula
Disable Actions reads the formula, for all header actions at once.
3

Save and test

Click Done, save the flow and run it. The header buttons show grayed out when the screen opens. Tick one row: they turn active. Untick it: they gray out again.

Troubleshooting

The buttons stay enabled when nothing is selected

Check the formula direction. It must return true when the count is 0, because the setting disables the actions. A formula that returns true when rows are ticked does the opposite.

Last updated

Was this helpful?