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

KGG
Frequent Visitor

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (69,647)