Hi @PowerAddict , brother.
I am so happy so far as I learnt a lot from experts like you.
I want to reset the gallery2 when I click on the +
At the moment gallery2 linked to the main Gallery selection. as follows,
Item ---- >Filter(SalesDetails_1,'Invoice Number'.Value = BrowseSalesNew_1.Selected.Title)
When click on the + gallery2 should be blank, how can I do that ?
Solved! Go to Solution.
Hi @OsmandFernando ,
Could you please share a bit more about your scenario?
Do you want to clear your Gallery2 Items when you press the "+" icon?
Based on the needs that you mentioned, I think a global variable could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:
Set the OnSelect property of the ">" icon within your BrowseSalesNew_1 gallery or the OnSelect property of the BrowseSalesNew_1 to following:
Set(SelectedItem, true)
Set the OnSelect property of the "+" button to following:
Set(SelectedItem, false)
Set the Items property of the Gallery2 to following:
If(
SelectedItem,
Filter(SalesDetails_1, 'Invoice Number'.Value = BrowseSalesNew_1.Selected.Title)
)
Note: When you want to see the details of a Invoice record, please select the specific item in your BrowseSalesNew_1 Gallery, then the details would be displayed within your Gallery2.
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
@PowerAddict Thank you for your reply.
Actually what I want to is to clear the Gallery2 when I am going to enter a new Item in the form above the Gallery2. When I am clicking the + icon now the gallery 2 still showing the selected item related to the main gallery
Osmand
I tried the steps, @PowerAddict
But the gallery2 (should be gallery2) did not reset
on the + i did like this,
NewForm(SalesEditNewFormAddData_1)&Reset(Gallery2)
any issue ?
Osmand
So this is how I made it work:
Set {} as the default for both Gallery 1 and Gallery 2. Set the OnSelect property of the + button to Reset(Gallery1);Reset(Gallery2).
This should work. Check this out:
Let me know if this doesn't help.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!
Hardit Bhatia
https://www.thepoweraddict.com
@PowerAddict Thank you so much for taking time on me. I really appreciated
Following is how the onselect of +
NewForm(SalesEditNewFormAddData_1);Reset(BrowseSalesNew_1);Reset(Gallery2);
Osmand
Hi @OsmandFernando ,
Could you please share a bit more about your scenario?
Do you want to clear your Gallery2 Items when you press the "+" icon?
Based on the needs that you mentioned, I think a global variable could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:
Set the OnSelect property of the ">" icon within your BrowseSalesNew_1 gallery or the OnSelect property of the BrowseSalesNew_1 to following:
Set(SelectedItem, true)
Set the OnSelect property of the "+" button to following:
Set(SelectedItem, false)
Set the Items property of the Gallery2 to following:
If(
SelectedItem,
Filter(SalesDetails_1, 'Invoice Number'.Value = BrowseSalesNew_1.Selected.Title)
)
Note: When you want to see the details of a Invoice record, please select the specific item in your BrowseSalesNew_1 Gallery, then the details would be displayed within your Gallery2.
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
202 | |
98 | |
60 | |
57 | |
52 |
User | Count |
---|---|
257 | |
161 | |
87 | |
79 | |
68 |