Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

Add check box in every row of gallery and use collection object to store selected record

Add check box in every row of gallery and use collection object to store selected record

lets say We have a canvas app and a gallery and we want to use some check box every row of the gallery so that we can do some bulk operation by selecting checkboxes and we will use a collection object to store the selected rows and un-selected rows.

Add a gallery and associate the Data source lets say Account. now select the first row of the gallery and insert a checkbox control. This will add a checkbox in all rows.

on the on checked action I have used a collect action to create collection object to add the selected rows in a collection. like that on un-checked action Remove function used.

Select the First checkbox and select Action menu and choose On Check and Write the Power FX to collect the selected row information in the collection object.

Collect(checkedRow,ThisItem)

Like that select On uncheck and write the Power FX to remove the selected item from the collection object.

Remove(checkedRow,ThisItem)

Now test this.

Select some rows and check the collection then unselect and test.

Remove one item and check collection.

Now we can use the collection to do bulk operations.

Hope his helps.

You can enroll now !We are giving 30% discount on our Internship Program

Don’t miss the chance to participate in the upcoming Internship Program which will be done using Microsoft Dot Net Web Development Full Stack Technology. The new batch will be starting from May 20, 2024.  We will have most experienced trainers for you to successfully complete the internship with live project experience.

Why to choose Our Internship Program?

Industry-Relevant Projects
Tailored Assignments: We offer projects that align with your academic background and career aspirations.
Real-World Challenges: Tackle industry-specific problems and contribute to meaningful projects that make a difference.

Professional Mentorship
Guidance from Experts: Benefit from one-on-one mentorship from seasoned professionals in your field.
Career Development Workshops: Participate in workshops that focus on resume building, interview skills, and career planning.

Networking Opportunities
Connect with Industry Leaders: Build relationships with professionals and expand your professional network.
Peer Interaction: Collaborate with fellow interns and exchange ideas, fostering a supportive and collaborative environment.

Skill Enhancement
Hands-On Experience: Gain practical skills and learn new technologies through project-based learning.
Soft Skills Development: Enhance communication, teamwork, and problem-solving skills essential for career success.

Free Demo Class Available