apps
latest
false
- 入门指南
- 演示应用程序
- 如何
- 通知
- 使用 VB 表达式
- 概述
- 限制
- 表达式编辑器
- Using the Fetch functions
- 将旧版应用程序迁移到 VB 表达式
- 旧版表达式与 VB 表达式的比较
- 实用的 VB 函数
- 自定义 VB 函数
- Under the hood
- 设计应用程序
- 使用 Autopilot 设计应用程序
- 事件和规则
- 在应用程序中利用 RPA
- 在应用程序中利用实体
- 在应用程序中利用队列
- 在应用程序中利用媒体文件
- 在应用程序中利用操作
- 在应用程序中利用 Connections
- Studio Web 中的网页应用程序
- 应用程序生命周期管理 (ALM)
- UiPath™ 第一方应用程序
- 基本故障排除指南
Using the Fetch functions
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
Apps 用户指南
Last updated 2024年11月15日
Using the Fetch functions
The following are two examples of how to apply the Fetch and FetchOne functions in practice.
Use the Fetch function to retrieve all entity records from a Data Service entity, in conjunction with a tabular control such as Edit Grid.
- Add an entity to your app:
- Select Add any.
- Select Entity.
- Select a tenant.
- Select the entity you want to add to your app, then Add.
- 向应用程序添加“编辑网格”控件:
- 选择“添加控件”。
- Select Display.
- Select Edit Grid, and drag it to an area in your app.
- Bind the Edit Grid control to your entity:
- In the Properties panel, on the General tab, select the Additional resources button adjacent to Data source.
- Select Query builder.
- Select the entity you want to use, then Save. The system automatically prepares a
Fetch
VB expression.
- Preview or run your app.
When you preview your app, the Edit Grid control is populated with all of the records from your entity.
Use the FetchOne function to retrieve a single record from a Data Service entity and use it in display controls, such as the Label control, in your apps.
- Add an entity to your app:
- Select Add any.
- Select Entity.
- Select a tenant.
- Select the entity you want to add to your app, then Add.
- Add a Label to your app:
- 选择“添加控件”。
- Select Display.
- Select Label, and drag it to an area in your app.
- Add a variable to your app:
- Select Add any.
- Select Variable.
- Give your variable a name.
- Under Type, select your entity, then Save.
- Add a rule to the main page of your app:
- Select the main page of your app.
- In the Properties panel, select Events.
- Under Loaded, select Create rule.
- Bind the rule to your variable:
- Select Set value.
- Under Item to set, select the variable you added in step 3.
- Select Value, then Query builder.
- Select your entity, then Save. The system automatically prepares a
Fetch
VB expression. - Under Value, select the expression, then replace
Fetch
withFetchOne
.
- Bind the Label to the variable:
- Preview or run your app.
When you run the app, the Label is automatically populated with a single record from the entity field you specified.