Hi all,
I have a same text for two gallery (upcoming and pass).
Upcoming tab: there is no appointment it will showing text "No upcoming reservations". That's OK.
Previous tab: there are 3 appointments but it's still showing text "No upcoming reservations"
How can I fix it?
Thanks.
it's working now. thank you so much.
Hi @kinghnvn ,
I've made a mistake.
Please try below code:
If(
upSelected,
CountRows(gallUpcoming.AllItems) < 1,
If(
prevSelected,
CountRows(gallPast.AllItems) < 1,
false
)
)
Please accept this as a solution if it works as you expect.
but it's wrong if I booked an appointment.
I tried the code for the Visible property.
The text could not display at UPCOMING but it's still showing at the PREVIOUS screen
just edit code as below. it works fine. thanks.
If(
upSelected,
CountRows(gallPast.AllItems) >=1,
If(
prevSelected,
CountRows(gallUpcoming.AllItems) >=1,
false
)
)
Hi @kinghnvn ,
Can you try something like this:
If(
upSelected,
CountRows(gallUpcoming.AllItems) >=1,
If(
prevSelected,
CountRows(gallPast.AllItems) >=1,
false
)
)
for the Visible property.
Please find below code.
UPCOMING button text: "UPCOMING (" & CountRows(gallUpcoming.AllItems) & ")"
Upcoming button OnSelect: UpdateContext({upSelected:!upSelected});UpdateContext({prevSelected:!prevSelected})
Previous buttons text: "PREVIOUS (" & CountRows(gallPast.AllItems) &")"
Previous buttons OnSelect: UpdateContext({prevSelected:!prevSelected});UpdateContext({upSelected:!upSelected});
MyAppts screen Text Visible
If(CountRows(gallUpcoming.AllItems) >=1, false, true)
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2