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 / Reset the screen detai...
Power Apps
Answered

Reset the screen details in canvas app

(0) ShareShare
ReportReport
Posted on by 15

I have a screen with an image with 2 seats overlayed by button control.
The functionality of each button is to throw a notification error if it is reserved(grey color) or navigate to next screen "SeatDetails" if it is available(green color).
The details of seat availability is retrieved from list "Seat Reservation"
I have following formula on OnSelect property:
If(
!IsEmpty(Filter('Seat Reservation', Title = SelectedSeat && Status.Value = "Reserved")),
Notify("This seat is already reserved", NotificationType.Error),
Navigate(SeatDetails, ScreenTransition.None, {SelectedSeat: SelectedSeat, SelectedDateTime: Now()}),
Set(SelectedSeat, "1")
);

pujaclb_0-1683640533567.png
My problem when i start the app, if I select a reserved seat it throws the notification error and then when i try to select available seat it shows the same error and does not navigate to next screen.
On the other hand, if i select available seat first, it navigates to next screen and when i go back to first screen and select reserved seat it still navigates to next screen instead of showing the error.

 

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

    Hi @pujaclb ,

     

    Could you please share more details about your scenario? Where are the two buttons located, just on the screen or inside a Gallery? I see SelectedSeat in that formula and suspect it's a variable, right? If it is, how will you update it? If it's not updated, tapping the buttons will always look into 'Seat Reservation' and search the same seat to check if it's Reserved.

     

    Best regards,

  • pujaclb Profile Picture
    15 on at

    Hi @v-jefferni 

     

    The two buttons are just on screen and yes I have set the variable SelectedSeat to 1 and 2 for seat 1 and seat 2 (hard coded) respectively.

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @pujaclb ,

     

    Please just try below formulas on respective Button:

    Reserved seat:

    UpdateContext({SelectedSeat: "1"});
    If(
    LookUp('Seat Reservation', Title = SelectedSeat).Status.Value = "Reserved",
    Notify("This seat is already reserved", NotificationType.Error),
    Navigate(SeatDetails, ScreenTransition.None, {SelectedSeat: SelectedSeat, SelectedDateTime: Now()})
    );

     Available seat:

    UpdateContext({SelectedSeat: "2"});
    If(
    LookUp('Seat Reservation', Title = SelectedSeat).Status.Value = "Reserved",
    Notify("This seat is already reserved", NotificationType.Error),
    Navigate(SeatDetails, ScreenTransition.None, {SelectedSeat: SelectedSeat, SelectedDateTime: Now()})
    );

     

    Best regards,

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard