官术网_书友最值得收藏!

Action

Actions are key within your app as you will need to build elements of interactivity to allow your users to do what they need to do:

Figure 1.25: The options that are available on the Action menu

The primary action that your users will carry out within an app is navigating; therefore, the first option on the menu is Navigate.

Note that this control will only be enabled if you have a control selected on your canvas.

The key items that are located on this menu are as follows:

  • Navigate: There are two key pieces of information that you need to provide for navigation: a target and a transition. Transitions are the effects that are applied to the screen change; for example, they could fade from the first screen to the next.
  • Collect: This allows you to populate a collection without having to write the formula manually. We will investigate this action in more detail in Chapter 9, Using GPS in PowerApps.
  • Remove: This is the counteraction to Collect: you place the formula in order to remove content from a collection. Again, we will investigate this action in more detail in Chapter 9Using GPS in PowerApps.
  • OnVisible: This part of the Action menu will change depending on the object that you have selected on the canvas. This happens because the actions menu will display the common events for that control. Events occur when a user does something; for example, if a user presses a button, it will fire an OnSelect event.

Screens will have an OnVisible action, which means that, when they are created and displayed, you can execute a formula; for example, when a screen loads, it will set a number of text fields so that they have some default content. Other controls, such as the text box, will have an OnSelect or OnChange action button on the menu which, when clicked, will open the formula bar for the correct event.

  • Flows: The final part of this menu is Flows, which will allow us to build your business process or workflows using Microsoft Power Automate. This can be used to reference a Flow that already exists or to create a new Flow for this PowerApp. We will investigate Flows in Chapter 17, Exploring Environments within Our Tenancy

Now that we have looked at the menu and learned how we can add new items to our PowerApp, let's look at the formula bar, which is where we can tell the app what to do.

主站蜘蛛池模板: 潼关县| 保康县| 定陶县| 巫溪县| 板桥市| 吉林市| 隆德县| 丰镇市| 永新县| 温宿县| 廊坊市| 唐山市| 商都县| 方山县| 九龙县| 唐河县| 增城市| 隆尧县| 定襄县| 竹山县| 玛纳斯县| 扬州市| 满城县| 太湖县| 通城县| 博兴县| 阳城县| 板桥市| 黎平县| 来安县| 长武县| 徐闻县| 南平市| 克山县| 姚安县| 静安区| 张家川| 南岸区| 象山县| 固原市| 会昌县|