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.
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. |
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." |
|
This practice describes how to use scripts to add and delete table data. |
|
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. |
|
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. |
|
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. |
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 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. |
|
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. |
|
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. |
|
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. |
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. |
|
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. |
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. |
|
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. |
|
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. |
|
This practice describes how to use a custom connector to integrate third-party databases into Huawei Cloud Astro Zero. |
|
Huawei Cloud Astro Zero provides a default login page for each application. This practice explains how to customize a login page. |
|
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. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot