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

Issue with repeating gallery in powerapps

Hi Team,

 

I have an issue with repeating gallery, while clicking save button date picker and dropdown fields are getting changed to default value also a new row gets added.  Values should not get change to default, actual value should exist in the field.

 

Formula used in Save button(on select event) as below.

Patch(ContractorCollection, ThisItem, {FirstName:txtContractorFirstName.Text,LastName:txtContractorLastName.Text,ContractorPhone:Value(txtContractorPhone.Text),VendorName:txtVendorName.Text,StartDate:DPStartDate.SelectedDate,EndDate:DPEndDate.SelectedDate,

Floor: DDFloor.Selected.Value});

Collect(ContractorCollection, {FirstName:"",LastName:"",ContractorPhone:0,VendorName:"",StartDate:"",EndDate:"",Floor:""})

 

Note: After submitting the form the correct details are getting saved to the data source.

Repeating tables.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Issue with repeating gallery in powerapps

Try making these property changes and see if they help:

 

Change DefaultDate for DPStartDate to: ThisItem.StartDate

Change DefaultDate for DPEndDate to: ThisItem.EndDate

Change Default for DDFloor to: ThisItem.Floor

Change AllowEmptySelection for DDFloor to: true



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Issue with repeating gallery in powerapps

Try making these property changes and see if they help:

 

Change DefaultDate for DPStartDate to: ThisItem.StartDate

Change DefaultDate for DPEndDate to: ThisItem.EndDate

Change Default for DDFloor to: ThisItem.Floor

Change AllowEmptySelection for DDFloor to: true



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Highlighted
Frequent Visitor

Re: Issue with repeating gallery in powerapps

Hi Jeff,

 

Thanks al ot for your help.

Solution works for me 🙂

Change AllowEmptySelection for DDFloor to: true is made the dropdown as blank in the new row. Is it possible to set default value of dropdown filed in the new row? eg: dropdown field should set to default(-Select-) instead blank text in dropdown filed.

 

Thanks again, you saved my time 🙂

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020 Winner Announced

Check it out!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,017)