【发布时间】:2022-06-21 11:49:46
【问题描述】:
我正在尝试在我使用垂直库的电源应用程序中创建动态输入组件,并且在该垂直库中我有一个水平容器来正确对齐输入,然后我在它下面有几个输入。我正在尝试使用“ForAll”循环从库中获取输入值,但我只获取最后一个项目的值。
下面是画廊的结构
DynamicComponentsGallery
---- HorizontalContainer
---- ---- Input1Text
---- ---- Input2Date
---- ---- Input3Text
---- ---- AddNewElementToGalleryButton
假设我的画廊中有 2 行,并且我插入了这样的记录
Test1Rec1 20/08/2022 Test1Rec2
Test2Rec1 12/12/2022 Test2Rec2
每次我尝试使用“ForAll”获取记录时
ForAll(DynamicComponentsGallery.AllItems, {
input1 : Input1Text.Text,
input2 : Text(Input2Date.SelectedDate, DateTimeFormat.ShortDate),
input3 : Input3Text.Text,
});
我总是得到 2 条记录
Test2Rec1 12/12/2022 Test2Rec2
Test2Rec1 12/12/2022 Test2Rec2
任何数量的记录都一样。
【问题讨论】:
标签: powerapps powerapps-canvas powerapps-formula powerapps-collection