Use Axure RP prototype design practices 04 to understand global variables and axurerp
A variable is a variable number and can be considered as a data container. A variable has two operations: read and write. Axure's global variable refers to the ability to read and write this variable at any time.
Click Global Variables under Project in the toolbar. You can set Global Variables here.
You can see that there is a global variable by default. You can also create new variables with default values.
Now you can customize a global variable.
Drag a Rectangle to the page, set the Rectangle style, and set it to rack in the Shape Name.
Drag a Rectangle, set it to a circle, and fill the color with it as a button.
Use Cases for Rectangle of the circle:
Preview. Click the blue button to display the text, as shown below:
The above is the reading of the global variable value. How can I change the global variable?
Copy the page content to another page. Rewrite the OnClick event as follows:
Preview and click the blue button. The content displayed this time is the content we set.
The above is to reset and display the value of the variable. Can I change the value of the variable through the function?
Copy the page content to another page. The OnClick event of the rewrite button is as follows:
Above, set the variable value through function compute.
Preview. Click the blue button, as shown below:
Summary: global variables can be read at any time, and the value of global variables can be changed through direct assignment or function assignment.
References: http://www.iaxure.com/