2017-03-17 65 views
1

我有一個BrowserGallery,看起來像這樣: enter image description here如何將所有來自BrowserGallery的TextInput值放入PowerApps的集合中?

我無法弄清楚如何創建一個收集所有來自所有的TextInput中的值和所有的親戚從標題單擊按鈕(粗體文字截圖)我需要這樣一個集合: enter image description here

等..

我現在是這樣的:

ClearCollect(ThisBudget; {item: BrowseGallery1.AllItems.item; budget: BrowseGallery1.AllItems.TextInput1}) 

但不給我我想要的結果..

回答

0

試試這個:

ClearCollect(mycollection,ForAll(Gallery1.AllItems,{item:Heading,budget:Body})) 

更換標題和正文與您的畫廊控制。

+0

如何修補此集合以將預算值更改爲相應的項目? – FabioEnne

+0

[函數ForAll](https://powerapps.microsoft.com/en-us/tutorials/function-forall/)也可用於修補項目 - 請查看[文檔](https:/ /powerapps.microsoft.com/en-us/tutorials/function-forall/)以獲取更多詳細信息。 – carlosfigueira

相關問題