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 / Component Event/Action...
Power Apps
Answered

Component Event/Action OnSelect not working?

(0) ShareShare
ReportReport
Posted on by 577 Super User 2024 Season 1

Hey all! I am stumped! 

 

Here is the scenario:

There is a button in my component tied to an Event(Text) The button code is: ComHdr.OnClick()

 

The Event OnClick() in my App Will not UpdateContext or variable, it won't even Notify.

 

I may be missing something like once the Event is triggered it does an Action? I have spent a good chunk of my day researching this.

 

Thank you all for the help!

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Hi,

     

    Just to be clear. You created an Event in your Component.

     

    You are triggering it (in the component) by doing XXX.Onclick

     

    Then you are going to the App screen side (not component side), to the component you embedded, to the OnClick event and then updateing the Context there?

     

    It should work fine if you are. Thats how its supposed to be.

     

    please let me know or share a screen shot if you can.

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • KRider Profile Picture
    577 Super User 2024 Season 1 on at

    I thought so as well. I looked up tutorials on this and everything is saying it should be working. It is not...

    Here is my screen shot from the App

    KRider_0-1695140496454.png

    and from the component:

    KRider_1-1695140523749.png

     

  • Verified answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Yeah thats weird.

    Ive only seen that if the component has changed and you need to remove and readd it and or CTRL F5.

     

    Stupid question but did you save it before try to Click?

     

    I just created a component and did what you did and it worked fine. Sometimes though if your app has other errors something it can block it too.

     

    Very strange.

     

    FLMike_0-1695141446928.png

     

    FLMike_1-1695141497574.png

     

    I would do this as a test.

    in your Component on the App side do a 

    Trace("Im here");

    Then use monitor to grab it. I almost believe it will make it show the Notify
    Once it does.. you can take it out


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • KRider Profile Picture
    577 Super User 2024 Season 1 on at

    If I make the button change a variable within the component and a label display it then the button works. Any interaction with the app doesn't work. I have deleted the components and going to clear my history.

  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Thats very weird. I purposely created a variable and a context variable. My event updated them both.

     

    I think the Gremlins got you KRider 😞 did you feed them after midnight?

  • KRider Profile Picture
    577 Super User 2024 Season 1 on at

    Hahaha! If you consider gremlins my kids absolutely! Hahaha, So I took your advice, completely removed the components from the app( They had been in there for a year and half? ) and then deleted my browser history. It's all working now! Thanks FLMike!

  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Ive built so many as an Employee there and then helping them after I retired, I've seen it all.. ok thats a fib but ive seen enough that I never want to see anything new lol

  • KRider Profile Picture
    577 Super User 2024 Season 1 on at

    Not a fan of the new button. I like customization and I use a settings database for my users. Hopefully it gets better! Hahaha.

     

    Since then it has stopped working on a screen or 2 but it still works in production. Not sure whats going on.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard