x++


How to display a tooltip in Dynamics AX 4.0?


I'm looking to add hover text to a given column in a grid with row specific data. I'm planning on overriding the mouse-enter event, but I'm unsure how to populate a Tooltip and have it display next to the mouse.
Any direction would be appreciated, thanks!
**Edit: It looks like the method to override is actually called "Tooltip". I was able to override this and get a tooltip to display.
The question remains: How to access the current row's data for the column that the Tooltip is on?
To show a tooltip with the description of the foreign key field, the following must be met:
Base your field on an extended data type
Put a relation on the extended data type
Have the relation point to a base table
Set the TitleField1 and TitleField2 attributes on the base table
Have a unique index on the key fields of your base table
You can put the relation on the (transaction) table instead of the extended data type.
Do that in AX 2012 or if the relation has more than one field to join.
Here's the tooltip code that I ended up using:
public str toolTip()
{
;
return tblYourTable::find(this.value()).Description;
}
**Edit per Jan's comment to greatly simplify code

Related Links

Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?
How to get the length of an array?
X++ loop through lines in grid control

Categories

HOME
search
azure-stream-analytics
kentico
turing-machines
delphi-7
checkstyle
polymer
time-complexity
telegram
wakanda
object
pyqt
saml-2.0
socket.io
appcelerator
database-normalization
cq5
big-o
web-hosting
square
iis-6
banner
jtextpane
vert.x
spin
heap
xcodebuild
tput
code-generation
parameter-passing
vuejs
symbols
draft-js-plugins
dapper-extensions
onload
interbase
pylons
intersystems-cache
spotipy
user-defined-functions
gp
zend-debugger
turfjs
keras-layer
joomla2.5
slacktextviewcontroller
sharepoint-workflow
lint
linq-to-objects
cin
plaintext
lpsolve
uiimage
magento-2.0.7
robomongo
launchctl
trojan
scalding
rackspace-cloud
gpg-signature
universal-analytics
jtree
cudd
custom-lists
xcode-server
myspace
uicolor
beamer
x-tag
expectations
android-dateutils
simevents
jtwig
freepbx
stream-processing
database-relations
libvlc
character-replacement
dynatree
page.js
lasso
apache-commons-daemon
dnssec
canvg
snoop
typeconverter
cross-join
trdion2011
ignite-ui
malformedurlexception
functional-java
jquery-slider
ios8-extension
draw2d-js
extjs2
websphere-esb
amslidemenu
code-duplication
stacky
tree-balancing
mkv
cross-database
flex-mobile
message-passing
addchild
nstokenfield
django-piston
escrow
ifilter

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App