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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to access context ...
Power Apps
Answered

How to access context passed in Navigate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am binding data to list box and when selecting an item, it navigates to a screen2.

Screen2 should load data based on item selected in list box.

Below is the navigate command, which is navigating to Screen2, but not sure on how to access context (data in below example)

Navigate(Screen2, ScreenTransition.Fade,{data:Id})

Please help

 

Categories:
I have the same question (0)
  • Meneghino Profile Picture
    6,949 on at

    Hello Srini.

    You do not need to pass a context in navigate in your case, you can refer to the value of the list box in Screen1 even from Screen2.

    However, I am a little confused.  If you need to select one item only, then a dropdown would be the correct control to use instead of a list box.  Do you really need to select multiple items of a list box?

     

    In any case, here is what I would do to test your scenario:

    1. Create a new dropdown (Dropdown1) in Screen1 and leave its properties as they are
    2. Create a text box (TextBox1) in Screen2 and set its text property as follows:
    TextBox1.Text = Dropdown1.Selected.Value

    You will see that without need for context, the value shown in the text box in Screen2 will reflect the section in the dropdown in Screen1.  This is the way PowerApps works.

     

    Please let me know how you get on

  • Srini Profile Picture
    Microsoft Employee on at

    But when i am trying to set the text property for the testbix in second screen it says,

     

    This rule creates a circular refernece betwproperties, which is not allowed. 

    Where should set the expressions

     

    textbox.text=dropdown.selected.value

  • Verified answer
    Meneghino Profile Picture
    6,949 on at

    Ok, please see below the screenshot of the simple example.  You can see the two screens on the left, where the first one only has a dropdown and a navigate button, whereas the second screen has the text box.  You can see at the top of the screen where to enter the value for text property.

    The expression is just a standard way to describe which property of which control needs to be modified.

    Please let me know how you get on or if you need more clarifications.

     

    Capture00.JPG

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard