Order Workflow Progress Report

Use the external data analysis tool Baidu Sugar to connect to the CaoLiao official database and create custom visualization reports.

Example Result​

Quickly query the latest progress of each order, check whether any are overdue, and focus on orders that are about to expire. View report

file

Before You Begin​

CaoLiao provides an official database feature. QR code data, form data, status and plan data, and more from the platform are synced in real time to a dedicated Alibaba Cloud database. By connecting an external BI (data analytics) tool to this database, you can create fully customized reports of any type.

Because this involves basic database (SQL) operations and BI tool operations, there is a learning curve. Please ensure you have a basic working knowledge of both before proceeding.

Enable the Official Database​

After logging in to CaoLiao, go to Data Management – Data API in the left sidebar and select official database (Go to use).

file

Sample database credentials after a successful application:

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)

Build Reports / Dashboards with a BI Tool​

Baidu Sugar is recommended — the example above was also created with Baidu Sugar. Reasons: affordable (Basic Edition: ¥480/year; also a ¥60/year introductory dashboard version), real-time data updates, and a 1-month trial available. Users can register and learn on the official Sugar website.

Baidu Sugar website: https://cloud.baidu.com/product/sugar.html

Baidu Sugar documentation: https://cloud.baidu.com/doc/SUGAR/s/ek6z5wq34

Basic Workflow (Using Order Progress Analysis as an Example)​

First, define what you want to analyze, then identify the corresponding data tables. For example, to understand the latest progress/status of each order, you need order information and order status data; to understand dispatch details and completion details, you need dispatch records per process and completion records per process.

Prepare Data​

Connect to the Database​

Select type: MySQL 5.X, enter the connection information from the CaoLiao official database, and add it.

file

Create a Data Model​

Create a data model and drag in the required data tables from the database. For analyzing the production status of each order, we need the code_state table, joined with template_codeinfo_90996580 for order details and base_auth_msg for submitter information. View all data descriptions and common data models

Select the data model — drag in the code_state data table View data description

file

file

Drag in the second data table template_codeinfo_90996580 View data description

Set the join type to inner join with the condition on code_id (since we only need the status for specific order data).

file

Drag in the third data table base_auth_msg Set the join type to inner join with the condition on auth_id (submitter ID).

file

Clean Up the Data​

Complete the following tasks: rename fields, filter out unwanted data (deleted codes), and add calculated fields (e.g., whether overdue) — the last step is optional.

file

Add a data filter (required: first remove deleted codes/records)

Select the status of base_codeinfo and set it to Active — we do not want deleted codes. (In the synced database, deleted codes and form records are all included — always filter them out when using the data.)

file

Build the Report​

Sugar supports both reports and dashboards. The following introduces how to create a report — the process for dashboards is the same.

The difference: a dashboard is a single-screen display where each chart can be finely edited, ideal for large screen presentations; a report is scrollable with more content, better suited for internal sharing and analysis.

Create a Report​

file

Create Charts​

Select Chart/Table — here we choose a table to show the production progress status of each order.

file

Steps:

Select data model -> Drag in the information fields to display

file

Then add another chart — here we add a bar chart to show the distribution of completed orders by process.

file

Steps:

Select data model -> Drag production process to X-axis -> Drag record count to Y-axis

file

Report Beautification and Filter Setup​

Add a filter component:

Filter components help you focus on specific data — they are commonly used in reports.

file

Add a data model and select the data field.

file

Check the associated charts — the system will automatically link the charts that reference this field.

file

Report settings:

You can insert more charts and arrange their layout.

file

Share and Use​

Set sharing (publish) to Public, then copy the link to share.

file

Learning and Discussion​

During actual use, you may encounter various issues. You can visit the CaoLiao Community to view related questions or ask your own, and learn from data reporting experts. CaoLiao's official advisors and technical team also check in periodically to respond.