简体   繁体   English

Dynamics AX颜色选择器

[英]Dynamics AX Color Picker

Trying to add a color picker to a field in Dynamics AX 2009. Found an article providing some very simple steps for creating the color picker as a lookup, but I can't get it to work. 试图在Dynamics AX 2009中向字段添加颜色选择器。找到了一篇文章,其中提供了一些非常简单的步骤来创建颜色选择器作为查找,但是我无法使用它。

  • When creating the extended data type, the FormHelp lookup doesn't include the function SysChooseColor, but it will accept the value if manually entered. 创建扩展数据类型时,FormHelp查找不包含SysChooseColor函数,但是如果手动输入,它将接受该值。

  • After adding a field using my color picker data type, the form renders a string edit to the page with a lookup icon. 使用我的颜色选择器数据类型添加字段后,该表单会使用查找图标将字符串编辑呈现到页面上。 However, upon clicking the icon, the lookup window that appears is empty. 但是,单击图标后,出现的查找窗口为空。 Tried with and without a valid color value (#AAAAAA) in the field. 尝试在字段中使用和不使用有效颜色值(#AAAAAA)。

Here's the reference I started with: http://www.axaptapedia.com/Color_picker 这是我开始使用的参考: http : //www.axaptapedia.com/Color_picker

Thanks 谢谢

Did you look at form JmgParameters? 您看过表格JmgParameters吗?

On tab DisplayOptions you can find example of usage the color lookup form. 在DisplayOptions选项卡上,您可以找到颜色查找表单的用法示例。 See at element.colorLookup() method. 请参见element.colorLookup()方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM