SBX - Search With Button

SBX - Forum Post Title

ToolTip Method

Microsoft Dynamics AX Forum

DJosef asked a question on 9 Nov 2018 2:05 AM

Question Status

Verified

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

Reply
Suggested Answer

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.

Reply
DJosef responded on 9 Nov 2018 5:17 AM

Hi Nikolaos,

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

Reply

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

Reply
DJosef responded on 9 Nov 2018 8:45 AM

this is my code

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

}


Reply
Verified Answer

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.

Reply
Crispin John Augustine responded on 9 Nov 2018 9:02 AM
My Badges

I guess, you have to revisit your requirement. Too much effort just to avoid a single click (select another record) ??

Reply
DJosef responded on 9 Nov 2018 9:06 AM

Ok, thanks Nikolaos

Reply
DJosef responded on 9 Nov 2018 9:07 AM

Hi Crispin,

is a business requirement

Reply
Verified Answer

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.

Reply
Suggested Answer

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.

Reply

SBX - Two Col Forum

SBX - Migrated JS