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.
Solved! Go to Solution.
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.
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)
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.
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
)
)
but it's wrong if I booked an appointment.
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.
it's working now. thank you so much.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
181 | |
52 | |
41 | |
38 | |
33 |
User | Count |
---|---|
245 | |
80 | |
71 | |
69 | |
66 |