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

Notifications

Announcements

No record found.

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)
  • Suggested answer
    Denis Macchinetti Profile Picture
    16,444 on at

    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.

  • Verified answer
    Denis Macchinetti Profile Picture
    16,444 on at

    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

  • M Anas Khan Profile Picture
    1,424 on at

    pageActivated() method works :)

    Thanks alot!

  • Muhammad Ozair Naeem Profile Picture
    272 on at

    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?

  • Menna Allah Ahmed Profile Picture
    163 on at

    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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans