Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Setting URL Parameter Interaction

Updated on 2023-12-20 GMT+08:00

After setting the hash parameter, you can view the data specified by the hash parameter from the dynamic data sources (API data source or database data source).

Configuring URL Parameter Interaction

The following uses the API data source and database data source as an example to describe how to implement URL interaction.

  1. Create a screen and add a component to the canvas. On the Data panel, set Data Source Type to the dynamic data source, such as API or Database. Configure the data source, and add a URL interaction variable in format of ${Interaction variable name}.

    You can add URL interaction variables based on service requirements. The following are some simple examples for reference:
    • For API data sources, use URL interaction variables. The following are URL configuration examples:
      • Example 1: Use a URL interaction variable in the URL of the API data source:
        https://api.test?var=${var}
        Figure 1 URL interaction variable
      • Example 2: Use multiple URL interaction variables in the URL of the API data source and use ampersands (&) to separate variables.
        https://api.test?var=${var}&var2=${var2}
    • For database data sources, use URL interaction variables in SQL statements. The following are configuration examples:
      • Example 1: Use multiple URL interaction variables in SQL statements.
        select * from ${var} where var2=${var2};
        Figure 2 URL interaction variable: SQL
      • Example 2: Use multiple URL interaction variables in SQL statements.
        select ${var} from ${var2};

  2. After the link is configured, click in the upper right corner of the page to preview the screen. Add an interaction variable at the end of the URL of the screen preview page and access the page again to view the drilldown effect of the link. If drilldown effect is correctly displayed, go to the next step.

    For example, the URL of the screen preview page is as follows:

    Add the following interaction variables to the end of the URL of the screen preview page:

    • Example 1:
    • Example 2: If a URL contains multiple hash parameters, use ampersands (&) to separate them.

  3. Publish the screen and obtain the screen URL. For details, see Publishing Screens.

    For example, the URL of the screen is as follows:

  4. In the URL obtained in the previous step, set the default value of the variable by setting the hash parameter. The parameter name is the same as the URL interaction variable name set in the data source.

    Example 1:

    Example 2: If a URL contains multiple hash parameters, use ampersands (&) to separate them. For example, the following example sets the interaction variables var and var2 at the same time:

  5. In the browser or application code, use the URL of the screen to which the hash parameter is added to access the screen data specified by the parameter.

    Use the URL in the preceding example to access the screen. When the page is opened, the value of the interaction variable var of the screen component is set to value, and the value of the interaction variable var2 is set to value2.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback