web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / context variable with ...
Power Apps
Suggested Answer

context variable with different values ??

(0) ShareShare
ReportReport
Posted on by 56
Hi, I have a list in a gallery showing filtered items of a table and a formular to create a new entry or to modify one.
When i choose an item of the list, the item is put in the context variable ctxMission, which works fine.
 
When i want to create a new entry, the variable is set by 
UpdateContext({ctxMission:Patch(Defaults(Table);{numMission : XXX; ordre : XX} ) })
Unfortunately, it does not seem to work, as IsBlank(ctxMission.ordre) returns true. But strangely, when i go to the variable information, there is actually a value in the field ordre so that the previous test should return false.
Do you know what could be the reason ?
 
Thanks in advance,
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    69,556 Most Valuable Professional on at
    Try using isEmpty() instead of isBlank().  IsEmpty is used to test objects while IsBlank is used to test strings.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • owl85 Profile Picture
    56 on at
    Thanks for your quick answer
    I am testing a string/field in a record. ctxMission.ordre should actually be an integer but ctxMission.numMission is a string and it is also shown as blank wether the variable informations are showing a value for that field (i attached a screen capture) in the previous post.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard