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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

TabPage gotFocus() method not working

(0) ShareShare
ReportReport
Posted on by 1,424

On my form I have a tabPage control "Pricing". I am trying to do execute my code when the user gets on my tab "Pricing". To achieve this I tried overriding the following methods:

clicked()
gotFocus()

but none of them is getting called. Can anyone tell me which event should be caught to achieve the desired requirement?

*This post is locked for comments

I have the same question (0)
  • Menna Allah Ahmed Profile Picture
    163 on at
    RE: TabPage gotFocus() method not working

    Hi denis ,

    Do you know why lostFocus() method not working ?

    I want to execute my code when I leave the tab page or click on another place in form

  • Muhammad Ozair Naeem Profile Picture
    272 on at
    RE: TabPage gotFocus() method not working

    Hi Denis,

    pageActivated() method really works, however I have one problem.

    The tab, where I'm using this method, is the default page of this form.

    This form opens via another form on a button click.

    So, being the default page, this method does not work, but when I navigate to another page and the reopen this page, this method works.

    I want it to work even when its the default page.

    Is there anything for this?

  • M Anas Khan Profile Picture
    1,424 on at
    RE: TabPage gotFocus() method not working

    pageActivated() method works :)

    Thanks alot!

  • Verified answer
    Denis Macchinetti Profile Picture
    16,444 on at
    RE: TabPage gotFocus() method not working

    Hi Muhammad

    You can also override the pageActivated method of your tabPage and here execute your code.

    Take a look at the CustTable form, tabAddress

  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at
    RE: TabPage gotFocus() method not working

    Hi Muhammad

    You have to override the tabChanged method on the TAB Control.

    Here check the _toTab parameter and execute your code if the value meet the your tabPage.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans