Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Pass same variable in different button to another screen with error

(0) ShareShare
ReportReport
Posted on by 31

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:
  • v-xiaochen-msft Profile Picture
    on at
    Re: Pass same variable in different button to another screen with error

    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

  • JacksonTeo Profile Picture
    31 on at
    Re: Pass same variable in different button to another screen with error

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

  • v-xiaochen-msft Profile Picture
    on at
    Re: Pass same variable in different button to another screen with error

    Hi @JacksonTeo ,

     

    Could you share some screenshots?

    Best Regards,

    Wearsky

  • JacksonTeo Profile Picture
    31 on at
    Re: Pass same variable in different button to another screen with error

    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
    on at
    Re: Pass same variable in different button to another screen with error

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard