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

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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard