cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chinuramesh87
Frequent Visitor

How to get nested gallery checkbox count

I have Done first gallery as group by and added one column for first gallery and rest of the columns added in the second gallery. In the second gallery I have Added checkbox with item.id value. When I am checking second gallery check box I want to get the count but when I am trying countrows(editgallery.allitems,editformcheckbox.value) I did not get value. Can any one help me to get out of this issue. 

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Super User
Super User

@chinuramesh87 A much simpler approach would be use a global variable set in the OnVisible of your screen,

Set(countCheckBoxes, 0)

In the OnCheck of the checkbox,

Set(countCheckBoxes, countCheckBoxes+1)

In the OnUncheck of the checkbox,

Set(countCheckBoxes, countCheckBoxes-1)

the countCheckBoxes variable will always have the correct count!

 

Hope this helps!

 

View solution in original post

1 REPLY 1
CNT
Super User
Super User

@chinuramesh87 A much simpler approach would be use a global variable set in the OnVisible of your screen,

Set(countCheckBoxes, 0)

In the OnCheck of the checkbox,

Set(countCheckBoxes, countCheckBoxes+1)

In the OnUncheck of the checkbox,

Set(countCheckBoxes, countCheckBoxes-1)

the countCheckBoxes variable will always have the correct count!

 

Hope this helps!

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,187)