cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User
Super User

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
Super User
Super User

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

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (100,327)