cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nusserdt
Advocate I
Advocate I

Update Data Card from SharePoint List with UpdateContext

I have a SharePoint List mylist. In PowerApps I connect the List with my App and create a Formular (create new entry mode). I have to set the Value of the DataCard programmatically with a Button. For that I follow this Guid: Updating a Data Card from a Button

 

What I understand:

  1. Create a Variable myvar in OnVisible in Screen
  2. put myvar in the Default property of the DataCard or the DataCardValue (?)
  3. in Button add OnSelect event to update the Value of myvar with UpdateContext({myvar:"1"})
  4. the value of the DataCard will be the Value of myvar -> 1

My problem with these steps is that setting the Default property of my DataCard is not possible.

  • DataCardValue -> Default -> Parent.Default
  • DataCard -> Default -> ThisItem.ColumnName

This behavior is potentially related to the SharePoint List mylist. Maybe I have to configure something in SharePoint?

 

How can I solve it?

1 REPLY 1
timl
Super User
Super User

Hi @Nusserdt 

Did you unlock your card before you attempted to change the default properties?

 

image.png

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 (5,508)