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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps using maste...
Power Apps
Unanswered

Power Apps using master switch button to change more than one list items

(0) ShareShare
ReportReport
Posted on by 15

Hi all,

 

for changing a filtered set of items of a catalogue via a switch button, I am searching for the solution. Does anyone has an idea?

 

Thanks in advance.

Categories:
I have the same question (0)
  • RusselThomas Profile Picture
    4,014 on at

    Hi @Mehl ,

    With the (very limited) information at hand, the best I can suggest is use a toggle - then Items: property on gallery as follows;

    If(Toggle1.Value, Filter(source, conditionA), Filter(source, ConditionB))

    where conditionA and B respectively are your two filter conditions...

    Kind regards,

    RT 

  • Mehl Profile Picture
    15 on at

    Hi RT,

     

    I already have a filter set:

     

    Filter([@Zeiterfassung];
    Or(Text_Suche.Text in Kunde;Text_Suche.Text in Berater;Text_Suche.Text in Projekt);
    Switch(Radio_DLN.Selected.Value; "Ja";'DLN abgeschickt'=true; "Nein"; 'DLN abgeschickt'=false; true))

     

    Within the catalogue items I have a toggle. And instead of selecting each item and going to details and switching the toggle, I would like to switch one master toggle after filtering the right ones and then switchin all filtered items automatically.

  • RusselThomas Profile Picture
    4,014 on at

    I'm not really clear on what you want to achieve...

    Do you want the toggle to affect your filter, or the toggle to affect other toggles?

     

    It may be easier if you loaded some screenshots to explain what you're trying to do.

     

    Kind regards,

    RT

  • Mehl Profile Picture
    15 on at

    Hi RT,

     

    I'll try again.

    With using the "master toggle" I would like to affect other toggles, that are within the DetailScreen and the EditScreen, but not visible at the overview.

     

    Screenshot 2022-07-19 134853.png
  • RusselThomas Profile Picture
    4,014 on at

    Hi @Mehl ,

    You have to set the slave toggle's Default: property to the master toggle value and reset it any time you want the slave to load the default value.  It's probably easier to see than it is to explain - set up this example so you can see how this works;

    Add a toggle control, name it "masterToggle"

    Set the OnChange: property to

    Set(resetSlaveToggles, true);Set(resetSlaveToggles, false);

    On another screen add another toggle, name it slaveToggle_1

    Set the Default: property to

    masterToggle.Value

    and set the Reset: property to 

    resetSlaveToggles

    copy and paste the slaveToggle control a few times.  You can stick some on the same screen as the masterToggle if you like as well, just to observe the behaviour a little easier.  You can independently change slave toggles, but as soon as you change the masterToggle, they will all revert to the masterToggle value.

    Hope this helps,

    RT

  • Mehl Profile Picture
    15 on at

    Thanks, that helped!

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard