Connect WPS Multidimensional Spreadsheet to Database and Build a Visual Dashboard

WPS multidimensional spreadsheets now support database connections (free for a limited time). You can push data collected by CaoLiao into WPS multidimensional spreadsheets and freely use that data to build the dashboards you need.

Data from different forms can all be linked into the same WPS multidimensional spreadsheet to build a unified dashboard.

Example Dashboard​

By connecting CaoLiao's official database to WPS multidimensional spreadsheets, you can quickly view equipment inspection status — including inspection counts, device states, and monthly inspection summaries.

Example dashboard:
WPS Cloud Docs — Fire Extinguisher Inspection Dashboard

file

Before You Begin​

Data API Overview​

CaoLiao provides an official database feature. QR code data, form data, status and plan data on the CaoLiao platform are synced in real time to the official database. External tools can connect to this database to pull data and build the dashboards you want. View official database documentation

API data is only pushed based on the features you have configured in CaoLiao. For example: if you've set up the status feature, code_state (QR code status data) will be pushed; if you've created and started a plan, code_task_log (plan execution data) will be pushed. Data is not pushed for features that haven't been set up or have no data.

We recommend waiting until your QR codes have data before building visual dashboards.

WPS Multidimensional Spreadsheet​

WPS multidimensional tables support syncing data from WPS spreadsheet components, smart forms, and third-party apps (such as databases, sales systems, etc.).
WPS Docs Multidimensional Table — Official Help Documentation for "Import/Sync Data"

Tutorial​

Step 1: Enable CaoLiao's Official Database​

  1. Log in to the CaoLiao workbench, click [Data Management] → [Data API] on the left, and select [official database] to apply: Go to official database file

  2. After activation, you will receive connection info similar to the following (use your actual credentials):

    • Type: MySQL 5.7
    • Host: rm-bp1m4fy8d66u3c6xmbo.mysql.rds.aliyuncs.com
    • Port: 3306
    • Database name: cli_13268724 (example)
    • Username: cli_13268724 (example)
    • Password: ekiji17jd02jk9md (example)

Step 2: Connect WPS Multidimensional Spreadsheet to the Database​

  1. Open WPS and create a new multidimensional table
    In WPS, select [New] → [Multidimensional Table]. file file

  2. Import/sync data, select MySQL
    file

  3. Enter the CaoLiao official database credentials and click Confirm
    In the connection wizard, enter the database host, port, database name, username, and password from the previous step to establish the connection. file

Step 3: Add Data Tables​

Select the data tables you need and add them. Once added, data from the CaoLiao platform will be displayed. CaoLiao uses a standardized naming convention for its tables — review the table descriptions before proceeding. View data table documentation

file

Common Table Descriptions​

  1. base_codeinfo

    • QR code basic info table.
    • Automatically pushed when your account has QR code data. Includes basic info for dynamic QR codes and bulk sub-codes. file file
  2. template_codeinfo_XXX

    • Bulk template sub-code info table.
    • Naming convention: template_codeinfo_DXX, where DXX is the bulk template number.
    • For example: if the bulk template number in the workbench is M4, the corresponding table name is template_codeinfo_D4.
    • This table contains the variable content for each sub-code. file file file
  3. code_state

    • QR code status table.
    • Pushed when a QR code has associated statuses. file file
  4. code_task_log

    • Plan execution log table.
    • Pushed when a plan has been created and started in your account.
    • After the database is activated, only plan cycle data for cycles that start executing after activation is pushed. Historical cycles and the cycle currently in progress at activation are not pushed. file file
  5. table_dXX

    • Form data detail table.
    • Pushed when form data is submitted in your account.
    • Naming convention: starts with table_, followed by dXX where XX is the form's unique number. For example, table_d45 corresponds to the form with number 45. file file file

Step 4: Create Charts​

WPS multidimensional tables support chart creation. Click [New] → [Dashboard], then use bar charts, line charts, column charts, pie charts, and other visualization types to complete your dashboard. file file file

Here are some common statistical examples:

Example 1: Count Total Fire Extinguishers​

  1. Select the [Stat Number] component;
  2. Select template_codeinfo_XXX (bulk template sub-code info table);
  3. Count the total number of QR codes under the current template — this gives you the total fire extinguisher count. file

Example 2: Count Inspection Runs​

  1. Select the [Stat Number] component;
  2. Select table_dXX (form data detail table) and count the total number of submitted records;
  3. Each form submission represents one completed inspection — the total record count equals the total number of inspections. file
  • Line chart:
    Use the table_dXX form data detail table, grouped by "Record Time" (by day/month/year), to view inspection trends over time. file

  • Bar chart:
    Use the table_dXX form data detail table, grouped by "Recorder", to view inspection counts per inspector. file

Example 3: Normal vs. Abnormal Status Distribution​

  1. In the template_codeinfo_XXX table, [Add field] → [One-way link] → code_state (QR code status table) file

  2. Use auto-match for the relationship — both tables contain code_id, so after linking you can retrieve the status info for each sub-code. file

  3. Add a pie chart and select the status field you want to analyze in the grouping configuration. file

  4. Click a slice of the pie chart to see detailed records. file

Example 4: Plan Completion Rate​

  1. In code_task_log (plan execution log), add a new field → [One-way link] → template_codeinfo_XXX file

  2. Use auto-match; the code_id field is used for the relationship. file

  3. Add a pie chart, filter by date and status to see plan completion for a specified period. file file

  4. Track monthly missed inspections: use a line chart and filter by statuses such as "Incomplete", "Expired Incomplete", "Completed Late" to see missed inspection trends by month. file file

Summary​

With the steps above, you can sync multi-source data from CaoLiao (QR codes, forms, statuses, plans, and more) into WPS multidimensional spreadsheets in real time, and flexibly build visual charts and dashboards to meet a wide range of business analytics needs.
For more help, see:

Tip: Since data pushed to the CaoLiao database depends on your actual usage, we recommend waiting until your QR codes have generated data before building visual dashboards — this ensures the information you see is complete and up to date.