Help Center/ Huawei Cloud Astro Zero/ Best Practices/ Huawei Cloud Astro Zero Best Practices
Updated on 2025-08-27 GMT+08:00

Huawei Cloud Astro Zero Best Practices

This section outlines the best practices for common scenarios. Each one includes a clear description and easy-to-follow steps.

Table 1 Huawei Cloud Astro Zero best practices

Best Practice

Description

Associating Customer Information with Order Data and Synchronizing the Modification

In certain order systems, customer information and order data need to be associated to process orders and update inventory. This practice explains how to associate these two objects to keep their data in sync.

Adding, Deleting, and Modifying Object Data in Frontend Tables

This practice describes how to add, delete, and modify object data on a frontend page by adding a toolbar.

Limiting Form Submissions with Scripts

When creating frontend pages, you can use scripts to limit form submissions. This improves user experience and data security. Set a delay time in the script. If a form is submitted before the delay, it shows "Submission failed: Not PortalUser!" If submitted after the delay, it shows "Submission failed: Submitted too late."

Adding and Deleting Table Data with Scripts

This practice describes how to use scripts to add and delete table data.

Using the File Template Function to Generate Contracts

Huawei Cloud Astro Zero enables quick creation of Word, Excel, Email, and SMS templates, enhancing document efficiency and standardization.

This practice uses a Word template as examples. You can create print templates as required.

Using Email Templates to Send Email Notifications

Huawei Cloud Astro Zero enables quick creation of Word, Excel, Email, and SMS templates, enhancing document efficiency and standardization.

This practice uses an Email template as an example. Developers can set the email format and framework in advance to avoid repetitive work.

Creating a Business Trip Approval Workflow Using Templates

Huawei Cloud Astro Zero has developed its own Business Process Management (BPM), following the BPMN 2.0 industry standards. This practice walks you through creating a business trip approval workflow to familiarize you with Huawei Cloud Astro Zero's BPMs.

Implementing the Priority Approval Function with User Tasks in BPMs

This practice explains how to configure approval and termination actions for a user task in a BPM to enable priority approval during countersigning.

Adding Links to Data in Standard Page Tables

On standard pages, adding hyperlinks to data in tables enhances user experience and interaction. This practice explains how to move the cursor to the "WEB A" entry in the "webName" column of the table. The corresponding link will appear in the lower left corner of the page, and clicking it will take you to the target page.

Adding Computing Capabilities, Such as Summation, to Standard Page Tables

On standard pages, tables can use computing functions such as sum and product to boost efficiency. This practice explains how to set the value in the "Cost" column to "Number of Products × Price + Other Costs".

Displaying Images in Standard Page Tables

Displaying images in a table makes information more intuitive, vivid, and easier to understand. This practice explains how to show images in a table by customizing column display types on a standard page.

Reusing a Submitted Form Page on an Approval Page

You can create pages for submitting and approving data in a table for employee trips, leave requests, or goods movement. You can also approve expense requests. If the pages have similar content, you can use the same functions on one page. This saves time and makes things easier.

Customizing Standard Page Widget Packages

You can customize standard page widgets according to this practice. This lets you add features to the platform and build applications faster and simpler.

This practice shows you how to customize using the imgButton widget as an example.

Customizing Widget Properties on Pages

This practice explains how to customize text, checkbox, and select properties for the widget_demo_property widget.

Configuring Chinese and English Language Properties for Widgets

You can configure the multi-language property for a widget to ensure it displays correctly in different languages. To do this, you need to modify the internationalization resource file (i18n). This practice explains how to set up Chinese and English for the widget_demo_i18n.

Creating Multi-Device Compatible Advanced Pages

Huawei Cloud Astro Zero provides two terminal views (computer and mobile), responsive layouts, and stretch functions to help advanced pages adapt to different device sizes.

This practice shows how to develop an item list widget that meets these requirements.

Referencing Third-Party Libraries to Develop Advanced Pages

Libraries are third-party dependencies that enable advanced page widgets to run. Without them, these widgets cannot function properly. This practice explains how to integrate the third-party library MintUI to simplify widget development and enhance their capabilities.

Implementing Image Display and URL Redirection with the Banner Widget on Advanced Pages

The banner widget on advanced pages automatically switches between multiple images and supports adding hyperlinks to individual images. This practice explains how to add a hyperlink to an image in the banner widget, allowing users to click the image and navigate to the help document of Huawei Cloud Astro Zero.

Using Petal Charts to Display Order Data on Advanced Pages

Advanced pages support dynamic data, which is generated in real-time through API calls from scripts, flows, and objects. This practice explains how to display order data in a rose pie chart on an advanced page.

Uploading and Recognizing ID Card Images with a Connector

Huawei Cloud Astro Zero encapsulates various connectors to integrate with external services, enabling their use within applications. This practice explains how to use the OCR connector to recognize and store ID card information.

Uploading Files With Connectors

Huawei Cloud Astro Zero encapsulates various connectors to integrate with external services, enabling their use within applications. This practice shows how to use the OBS connector to save files from a frontend page to an OBS bucket.

Connecting to Third-Party Databases with a Connector

This practice describes how to use a custom connector to integrate third-party databases into Huawei Cloud Astro Zero.

Developing a Login Page for Portal Users

Huawei Cloud Astro Zero provides a default login page for each application. This practice explains how to customize a login page.

Using the AI Assistant Widget to Build a Knowledge Base

If you have a large number of documents that are hard to use and query efficiency is low, you can use the AI assistant widget to call the foundation model API to get answers. Additionally, RAG technology works with the knowledge base to provide a more intelligent and natural dialog experience, improving the accuracy and relevance of information retrieval.

Calling the Foundation Model Connector to Talk with the AI Assistant

When you build a standard page, you can connect to an external foundation model API via the AI assistant widget. First, set up the foundation model connection details in the connector, then choose that connector in the AI assistant widget.

This practice shows you how to configure the connector and use it in the widget for smart chat functionality.