cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Pass variables from Gallery to next screen

Hi,

Sorry i am new to power apps and need some guidance.

I have a Add Button to create a new row of data from List Of Software Gallery  

Add Button Code: Collect(List Of Software, Count Rows (List Of Software))
The Gallery consists of text fields and checkbox. Whenever i clicked on the Add Button, a new row in Gallery will be added.

Now the question is, how do i pass the text field data and checkbox (true,false) data to different screen?


Thanks! Appreciate for the assistance

4 REPLIES 4
Highlighted
Super User II
Super User II

Hi @Newbie2020 

 

Do you want to pass the text field date and checkbox value of the newest row that gets added when you click on the Add Button or that of another row to a different screen? Also, how are you navigating to another screen? Does the user have to click on a row within the gallery or are you expecting the user to be taken to another screen when they click on the Add Button? 

 

Let me know and we can solve for it. 

 

---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

 

Thanks!

Hardit Bhatia

Microsoft Business Applications MVP

Microsoft Certified Trainer MCT

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

Highlighted

Thank you for your reply. Yes, i would like to pass those info to next screen when the Next Button is clicked. Kindly refer to the attachement

Highlighted

Hi @Newbie2020 ,

 

Use a collection to achieve your goal. Insert into OnSelect property of the button:

ClearCollect(myData,Gallery.AllItems)

and in myData collection you will have all infos stored in gallery including the options selected in checkboxes control.

Give it a try !

 

Hope it helps !

Highlighted

Hi @gabibalaban ,

Thank you for your reply.


The "+" sign is my button to add new row in collection.  Is there a way to set " Only 3 rows can be added"?
Coding:     Collect(ListOfSoftware,CountRows(ListOfSoftware))

 

Once i have the data, how do i add them to one drive excel file? i am only able to add the first row. Software Record is the table in my onedrive file.

Patch(
SoftwareRecord,
{
MachineInfo: TextInput3.Text,
SerialNoInfo: TextInput3_1.Text,
SoftwareName: TextInput4.Text,
Installation: Checkbox1.Value,
Uninstallation: Checkbox2.Value,
Freeware: Checkbox3.Value,
Lisence: Checkbox4.Value,
ReasonOfRequest: TextInput5.Text,
Status: "Pending",
RequestorName: TextInput7.Text,
RequestorDesignation: TextInput7_2.Text,
RequestorEmail: TextInput7_3.Text,
RequestDate: TextInput7_1.Text,
Approver: _selectedApprover.UserPrincipalName,
EmailTitle: TextInput1.Text,
Detail: TextInput1_1.Text
}
)

Newbie2020_0-1606104564707.png



Thanksss

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,275)