Hi Guys,
I have a power app featuring a gallery with a collection as a source.
Each row on the gallery has some input boxes and 2 icons (icon_save and icon_success).
When a user presses icon_save, I would like to make the following changes:
icon_save.visible=false
icon_success.visible=true
I have tried adding this code to the icon_save 'on select' property but it does not work 🙄
Solved! Go to Solution.
Hi Guys,
I managed to work this one out, it was as simple as setting the icon's visibility property to:
CountRows(Filter(ProductsCollection,ItemNo=dd_ItemNo.Selected.Result))>0
If the item existed in my collection it would show the success icon.
@JimJim
You cannot directly set the properties of controls like that. Just like cells with formulas in Excel derive their values from other cells, you need to put formulas on the Visible properties of your icons to determine their state.
I am not sure what your logic is for saving or success, but it would depend on how you are doing those functions.
I hope this is helpful for you.
@RandyHayes , Thank you, I did not know this.
I will rethink how I do this and post my solution here
Sounds good. If you get stuck...post back with the issues.
I can't quite figure this one out, here is how my gallery is looking:
The on select property of icon_save has the following code added to it
Set(v_itemno,ThisItem.ItemNo)
Then the visibility property of icon_success is set to
v_itemno=ThisItem.ItemNo
This does not work at all 😩
Actually, you are on the right track!
The only issue with that formula is that if the person then clicks on another save icon in another row, the original one that was not visible will become visible as well.
The other thing is that you are immediately setting the success icon visible at the click of the button...if the icon is to provide visual indication that it was a success...where is the check that it was actually a success?
What are you seeing happen with the current formula you have now?
When the form first loads, I can't even see the save button
Hi Guys,
I managed to work this one out, it was as simple as setting the icon's visibility property to:
CountRows(Filter(ProductsCollection,ItemNo=dd_ItemNo.Selected.Result))>0
If the item existed in my collection it would show the success icon.
User | Count |
---|---|
261 | |
110 | |
90 | |
54 | |
44 |