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 / OnSelect multiple comm...
Power Apps
Answered

OnSelect multiple commands

(0) ShareShare
ReportReport
Posted on by 60

Hi,

 

Is it possible to execute multi commands in the onSelect of an icon?

Case at hand: I've added a delete icon button. in that button I perform a REMOVE() command on the selected item in the gallery. After the delete he set the selected value in the gallery to the first item.

 

So fare so good: Next the gallery there are several textboxes that are linked to the selected item in the gallery. This is done with a variable. Also works fine, but when clicking the delete icon button I will also need to reset the variable to the selected record. This way the textboxes are also updated. But I don't seem to be able to do something link this:

OnSelect = Remove('app.VGD_Aanvraag'; Gal_KMVergoeding_3.Selected); Set(varRecord;Gal_KMVergoeding_3.Selected)

OR

OnSelect = Remove('app.VGD_Aanvraag'; Gal_KMVergoeding_3.Selected) AND Set(varRecord;Gal_KMVergoeding_3.Selected)

 

Anyone any ideas on how to fix this?

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @verbani ,

    Seems that you used the european way to code, so i think that you need a second ; .

    Also I think that it would be useful to use Reset() function to reset gallery if you need that after deletion to be selected the first item of the gallery, otherwise will be selected the next item in gallery.

    Remove('app.VGD_Aanvraag'; Gal_KMVergoeding_3.Selected);;
    Reset(Gallery);;
    Set(varRecord;Gal_KMVergoeding_3.Selected)

    Hope it helps !

     

  • verbani Profile Picture
    60 on at

    @gabibalaban thanks!!

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard