cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kevinyong
Helper V
Helper V

Cannot save repeating table data

Hi,

Currently, I am creating a SharePoint List Form and I had a problem on passing the data in the repeating table.

I created the repeating table that is in a SharePoint List Form and it is in a DataCard 

As the formula below is the submit form and I would like to collect all the data that has been inserted in the repeating table.

unnamed.png

When the form is submitted, it does not transfer all the item that has been inserted in the repeating table into the SharePoint List 

unnamed (1).png

 

Thank you

21 REPLIES 21

Hi @v-bofeng-msft,

 

Thank you for your suggestions,

 

Thank you very much.

 

 

Hi @v-bofeng-msft,

 

There is a problem on the repeating table

 

Whenever I tried to insert some data in a new row. It will automatically show the data that I was inserted in the first row. For example,

image001 (4).png

As you can see, I already entered data in the first row but when I wanted to enter something in the second row. It showed me the data in the "Purpose" column before I enter anything in the 'purpose' column at the second row.

 

Why is this happening?

 

Thank you.

Hi @v-bofeng-msft 

 

I have added:

patch('Purposes',ThisItem,'repeating table'.selected,{Desc:'Desc input'.Text})

But is still the same 

 

Why is this happening?

I really need help on this

 

Thank you

Ajithnair621
Helper II
Helper II

Can you check the video below? He has provided a detailed explanation for some basic activities and it has 3 parts in all. I have shared part 1.

 

https://www.youtube.com/watch?v=xgznk4XlPCo

Hi @Ajithnair621 ,

 

I did watch all 3 parts but when I applied it into my PowerApps Form, the problem still exists.

 

As for now, my problem is that when I wanted to insert some data in the second row, it will copy and paste the data from the first row.

 

Thank you

Is it Possible for you to share the Screenshot of the Action performed on the 'Create' button (Plus icon)?

@Ajithnair621 ,

 

This is the "+" icon where add the rows

Capture.PNG

 

 This is the Patch function that I created on the Text Box that is in the Gallery

Capture1.PNG

 

This is the problem that I was mentioned. As you can the 2nd row becomes the 3rd row 

image001 (5).png

I can see that the Patch command you have written is not in Sync with what @v-bofeng-msft has suggested in earlier posts. You have 2 updates in one single Patch command.

 

image.png

 

Also as @v-bofeng-msft has suggested earlier, try saving the 'Number' value in a separate variable and give it a try to check if the number increments properly.

Hi @Ajithnair621 ,

 

Thank you for your reply,

 

Are you talking about about the "+" icon or the TextBox?

How to make the changes on the Patch?

 

How to save the 'number' value ?

 

 

I suggest you to go through the video shared thoroughly once again. You have missed certain steps in it which has resulted in this confusion.

 

1. In the 'onVisible' of the Screen Try to save the Value for 'Number' in a variable. Increement and assign it when each new record is created using the plus icon.

image.png

 

 

 

 

 

 

 

 

 

 

 

 

2. The Patch command should be written as follows Patch(you_collection_name, this.item,{field_name:field_value}) where, this.item - will be the current record that you are trying to modify in the gallery. No need to mention the sharepoint list here. Through this you can make sure that the record you modified is updated in the collection.

 

3. I see that you have a Submit button also. After you are done with the editing and inserting in the collection have the user click the submit button to Sync data with SharePoint list. Inside the OnSelect of 'Submit' Button you can have the ForAll(..) which will update the data from your collection to the sharepoint list.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,795)