In our app, we have circles that we associate with records in a table. What I'm doing currently, is having 200 circles on the screen, and then storing all of the records into a collection. And what I then do is, for every circle, check if the number of items in the collection matches their number. So circle40 will look if there is a 40th record in the collection, if there is, it is visible, if not, it invisible.
But the issue with this is that we always have 200 circles no matter how many records there are. Is there a way in PowerApps, to programmatically spawn circles and then assign values to certain properties like X, Y, Height, Width and OnSelect etc.? Or is there a way to clone a circle and then assign its properties values?
If it is not possible, that's fine. I just need to confirm. Thank you.
Solved! Go to Solution.
You can't really do that in PowerApps. You'd have to have them all in your app.
They can all be dynamic based on properties...so, for example, if you had a table of records with some value, an X a Y, Height and Width, and then based your circles off of that AND, if something like the value was 0 (or something else) then you could set the Visible to false.
I am assuming your circles are random (or to some pattern) on the screen and not linear and can be part of a Gallery.
I hope this is helpful for you.
You can't really do that in PowerApps. You'd have to have them all in your app.
They can all be dynamic based on properties...so, for example, if you had a table of records with some value, an X a Y, Height and Width, and then based your circles off of that AND, if something like the value was 0 (or something else) then you could set the Visible to false.
I am assuming your circles are random (or to some pattern) on the screen and not linear and can be part of a Gallery.
I hope this is helpful for you.
Yeah for the properties I get the item from the collection and then set the properties for the circle. So circle 22 gets the 22nd item in the collection's values set for X and Y for example. Thank you. I just wanted to confirm that this was impossible since I already kind of assumed it was.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
259 | |
122 | |
85 | |
81 | |
70 |