Hello Power Apps Community,
Can you help please... and I hope I can explain this correctly...
I am building a canvas app, using Dataverse for Teams.
I have two tables: "Employee" which is the parent table, and "Transaction" which is the child table.
So one "Employee" record to many "Transaction" records.
I have an Employee screen with a gallery showing all the Employee records.
I have two icons for each record, the icons are called "Open" and "Closed".
When I click the "Open" icon or the "Closed" icon, on the relevant "OnSelect" property, it takes me to another screen (Transaction) with another gallery for the child table: Transaction.
The expression is this:
)
Again, this is working great. So if I select John Smith on the Employee gallery I move to the Transaction screen and gallery and just see John Smith's Transactions.
My request: After all that, what I'm now looking to do is:
1. If on the Employee screen, image at the top, I click on "Open" then when I navigate to the Transaction screen and gallery I only want to see John's Smith's Transactions with the Status Reason of "Active".
2. If on the Employee screen, image at the top, I click on "Closed" then when I navigate to the Transaction screen and gallery I only want to see John's Smith's Transactions with the Status Reason of "Inactive".
Any thoughts would be greatly appreciated.
Garry
PS. Model-driven apps for Dataverse for Teams cannot come quick enough for me. Can't wait to leave these canvas apps behind! Haha.
Thanks @GarryPope ! I'll update my formula to reflect the right solution ...
@gabibalaban Woohoo! Woohoo! Woohoo!
You can't believe how happy you've made me. Thanks so much. And please don't apologise, you helped so much.
When I added the formula in it worked perfectly! The labels in the gallery were not populating, but I put an extra ) at the end of your formula and the labels populated with data.
Thanks so much for spending you weekend helping me. I really appreciate it.
All the best,
Garry
Auch ...please excuse me. I skip the part that you work with DataVerse.
For Dataverse, the right formula is:
)
)
Once again sorry for inconvenince.
Hello @gabibalaban,
It's most probably my terrible explanation. Thanks for all your help.
Here's the Transaction table:
Here's the relationship structure for the Transaction table.
Thanks very much,
Garry
There is something I miss ... Can you show the table structure of Transaction table ?
Hello @gabibalaban,
Thanks for replying again. Sorry, mate, but that didn't work.
I wrote the expression like below:
Most probably the error is due to the fact that your status reason column is a choice type one.
Use ‘Status Reason’.Value instead.
Hello @gabibalaban,
Thanks for replying. Especially on a Saturday. I really appreciate this.
So the first part worked on my Open or Closed button, which is great.
When I added the second expression to the Transaction gallery, I got the below error:
"We can't evaluate your formula because the values being compared in the formula aren't the same type."
Any thoughts on this please? No worries if not.
Garry
Hi @GarryPope,
Set the onSelect property of the Open/Close button to:
)
Hope it helps !
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional