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 / Pass same variable in ...
Power Apps
Unanswered

Pass same variable in different button to another screen with error

(0) ShareShare
ReportReport
Posted on by 35

Hi,

I have issue to pass same variable to another screen with error. please help.

 

Screen1:
2 buttons:

1st button onSelect:

 

Navigate(
 'Screen2',
 ScreenTransition.Fade,
 {
 varCKno: ThisItem.'Closed Case No.'
 }
)

 

 

2nd button onSelect:

 

Navigate(
 'Screen3',
 ScreenTransition.Fade,
 {
 varCKno: ThisItem.'Closed Case No.'
 }
)

 

 

The error keep appear on my 2nd button "varCKno: ThisItem.'Closed Case No.'" any idea?

When I test run, I can click on the 1st button, but unable to click on 2nd button.

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JacksonTeo ,

     

    What's the error message?
    I guess that there isn't a column called 'closed Case No.' in second screen.

     

    Best Regards,

    Wearsky

  • JacksonTeo Profile Picture
    35 on at

    The error message "Incompatible type. we can't evaluate your formula because the context variable types are incompatible with the types of values in other places in your app."

     

    The "Closed Case No." is correct, you can see that I'm using the same code on 1st button, it works. 2nd button, I just change the screen name.

     

    Thanks for your reply.

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JacksonTeo ,

     

    Could you share some screenshots?

    Best Regards,

    Wearsky

  • JacksonTeo Profile Picture
    35 on at

    button 1 OnSelectbutton 1 OnSelectButton 2 OnSelect with errorButton 2 OnSelect with errorscreen for both buttonscreen for both button

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @JacksonTeo ,

     

    I guess you already have that variable in screen3 and it's data type doesn't match the value of column 'closed Case No.'.

     

    Sample:

    vxiaochenmsft_0-1695009102165.png

    vxiaochenmsft_1-1695009131316.png

    vxiaochenmsft_2-1695009139232.png

     

    Could you check it?

     

    Best Regards,

    Wearsky

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard