Announcements
Here is the rule:
If CountRows(Employee_Gallery_1.AllItems) > 0, disable the arrow. Else, the arrow should be in edit view. It works in the studio, but not when users play the app.
@Anonymous
So this is your formula:
If(CountRows(Employee_Gallery_1.AllItems) > 0, DisplayMode.Disabled, DisplayMode.Edit)
Correct?Then add a label. On the Label.text you put CountRows(Employee_Gallery_1.AllItems). Run the app to check whether the label shows the number of Items in the gallery. If so the formula should work as expected. This is to check if your formula is valid.
Still not working, then as a test try to connect the formula to the Value(Label.Text)>0
Hope this helps you solving your problem.
Paul
@KroonOfficeSol Thanks for the info, but the formula works in the Studio, but does not work at web.powerapps.com. That's really my issue - why the rule isnt working when you Play the app there.
@Anonymous You ask a question and get an answer which maybe gets you to fix the issue you have. It's your choice to try the suggestions or not, this is totally up to you. But let me tell you that my experience is that nine out of ten times the issue is not with the solution, but with an error of the programmer. Basically, your reply won't bring you very far in mastering PowerApps.
The basic issue revolves around PowerApps being a declarative programming environment rahter than a procedural one. In my experience you can't directly change the properties of objects interactively at runtime. The development studio has a lot of extra logic built in to the editor to adapt to changes that you are making while editing. I suspect that's why it works in the design studio but not in the player.
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 494
WarrenBelz 352 Most Valuable Professional
11manish 323