我在 PowerApp 中有一个图库,但在我的标签中,每次预测文本或数字时都会出现错误。 看起来像这样:
ThisItem.Name
我画廊中的物品来自收藏,我的收藏看起来像这样:
Collect(colOdA; {Name: tbl_OdA.Title; Adress: tbl_OdA.Adress; National: tbl_OdA.National; ...})
我已经尝试以这种形式写下来:
Text(ThisItem.Name)
Value(ThisItem.Name)
ThisItem.Name.Text
ThisItem.Name.Value
假设 tbl_OdA 是一张表(比如集合或者数据源),那么 tbl_OdA.Title, tbl_OdA.Adress, ... 的类型也是表(单列 Title, Adress, ... 分别为).
如果您想将 tbl_OdA 中的特定列收集到集合 colOdA 中,则可以使用以下方法之一:
Collect(colOdA, ShowColumns(tbl_OdA, Title, Adress, National, ...))
或者如果您想更明确地了解架构,或更新某些值,您可以使用 ForAll 函数:
Collect(
colOdA,
ForAll(
tbl_OdA,
{
Title: ThisRecord.Title,
Adress: ThisRecord.Adress,
National: ThisRecord.National,
...
AnotherField: <expression that doesn't need to come from tbl_Od>
}
)
)