web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps checkbox in...
Power Apps
Unanswered

Power Apps checkbox in Gallery

(0) ShareShare
ReportReport
Posted on by

Good day,

 

I have one checkbox for checks all and checkbox inside in Gallery. 

The following problems appeared:

1. On check some of checkbox inside in Gallery it dis the job which I put there, but not marked as checked. I need to click one time more. 

2. Let I have 3 records in Gallery. I checked first 2, but when I check the 3rd marking of checking of the first 2 disappeared.

3. I put in Default for checkbox inside Gallery = value of general checkbox. But if I check general then if I want to uncheck some in Gallery it is not possible.

 

The above problems is only for visual whether the checkbox is checked. Otherwise all job ordered from me is carrying out correctly.

Thanks in advance

I attached one schema

 

Vlamar

 

 

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous 

    In the Oncheck of the All Checkbox, put this, Set(gblAllCheckbox, true)

    In the OnUncheck of the All Checkbox, put this, Set(gblAllCheckbox, false)

    In the default of the Checkbox in the gallery, put this, gblAllCheckbox

  • Community Power Platform Member Profile Picture
    on at

    Thanks CNT.

    But this is same as if I put in default of Checkboxes in Gallery : All Checkbox.Value .

    It is not decided my problem.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Not really! When you set it to Allcheckbox.Value it is directly referencing the value. But when you do it through a variable in the OnCheck & OnUncheck. The value gets set only during the OnCheck & OnUncheck of the all checkbox. You will still be able to change the values in the individual checkboxes unless you are doing something else you have not told me of.

  • Community Power Platform Member Profile Picture
    on at

    Thanks CNT,

    Now the problem with All Checkbox and other checkboxes rectified.

    Remain the problems inside of checkboxes in Gallery.

    I made a video but I can't send here.

    Speaking now only for checkboxes inside Gallery. Let we have 3 records - 1,2,3. 

    I have following:

    OnSelect: Patch(summaryCOO,LookUp(summaryCOO, last_name = ThisItem.last_name), {Status: "Approved"});

    OnUnSelect: Patch(summaryCOO,LookUp(summaryCOO, last_name = ThisItem.last_name), {Status: "Not Approved"});

     

    Steps:

    1/ Click on  1 checkbox - the checkbox is not checked, but field Status changed  

    2/ Click one more time on 1 checkbox - the checkbox is checked, field Status remain same

    3/ Click on 2 checkbox -same as above for 1

    4/ Click on  3 checkbox - the checkbox is not checked, but field Status changed , checked marking for 1 and 2 disappeared

    It is mean they did not work properly and I can't find it

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous The Patch for "Approved" must not be in the OnSelect but in the OnCheck of the checkbox inside the Gallery and similarly the Patch for "Not Approved" must be in the OnUncheck.

  • Community Power Platform Member Profile Picture
    on at

    Sorry for mistake in writhing above. Patch is in OnCheck + OnUnCheck. Patch is working. The problem is of visual showing of checking how I explained above.

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Are you doing anything more than the Patch in the OnCheck and OnUncheck?

    Do you have any other formulas in the OnSelect or Default properties of the Checkbox.

    Do you have any other Formulas in the Items property of the Gallery that could affect this?

  • Community Power Platform Member Profile Picture
    on at

    In Default as per you suggest above.

    Nothing more.....

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous 

    Are you doing anything more than the Patch in the OnCheck and OnUncheck? Any more code there?

    Do you have any other formulas in the OnSelect property of the Checkbox?

    Do you have any other Formulas in the Items property of the Gallery that could affect this?

  • Community Power Platform Member Profile Picture
    on at

    OnCheck and OnUncheck - no more

    OnSelect: nothing

    Text: "Approve"

    Items on Gallery: date source name only

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard