如何在 Dynamics AX 4.0 中显示工具提示?
我希望将悬停文本添加到具有行特定数据的网格中的给定列。我计划覆盖鼠标输入事件,但我不确定如何填充工具提示并将其显示在鼠标旁边。
任何方向将不胜感激,谢谢!
**编辑:看起来重写的方法实际上称为“Tooltip”。我能够覆盖它并显示一个工具提示。
问题仍然存在:如何访问工具提示所在列的当前行数据?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要显示带有外键字段描述的工具提示,必须满足以下条件:
TitleField1<基表上的 /code> 和
TitleField2
属性 在您可以将关系放在(事务)表上,而不是扩展数据类型上。
在 AX 2012 中执行此操作,或者如果关系有多个要连接的字段。
To show a tooltip with the description of the foreign key field, the following must be met:
TitleField1
andTitleField2
attributes on the base tableYou 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.
这是我最终使用的工具提示代码:
**编辑 Jan 的评论以大大简化代码
Here's the tooltip code that I ended up using:
**Edit per Jan's comment to greatly simplify code