cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
m0le
Helper II
Helper II

OnUncheck in the gallery don`t ClearCollect

Hi Team 

I have gallery where user is booking a desks by checkBox 
image.png

Now CheckBox Properties:

OnCheck

 

Set(DeskAvb, DeskAvb -1);
Collect(MultiDeskSelection,ThisItem)

 



OnUncheck

 

Set(DeskAvb, DeskAvb +1);
ClearCollect(MultiDeskSelection,ThisItem)

 

 
User can check only one desk if he will check 2 or more he will have popup window.

The glitch i have is that when user check two or more boxes and then uncheck all the collection still store a desk.

If user check desk 83, 85, 87 and then uncheck 83, 85 the collection will store desk 85 (should 87)

So somehow I am using wrongly the ClearCollection( function 

When the screen is loading I am clearing the collection and when DeskAvb hit 1 I am also clearing the collection so it`s not because it left from other screen 

Any thoughts please ? 

1 ACCEPTED SOLUTION

Accepted Solutions
KrishnaV
Super User III
Super User III

Hi @m0le ,

 

OnUncheck try this:

Set(DeskAvb, DeskAvb +1);
Remove(MultiDeskSelection,ThisItem)

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

2 REPLIES 2
KrishnaV
Super User III
Super User III

Hi @m0le ,

 

OnUncheck try this:

Set(DeskAvb, DeskAvb +1);
Remove(MultiDeskSelection,ThisItem)

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
KrishnaV
Business Applications MVP, Microsoft Certified Trainer
Twitter | Linkedin | YouTube | GitHub
If this post helps you give a and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

View solution in original post

So simple, thank you !

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,323)