Page cover image

Data Table

The Data Table is also available as an Experience Cloud Component.

Overview

The Avonni Data Table is a powerful and versatile component for displaying and managing tabular data within Salesforce applications. It offers the following key features:

Tutorials

Learn how to fully utilize the power of the Avonni Data Table, a great component for managing and displaying data within Salesforce.

Data Table

Key Settings

Simplify your Avonni Data Table experience. This section highlights our best articles on essential settings and options.

Configuration

Data Source

The first step in configuring the Avonni Data Table is establishing the Data Source. This crucial element determines the origin and organization of your data within the table. By defining the Data Source, you set which data to display and how it's structured, ensuring the table functions correctly and meets your specific requirements for data presentation.

Available Data Sources

Data Source TypeUse CaseWhen to Use

Ideal for static or predefined data.

For tables without the need for updates or dynamic changes, like fixed lists.

Perfect for tables reflecting dynamically changing data or real-time updates.

When table data is linked to variable collections in Salesforce, such as Get Records Collection.

Optimal for managing large data sets with hundreds of thousands of records, and ideal for complex data retrieval from multiple sources or specific criteria.

For tables displaying data from multiple sources or based on complex queries.

Why Is Configuring the Data Source Important?

  • Accuracy of Data: Ensures that the data table reflects the correct and current information per your business needs.

  • User Experience: An adequately configured data source contributes to a more intuitive and efficient user experience, as the data displayed is relevant and organized.

  • Flexibility and Customization: Different data sources offer varying levels of flexibility and customization, allowing you to tailor the data table to specific use cases.


Data Mappings

The Data Mappings feature in the Avonni Data Table Component is essential for correctly displaying data in your table, especially when using variable data sources like Salesforce's 'Get Records' or 'Query' mode. This feature ensures that the data table accurately represents the information from Salesforce and connects specific fields from your Salesforce data to the appropriate columns in the data table.

Setting Up Data Mappings

This configuration is essential for ensuring your data is displayed accurately and effectively. There are two straightforward methods to add columns to your data table through Data Mappings:

  • Drag-and-Drop Method:

The fields available for mapping will vary based on your chosen data source—either a variable from 'Get Records' or an object in 'Query' mode. Here's how the process works:

For Variable Data Source: Once you select the 'Get Records' variable that you wish to associate with the data table, a list of Salesforce fields from this variable will appear on the left side of the Data Table interface.

For Query Data Source: Use the Query mode to select the corresponding Salesforce object. The relevant fields of that object will be displayed on the left.

Adding to Table: After displaying the fields, you can drag them from this list and drop them onto the data table canvas to add them as columns.

  • Using the 'Add Columns' Button:

    • Location: Locate the 'Add Columns' button in the right panel within the Data Mappings section.

    • Process: Clicking this button allows you to select from the available Salesforce fields and add them as columns to your data table.


Columns Configuration

Configuring columns in the Avonni Data Table is key to creating an effective and tailored data display. Here's a straightforward approach to customizing your table columns:

  1. Access Column Settings:

    • Each column associated with your Salesforce data appears listed in the Data Mappings section.

    • By clicking on a specific column in this section, the property panel for that particular column will open.

  2. Customize Column Properties:

    • The property panel allows you to access various settings for the selected column.

    • Here, you can adjust various attributes and behaviors of the column, such as its width, alignment, sorting capability, text wrapping, and more.

  3. Tailor Each Column:

    • This flexibility allows you to tailor each column based on the nature of the data it represents. For instance, a column displaying dates might have different formatting needs than one showing monetary values.

    • You can also set filters, define editable fields, and adjust visibility settings, ensuring each column functions precisely as needed for your specific use case.

  4. Enhanced Data Representation:

    • Use customization features to change the way your data is displayed. This makes understanding and working with your data much easier.

    • Use the 'Type' in your column settings to control how your data appears on the Data Table. Want to highlight key terms with colorful badges? Need to visualize progress? Choose from options like 'Badge' or 'Progress Bar' for the display that best fits your data.

    See a complete list of supported data types for the Data Table below:

List of available Data Type
  • Action: Provides a dropdown menu for taking actions on a specific row (e.g., edit, delete, view details).

  • Avatar: Displays a profile picture or user image.

  • Badge: Highlights key terms or status with a colorful label (e.g., "Urgent", "Completed").

  • Boolean: Visually indicates true/false values (e.g., a checkmark for "Yes", blank for "No").

  • Button: Creates a clickable button to trigger an action (e.g., "Submit", "Download").

  • Button Icon: A button with a descriptive icon (e.g., a download icon for a "Download" action).

  • Color Picker: Lets users select a color value.

  • Combobox: Offers a dropdown list of choices for selection.

  • Counter: Displays a simple numerical count (e.g., the number of items in a list).

  • Currency: Formats and displays monetary values correctly (e.g., $1,234.56).

  • Date: Displays a calendar date with regional formatting (e.g., 04/11/2024 for US).

  • Date Local: Displays a date without time, formatted for the user's location.

  • Email: Displays an email address and makes it a clickable link.

  • Location: Displays geographical coordinates (latitude and longitude).

  • Number: Displays numerical values (e.g., 10, -5.25).

  • Percent: Displays a value as a percentage (e.g., 75%).

  • Phone: Displays a phone number and makes it clickable for dialing.

  • Progress Bar: Graphically shows completion status as a percentage (e.g., a bar filled to 60%).

  • Progress Circle: Graphically shows completion status in a circular format.

  • Progress Ring: Another circular format for displaying progress.

  • QR Code: Displays a scannable QR code for quick access to information.

  • Rating: Lets users provide feedback using a star or point-based system.

  • Rich Text: Displays text with formatting like bold, italics, lists, etc.

  • Slider: Allows users to select a value within a range using a draggable slider.

  • Text: Displays plain, unformatted text.

  • Toggle: Creates an on/off switch for settings or options.

  • URL: Displays a website address and makes it a clickable link

Explore More: Further Reading and Resources

How to add Images onthe Data TableDisplaying Record Name field as a linkDisplaying a Record as a QR Code

In summary, the Data Mappings feature in the Avonni Data Table doesn't just link your Salesforce data to the table columns; it also allows you to customize how each column functions and appears.


How to make a field editable

Enable inline editing in the Avonni Data Table to streamline updates and create a more intuitive user experience.

Two Editing Modes Available

Inline Editing (Pencil Icon)

When you activate inline editing for a field, a pencil icon appears next to the data. Users click the icon to edit.

Inline editing feature activation with the pencil icon enabled

Direct Cell Editing

For even faster edits, choose "Display as Input." This transforms the field into an editable input box, eliminating the need for extra clicks.

Toggle to activate to make a specific field displayed as input.
Enable 'Display as Input' from the 'All Columns Settings' button to make every field in your Data Table directly editable.

How to Choose:

  • Inline Editing: Ideal for occasional edits or to indicate which fields can be modified.

  • Direct Cell Editing: Perfect for frequent updates or streamlining data entry tasks

Setting up the save interaction

Adding inline editing to fields in the Avonni Data Table is efficient and user-friendly. However, it's crucial to remember the most critical aspect of this functionality.

This step is critical for making inline editing functional. So, as you enhance your data table with inline editing capabilities, always integrate a save interaction to capture and store user modifications seamlessly. 👇

Learn more about making a field editable

Due to Salesforce API restrictions, fields within the Event and Task objects are not editable.

Here's the list of all the supported objects for the inline editing.

Read the tutorial below 👇

Making a field editable

Row Actions

Row Actions enhance user engagement by providing a dropdown menu with additional options upon clicking a row. They offer a practical and interactive way to manage and interact with the data presented in the table.

Learn more about creating row actions.

Read the tutorial below 👇

Adding Row ActionsHow to create an interaction to open another flowEnabling auto-refresh for queries after the Flow Dialog ends

Group By

The "Group By" feature effortlessly categorizes your data within the table. This makes it easier to analyze and understand, especially when working with large datasets.

How It Works:

  1. Choose Your Grouping Column: Select the column that contains the values you want to group your data by (e.g., "Region," "Product Type," etc.).

  2. Automatic Grouping: The Data Table instantly organizes your data, creating sections based on the unique values in your chosen column.

Example: If you group by "Language," you'll see sections for each distinct language, with all related data neatly grouped within those sections.

Avonni Data Table with the Group By in Action

How to enable it?

To activate the Group By feature in your Avonni Data Table, follow these straightforward steps:

  1. Open Component Builder: Launch the Avonni Data Table component builder in your Salesforce environment.

  2. Scroll to Group By Setting: Navigate to the bottom of the settings panel within the component builder.

  3. Select Group By Field:

    • You'll find a designated field labeled 'Group By'.

    • Choose the field from your data set to group the data in the table.

By following these steps, you can effortlessly group data in your Avonni Data Table, making it more organized and more accessible to analyze

How to active the Group By feature

Adjust Group By Options

The Group By section in the Avonni Data Table offers a range of settings to customize how grouped data is displayed and interacted with. This section is handy for tailoring the grouping functionality to fit specific requirements and enhance data readability.

Here's a brief overview of the available options:

OptionDescription

Hide Undefined Label

Hides groups labeled as 'undefined'.

Undefined Group Label

Sets a custom label for undefined groups.

Non Collapsible

Makes grouped sections non-collapsible.

Collapsed

Starts groups in a collapsed state.

Display Group Rows Count

Shows the count of rows in each group.

Show Empty Groups

Displays groups even if they have no data.

Direction

Specifies the direction of the order of the group by.

Linkify

Makes lookup values clickable for quick navigation

Changing Group By Order Direction

You have complete control over the order in which your data is grouped. Here's how to adjust it:

  • Direction Options: Choose from default, ascending, descending, or custom order.

  • Custom Order: For maximum flexibility, select "Custom." This allows you to rearrange and remove grouping values, tailoring the display to your needs.

Linkify group by values

When enabled for lookup fields in the Group By column, this option turns the group header into a clickable link. Clicking the link will navigate you directly to the record detail page of the associated lookup object.

Video Tutorial


Other Settings

General Properties

SettingDescription

Hide Table Header

Hides the table header when enabled.

Wrap Table Header

Long column headers automatically wrap up to 3 lines, preventing clipped text and improving readability.

Hide Checkbox Column

Removes the checkbox column used for row selection.

Show Row Number Column

Displays row numbers in the first column if enabled. NOTE: The Avonni Data Table is based on Salesforce's standard Data Table. Due to this, enabling inline editing will automatically display row numbers. This is a standard Salesforce behavior that we can't directly control.

Required

Makes row selection mandatory for users.

Max Row Selection

Sets the maximum number of rows that can be selected.

Suppress Bottom Bar

Hides the footer with Save and Cancel buttons during inline editing.

Show Number of Items Selected

Displays the count of selected items if enabled.

Read Only

Prevents editing of records, making the table read-only.

Use the Header section to modify how your Data Table's top row looks and what users can do with it. Add clear column titles, enable sorting options, or include search and filter tools.

Title

Define a meaningful title for your Data Table. It introduces the timeline's content and is a key element of the visual hierarchy.

Caption

Use the caption field to add a brief description or supplementary information for your Data Table. This can be especially useful for providing context or additional details about the table data.

Icon

Add an icon to your header to enhance its visual appeal or to help convey the Data Table's purpose or content at a glance.

Is Joined

This property gives the header a square, shadowless bottom border when activated. This makes the header blend seamlessly with another component, making the Data Table appear as a continuous, unified element.

Action

Add interactive actions to your header to enable specific actions from the interaction pane. This provides additional functionality and enhances user engagement with the Data Table.

Visible Action

This setting controls how many action buttons are directly visible within the table's header. This enhances user experience by providing quick access to common actions.

  • To configure: Set the "Visible Actions Buttons" value to the desired number of immediately displayed buttons.

  • Example: If you have 4 actions defined for the header and set "Visible Actions Buttons" to 2, only the first 2 buttons will display directly. The remaining 2 actions will be accessible within a dropdown menu.

Hide Action

The "Hide Actions" feature in the Header Actions allows you to control the visibility of the action menu.

Disable Action

The "Disable Actions" feature makes the action menu inactive while still visible.


Columns Widths

Column widths can be customized if needed. By default, all columns have min and Max values set in pixels.

SettingDescriptionDetails & Options

Column Widths Mode

Specifies how column widths are calculated.

- Fixed: Equal widths for all columns. - Auto: Widths based on content and table width. Default is 'fixed'.

Max Column Width

Sets the maximum width for all columns.

Prevents columns from becoming too wide.

Min Column Width

Establishes the minimum width for all columns.

Ensures columns don’t become too narrow, affecting readability.

Wrap Text Max Lines

Specifies the max number of lines before truncating the content.

Content is cut off and shown with an ellipsis after the set number of lines. Must be 1 or more.

Resize Column Disabled

Disables manual column resizing.

Useful for maintaining consistent column widths.

Resize Step

Width adjustment amount when resizing columns with arrow keys.

Allows for fine-tuned column width adjustments.

SET COLUMN WIDTH INDIVIDUALLY

Column width can be set individually for each column as follows:

  • Go to the Data Mappings section

  • Click on a column

  • Scroll down completely and click on "Advanced Option"

  • Set a specific fixed width for this column.


Column Sorting

You can set the sorting options for columns. The default sorting direction is applied to sorted columns.

Each column can be sortable by activating the sortable toggle directly from the column properties.


Pagination

The Pagination section lets you activate Pagination for your datatable.

Here's how to add pagination on your datatable:

  • From the Properties Panel, expand the Pagination Options section

  • Check the "Show Pagination" toggle

  • Enter your desired number of items per page

  • Adjust other settings like:

    • Pagination alignment

    • Buttons icon and label


Pill Container

Activating the Pill Container option will display selected items in a pill container. Pills can be sorted and displayed in a single line by activating the appropriate option.

The Label Field attribute displays the pill name by the selected field.

Final result
SettingDescription

Label Field

Determines the field name used for the pill label.

Sortable

Enables sorting within the pill container.

Single Line

Restricts the pill container to a single line.

This table outlines the key settings for the Pill Container Display in the Avonni Data Table, detailing their functionalities and typical use cases to enhance user experience in Salesforce.


Filters

The Avonni Data Table makes it easy for users to find the information they need by applying filters to the data. You have several options for setting up filters:

  • Directly on the Table (Canvas): Apply filters directly to the Data Table.

  • In Component Settings (Properties Panel): Customize filter settings within the component's properties.

  • Quick Filtering: Enable filtering on all columns by default for a faster setup.

  • Hidden Columns: You can even filter data based on columns that aren't visible in the table.

Each method gives you control over how users can refine their view of the data.

How to make a field filterable

From the Canvas

  • On the Data Table header, click on the arrow next to the column name you want to make editable.

  • Click on "Allow Filtering" to make that field searchable.

From the Properties panel

  • Go to the Data Mappings section

  • Click on the column of the field you want to make searchable

  • Scroll down and toggle the Filterable attribute.

Enable Filtering on All Columns

Want to make all columns filterable by default? The Avonni Data Table makes it easy:

  1. Click the "All columns settings" button.

  2. CLick on the filterable option.

With just two clicks, you'll activate default filtering capabilities for every column in your Data Table

Set filters for fields that aren't visible as columns.

In the Data Mappings section, you can use specific fields as filters for other fields that aren't visible as columns. It allows you to add extra filters to your data without having to clutter your Data Table with additional columns. Essentially, you can filter data behind the scenes without changing the appearance of your Data Table.

How to Apply Field Filters in the Data Table Without Displaying the Fields

Filters Options

The Avonni Data Table offers three filtering options typ, each designed to accommodate different user preferences and screen sizes.

Filter TypeIllustrationDescription

Horizontal

These filters appear directly above the data table, laid out in a horizontal row. This layout is ideal for quickly accessing and applying filters without obstructing the view of the data table.

Popover

This option allows filters to be hidden behind clickable icons or buttons; when clicked, a small, floating interfac appears, containing the filter options.

Side Panel

Filters in a side panel are located to the left or right of your data table, accessible through a panel that can be expanded or collapsed.

Accessing the Filtering Menu to choose your filter type

  • Open the Component Builder

  • Scroll down to the Filter section.

  • Select how you'd like to display filters

Dynamic Picklist Filters

To enhance your filtering experience, the Avonni Data Table offers dynamic picklist filters. When a filter is applied to a picklist field, the filter menu automatically adjusts to show only picklist values currently used by at least one record in your data table. This simplifies the filtering process and prevents users from selecting irrelevant or unused options.

To enable this feature, toggle the "Hide Picklist Empty Values" option to "On" within the Data Table's properties.

Side Panel Filter menu options

When configuring your Avonni Data Table component to use a "Panel" filter, you can present filtering options in a convenient side panel. This panel offers additional customization settings, described below:

  • Position (Left, Right):

    • This setting determines whether your filter panel slides out from the screen's left or right side when a user interacts with the filter.

  • Is Closed:

    • This option controls the initial state of the filter panel.

    • Set "Is Closed" to "True" if you want the filter panel to start hidden. This is useful when you want to emphasize the data table content initially.

    • Set "Is Closed" to "False" if you want the filter panel to be open by default, prompting users to customize their data view immediately.

  • Hide Toggle Button:

    • It indicates whether a toggle button is visible when manually opening and closing the filter panel.

    • Set "Hide Toggle Button" to "True" if you want the panel to open and close based on other events within your flow (e.g., when a filter icon is clicked).

    • Set "Hide Toggle Button" to "False" to give users an always-visible toggle button to control the panel.


The Search Engine options let you configure your search box option. You can customize placeholder text and set the position of your search box. The Search box will appear when at least one field is searchable.

How to make a field searchable

From the Canvas

  • On the Datatable header, click on the arrow next to the column name you want to make editable.

  • Click on "Allow Search" to make that field searchable.

From the Properties panel

  • Go to the Data Mappings section

  • Click on the column of the field you want to make searchable

  • Scroll down and toggle the Searchable attribute.

Set fields as searchable without displaying them.

This feature allows users to perform search queries on specific fields in the underlying dataset, even if they are not visible in the table view. It makes it easier to dig into large datasets and retrieve precise information quickly.

  • Open the Component Builder

  • Scroll down the properties list to the end

  • In the Search Fields attribute, select the fields that must be searchable without displaying them in the Data Table.

Set a default search value

The 'defaultSearchValue' attribute lets you set a predefined search term in your tables. When the data table loads, it automatically searches using this specified term.


Interactions

The Interactions panel lets you customize how your Data Table reacts to user input. Here's what different interaction types allow you to do:

  • Header Action: Define actions when users click the Data Table's header buttons. This could include sorting columns, filtering data, or triggering custom processes within your application.

  • Row Action: Control what happens when users click the action buttons (if you've configured any) within individual rows of the Data Table. These actions might include opening a record for editing, deleting a row, or initiating related flows.

  • Save: Determine the actions taken when a user clicks the "Save" button after editing a field within the Data Table. This typically involves updating the underlying data source and providing feedback to the user.

  • Cancel: Specify what should happen when a user clicks the "Cancel" button while editing a field. This often involves discarding the changes or prompting the user to confirm cancellation.

Complete List of Actions: This page provides a full list of the actions you can add and how to configure them.


Learn More

Tips and Tricks
Unique Features of the Avonni Data Table Component.

🔹 Inline Editing: Modify data directly within the table without navigating away.

🔹 Display Lookup Fields: These are rendered as clickable links directing to the corresponding records.

🔹 Advanced Data Formatting: Customize data presentation with formats like QR Code, Progress Bar, and Badge.

🔹 Sortable Data: Organize your data effortlessly with a simple click on column headers.

🔹 Custom Column Width: Adjust the width of your columns to fit your content better.

🔹 Row Actions: Execute predefined functions directly from each data row.

🔹 Pagination: Navigate through data pages for enhanced viewing.

🔹 Infinite Scrolling: Scroll endlessly and watch more data load dynamically.

🔹 Data Filtering: Search and view only what you need by applying data filters.

🔹 Update Records Interaction: Engage with and modify records seamlessly.

🔹 Copy Records Interaction: Duplicate records effortlessly, straight from the table.

🔹 Integrated Header: A unified header that makes your table look polished.

🔹 Selective Searchability: Set specific fields as searchable, even if they're not displayed.

🔹 Query Data Source: Visually create dynamic, real-time, detailed queries with no code.

Data Table Component Builder

The Component Builder lets you easily adjust the Data Table, such as properties, interactions, and styling settings. This customization means you can modify your Data Table look and its operation, creating a practical and visually clear way to manage data.

  1. Template Gallery: Access a variety of preconfigured data table templates, designed for easy deployment and optimized user experience.

  2. Undo/Redo: Effortlessly correct mistakes or revisit changes

  3. Full Height: Optimize visibility with 'Full Height' setting, ensuring Data Table utilizes entire screen height and activates infinite scrolling.

  4. Pull to Boundary: Optimize space with 'Pull to Boundary'; extends Data Table to every edge, reducing unwanted white space.

  5. All Columns Settings: Activate 'All Column Settings' for universal configuration, superseding individual column preferences.

  6. Copy/Paste: Duplicate and transfer settings within the Data Table component to another Data Table on your screen flow.

  7. Properties Tab: Comprehensive customization of all Data Table component settings and properties.

  8. Interactions Tab: Configure and manage actionable interactions.

  9. Style Tab: Customize the appearance and aesthetics of your Data Table, enhancing visual appeal and usability.

  10. Fields selection: Choose and drag fields onto the canvas, optimizing use with Variable or Query Data Source settings.

  11. Data Table Preview: Quickly visualize and modify with 'Data Table Preview': drag fields and fine-tune key settings effortlessly.

Last updated