Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Passing Data Between Screen not working

(0) ShareShare
ReportReport
Posted on by 252

Hi All,

 

I am using the below to pass data between screens.

Set(Item,POTableDes.Selected);Navigate(POScreen,ScreenTransition.Fade)

I have other screens using the same formula(changing the table name), they work fine but for this one it doesn't.

 

Any ideas?

 

Thanks in advance

Categories:
  • Skybluekid Profile Picture
    Skybluekid 252 on at
    Re: Passing Data Between Screen not working

    Thank you

  • Verified answer
    timl Profile Picture
    timl 33,812 on at
    Re: Passing Data Between Screen not working

    Hi @Skybluekid 

    If you just want to pass a variable to set a text box/label text from multiple screens, I'd suggest that you pass this as a context variable.

    Navigate(POScreen,
     ScreenTransition.Fade,
     {labelText:SummaryTable.Selected.YourTextField}
    )
    
    

    You can then set the text property of your text label to labelText

  • Skybluekid Profile Picture
    Skybluekid 252 on at
    Re: Passing Data Between Screen not working

    Thank you, @timl 

     

    So how do I pass the variable into the text label, depending on which screen I navigate from?

  • timl Profile Picture
    timl 33,812 on at
    Re: Passing Data Between Screen not working

    Hi @Skybluekid 

    For your purchase order screen, I would just use a different/separate variable (eg ItemPO).  That should hopefully solve the problem.

    Set(ItemPO,SummaryTable.Selected);
    Navigate(POScreen,ScreenTransition.Fade) 
  • JatinSaini Profile Picture
    JatinSaini 426 on at
    Re: Passing Data Between Screen not working

    Could you provide a detailed summary using the screenshots of the code/screen/view if possible?

  • Skybluekid Profile Picture
    Skybluekid 252 on at
    Re: Passing Data Between Screen not working

    By the way, I use the information that is coming in, to filter a Datatable, so if there is a way to pass both variables in to the text lable that I am using that would be the ideal option

  • Skybluekid Profile Picture
    Skybluekid 252 on at
    Re: Passing Data Between Screen not working

    Hi @timl 

     

    The issue is I have 3 Screens which holds data in Datatables.  2 Screens look at a list called Final Table and the third looks at a list called Purchase Order.

     I use Set(Item,SummaryTable.Selected);Navigate(POScreen,ScreenTransition.Fade) to pass data to the PO Screen, which works ok.  However, the screen that looks at the Purchase Order list has different column names, so the variable that I have used for the first two screens, will not pick up the information.  

     

    Is there a way to pass two variables into one?  Or, switch between to variables?

    Hope this makes sense.

  • timl Profile Picture
    timl 33,812 on at
    Re: Passing Data Between Screen not working

    @Skybluekid 

    Can you explain exactly what's not working?

    If you navigate to POScreen and look at the variables pane in the editor, can you check that the Item variable has been set?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard