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

How to lookup into another table using EDT AX 2012
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?

Categories

HOME
windows
android-studio-2.2
nunit
jsf-2.2
tail
onclick
polling
jquery-ui
nuget-package
crystal-reports-2013
angularfire2
nfs
mel
redis-sentinel
openbugs
onedrive-api
zerobrane
scrolltop
do-while
azure-powershell
dynamic-sql
foreign-keys
bourbon
swagger-2.0
sencha-touch
spring-async
ckfinder
progress-bar
inversion-of-control
user-defined-functions
vex
winpe
testcomplete
utorrent
laravel-eloquent
clickjacking
papaparse
gojs
carriage-return
browser-extension
apiary.io
wurfl
google-earth-engine
nohup
ods
subclipse
file-sharing
signal-strength
oim
cnc
fclose
remedy
zenhub
static-cast
shinobi
taocp
redistributable
pacemaker
dup
lean
nss
boost-serialization
upx
httpruntime.cache
inf
dynatree
gocql
google-books
batik
haskell-warp
ansi
alloy-ui
openbabel
procedural-programming
jama
insight.database
wxformbuilder
jquery-slider
dot42
conditionaltagsupport
accesscontrolexception
gwt-openlayers
notorm
c++builder-xe5
away3d
dtmf
hidapi
ui-select2
font-awesome-4.0.0
http-status-code-410
nokia-s40
web-farm
boost-signals
thttpd
fitbounds
wiimote
android-holo-everywhere
uipagecontrol
timthumb
office-2007
message-passing
zend-rest
purepdf
dojo-dnd
linfu-dynamicproxy
entitykey

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App