cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Sab
Level: Powered On

update data in excel ???

I connected my app to my excel file in onedrive and created a form to add or change something and this works fine. 

 

But is there any way to just add data when you edit it in a form, without having the old one replaced? Everytime I press the button with the SubmitForm() function, the old data is replaced by what I inserted into the text input, but for one DataCard, I just want to add something, not replace the old data. How can I do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: update data in excel ???

Hi @Sab,

 

1. To do this, first create the auto-generated app by connecting to your Excel table.

2. In this app, on the EditScreen1, select this data card and unclock it.Then set the Visible property of the DataCardValue7 control to false to avoid users editing the exsiting value in this data card.

3. With the data card selected, insert a TextInput1 control. 

4. Set the Update property of the data card to:

Concatenate(DataCardValue7.Text," ",TextInput1.Text)

Capture.PNG

 

After this, when opening the edit screen, your users could only edit values in the Textinput1 control, all before value in DataCardValue7 should still exists.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Microsoft Employee

Re: update data in excel ???

Please set the DefaultMode property of your form to FormMode.New in order to add data.

Community Support Team
Community Support Team

Re: update data in excel ???

Hi @Sab,

 

1. To do this, first create the auto-generated app by connecting to your Excel table.

2. In this app, on the EditScreen1, select this data card and unclock it.Then set the Visible property of the DataCardValue7 control to false to avoid users editing the exsiting value in this data card.

3. With the data card selected, insert a TextInput1 control. 

4. Set the Update property of the data card to:

Concatenate(DataCardValue7.Text," ",TextInput1.Text)

Capture.PNG

 

After this, when opening the edit screen, your users could only edit values in the Textinput1 control, all before value in DataCardValue7 should still exists.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 23 members 4,254 guests
Please welcome our newest community members: