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)

ToolTip Method

(0) ShareShare
ReportReport
Posted on by 75

Hi,

I have overridden the ToolTip method on control in the form-design

When I move the mouse over fields, the tooltip (information shown) seems to be always generated from the current selected record, this is not the one under the mouse cursor.

How can I fix it please ?

Regards

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Is this related to the overriding in any way? I mean if you don't override the tooltip, does it also then generate the tooltip based on the selected record? Does this happen in all forms or only some specific form?

    To me it sounds it might be a kernel issue / bug and in that case it's very probable that you can't fix it (and why should you fix the bugs of the standard product?). Instead you should create a support request for Microsoft and ask them to fix it.

    To me it looks the tooltip feature works wrong in some places. For example Global address book list page. For the City field, the tooltip shows always empty in my environment. But for the Zip code it shows the data based on the record I'm hovering on.

  • DJosef Profile Picture
    75 on at

    Hi Nikolaos,

    No, if I don't override the tooltip, so when I move the mouse over fields the informations changes

  • nmaenpaa Profile Picture
    101,162 Moderator on at

    Then the issue is in your code. Would you mind sharing your code? It would make it much easier to troubleshoot.

  • DJosef Profile Picture
    75 on at

    this is my code

    public str toolTip()
    {
        return strFmt("@SPL803", WHSShipmentTableUnassignedAddress.ZipCode, WHSShipmentTableUnassignedAddress.CountryRegionId);
    
    }


  • Verified answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Your method always uses the record that you have in WHSShipmentTableUnassignedAddress variable, which is the active method of the data source.

    You would need to get the record of the data source fields that is under your mouse cursor when the tooltip is displayed. I don't see in the overridable methods of grid or form field anything that would help you, so I don't know if it's possible.

    The reason why you created this override was that some standard tooltip for Zip code was not working correctly (community.dynamics.com/.../299642).

    I think it might not possible to fix this yourself for grid fields. So you might want to create a supporte request to Microsoft.

  • DJosef Profile Picture
    75 on at

    Ok, thanks Nikolaos

  • DJosef Profile Picture
    75 on at

    Hi Crispin,

    is a business requirement

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