cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gibson
New Member

Use button that refers to a text input field to edit excel tables, etc.

So there is probably a better way to do this, but I am just practicing right now and don't have any actual work data yet.

 

Say I have a text input, TxtOne, that says 'Hello.' I want to add hello to my table under SampleHeading. 

 

This is what I've tried:

Patch(Table1, Defaults(Table1), {SampleHeading: TxtOne})

 

I can't figure out how to link the button and text input, or how to to have TxtOne represent the values it's given. Any help?

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @gibson ,

Close . . .

Patch(
   Table1, 
   Defaults(Table1), 
   {SampleHeading: TxtOne.Text}
)

I have a blog on Controls and their references that may assist you.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @gibson ,

Close . . .

Patch(
   Table1, 
   Defaults(Table1), 
   {SampleHeading: TxtOne.Text}
)

I have a blog on Controls and their references that may assist you.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Ah yes, I figured it must be a syntax error, it's frustrating that info isn't easier to find/clearer in the docs. Thanks! 

Thanks @gibson ,

Please remember to Accept as solution as this will help others find it more readily and also closes the item. 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,153)