LogoLogo
  • Adapptio User Documentation
  • Getting Started
    • Quickstart
    • Architecture Overview
      • Views
      • Actions
      • Integrations
      • API Endpoints
      • Routes
      • Events
      • Assets
    • Editor
      • Main Menu
        • Create New Resources
        • Manage the Application
        • Monitoring Errors
      • Main Toolbar
        • Deploying the Application
        • Opening the Application
        • Preview Mode
        • Error Monitor
      • Components Panel
        • Components
        • Inspector
        • View Settings
      • Outline Panel
        • Data Variables
          • State Variable
          • Data From Action
      • Data Explorer
      • Console
    • Playground
  • Working with Adapptio
    • Best Practices
    • Tutorials
      • 1. Hello World
      • 2. Visualize Data from API
      • 3. Advanced Layout Application
      • 4. Application with In-Memory Database
    • How To
      • Custom Auth
      • Action Logic
        • Transform Node
      • UI Logic
        • Logout
        • Conditional Render
        • One Of
      • Data & Dynamic values
        • Custom Variable
        • Data from Action
        • Dynamic Value
        • Change Value from Event
        • Loading Data from Action to Form
        • Sending Data to Action from a Form
        • Server-side Dropdown Autocompletion
      • Visual
        • Styling Icon Button
      • Layouts
        • Centered Box
        • Header & Sidebar Layout
        • Grid Form Layout
        • Stretched Layout in Row
    • Components
      • Composed Chart
      • Advanced Table
      • Custom Component
    • Examples of Applications
      • SaaS Platforms
      • Customers Portals
      • Information Systems
      • Internal Tools
        • Color Picker
      • IoT Applications
      • Smart Portals
      • Analytics & Calculators
      • Statistics & Monitoring Panels
      • API Data Visualization
      • Simple Games
  • DEPLOYMENT
    • Cloud Hosted
    • Self Hosted
  • REFERENCE GUIDE
    • Components List
      • Application Header
      • Box
      • Container
      • Grid
      • Sidebar Layout
      • View
      • Text Input
      • Number
      • Checkbox
      • Option
      • Date and Time
      • File Upload
    • Properties
      • ACCEPT
      • CUSTOM PLACEHOLDER
      • DESCRIPTION
      • ENABLED
      • FONT SIZE
      • FOREGROUND COLOR
      • FORM DATA KEY
      • HEADERS
      • ICON
      • ID
      • LABEL
      • METHOD
      • MULTIPLE
      • MAX FILE SIZE
      • REQUEST TIMEOUT
      • REQUIRED
      • READ-ONLY
      • SIZE
      • TEXT ALIGNMENT
      • TEXT STYLE
      • URL
      • UPLOAD IMMEDIATELY
      • VALIDATE
      • VALUE
    • Functions
      • Array
      • Date
      • Generators
      • JSON
      • Logic
      • Math
      • Object
      • String
      • Types
      • Util
  • Support
    • Get in touch
    • Release Notes
  • Legal
    • Terms and Conditions
    • GDPR
Powered by GitBook
On this page
  • The Goal
  • The Description
  • Knowledge You Will Get
  • The Project Structure
  • 1. Create an Action Returning Data
  • 2. Add and Bind the MainView Datasource
  • 3. Prepare a Basic Layout with an Advanced Table
  • 4. Bind users Datasource with the Advanced Table
  • The Conclusion

Was this helpful?

  1. Working with Adapptio
  2. Components

Advanced Table

PreviousComposed ChartNextCustom Component

Last updated 2 years ago

Was this helpful?

The Goal

Prepare a simple Application showing users' data in an Advanced Table.

The Description

Any loaded Datasource can be bound with a content of an Advanced Table. In our case, we will bind an Action, returning the user's data.

Knowledge You Will Get

  1. How to bind Datasource with an Advanced Table.

The Project Structure

1. Create an Action Returning Data

First, prepare an Action returning the user's data in the array.

  1. Create a new Action, name it GetUsersData.

  2. On Start -> Add and wire together Output and set up its return value as a Æ’x function.

[
  {name: "John Doe", age: 32},
  {name: "Jane Doe", age: 29}
]

Now you can test your Action if the proper Datasource is returned.

2. Add and Bind the MainView Datasource

Adding Data from Action will bind the user's list with the MainView.

  1. Click on Add Data from Action in the Outline Panel, name it users, and associate Action Name -> GetUsersData

3. Prepare a Basic Layout with an Advanced Table

Let's prepare a basic Layout with an Advanced Table.

  1. Place a new Container into the MainView Canvas, name it cntMain, and set up its Item Flex -> Stretch; Padding -> Wide; Spacing -> Medium

  2. If you like, place into cntMain a Label, name it lblUsers and configure as follows:

    1. Value -> "Users Advanced Table"; Text Style -> Bold; Font Size -> XLARGE; Foreground -> RED; Icon Name -> "mdi/account-supervisor"; Icon Size -> Medium

  3. Finally, put into cntMain a new Advanced Table, set up its ID -> tblUsers and add two columns:

    1. Column #1 -> Add one Column Titles -> Name

    2. Column #2 -> Add one Column Titles -> Age

4. Bind users Datasource with the Advanced Table

Making your tblUsers Table life means that you have to bind Items property with users Datasource and place in components representing data content.

  1. Edit tblUsers -> Items -> users.data bind as a Æ’x function.

  2. Into the Table Canvas columns, place two Text components and bind them dynamically:

    1. Column Name -> add Text; ID -> txtName; Value -> item.name

    2. Column Age -> add Text; ID -> txtAge; Value -> item.age

Keep in mind that you can always follow different Datastructures by selected components in the Data Explorer. You can see items under tblUsers; meanwhile, item on the column chosen component.

The Conclusion

The Advanced Tables are effectively used with many different components, like icons or others. Try to add more columns and upgrade return values by the Action.

Follow up on our Advanced Table tutorial

https://youtu.be/GJjuOJ6rOrw
Advanced Table Application