使用Microsoft Dynamics AX 2012.
我有一个listpage form具有引用ListPageInteraction类,只是想改变一些控件的标签/标题.为此,我需要做一些事情:
element.form().design().control('<YourControlName>');
但我不能在ListPageInteraction课堂上得到这种方法.我决定研究类的初始化方法.但是没有办法去从那里的形式,我怎么去控制和设置标签?
如何通过 a 实例化一个公共类型对象(AX 中表的基类)TableId?此外,我们还能用 TableId 做什么?
我的目标是发送tableid到我的方法,然后在那里创建 id 所属表的缓冲区。是否可以?
我收到的错误是:
无法执行查询.报表提供程序表SMADispatchSheetReportTmp中不存在字段SMADispatchSheetReportTmp.1.District.
区域字段位于SMADispatchSheetReportTmp表中.我需要采取哪些步骤来查找此错误的来源或更正错误?
如果需要更多信息,请提出问题.
我刚刚从partnersource下载了包含Contoso Data的ziped包,我不知道如何处理这些文件.
文件是:
我不知道如何处理这些文件以获得Ax上的Contoso(演示)数据.
是否可以编写一个在AOT中动态创建新类对象和/或方法的x ++(或C#CLR)方法?
makeCustomClass(string className)
{
//create new class with name className;
//populate methods into that class;
}
Run Code Online (Sandbox Code Playgroud)
我甚至不确定从哪一个开始,所以一些示例代码将是一个很大的帮助.
我在MyForm 中有一个ComboBox ( myComboBox ) 和 EnumType myEnumType。
在 modified方法中,我想获取值。
我使用的代码如下:
if (myComboBox.enumTypeValue() == myEnumType::Value1 )
{
//action
}
Run Code Online (Sandbox Code Playgroud)
或者另一种方式
if (myComboBox.enumType(myEnumType::Value1) )
{
//action
}
Run Code Online (Sandbox Code Playgroud)
在这两种情况下,我都无法取值。
方法是什么?谢谢大家!
享受!
我的问题很简单,但我不知道该怎么做.
我在一个表中有一个方法,我想得到类调用者.
我用过这段代码:
Args _args = new Args();
Run Code Online (Sandbox Code Playgroud)
但我不知道如何使用获得名称类.
谢谢大家!
我有这样的用户表
ID Date Value
---------------------------
1001 31 01 14 2035.1
1002 31 01 14 1384.65
1003 31 01 14 1011.1
1004 31 01 14 1187.04
1001 28 02 14 2035.1
1002 28 02 14 1384.65
1003 28 02 14 1011.1
1004 28 02 14 1188.86
1001 31 03 14 2035.1
1002 31 03 14 1384.65
1003 31 03 14 1011.1
1004 31 03 14 1188.86
1001 30 04 14 2066.41
1002 30 04 14 1405.95
1003 30 04 14 1026.66 …Run Code Online (Sandbox Code Playgroud) 我想在运行时单击按钮时在窗体上添加字符串控件。
到目前为止我尝试过的是:
run 表格方式runTimeControl_validate表格方式该按钮的单击方法具有以下代码:
void clicked()
{
FormBuildDesign design = Form.design();
FormBuildGroupControl formBuildGroupControl;
FormStringControl c;
FormControlType fC;
;
// c = addGroup.addControl(FormControlType::String, 'RunTimeControl');
c = ButtonGroup.addControl(fC::String, 'test');
c.label("New control");
formBuildGroupControl = formBuildDesign.control(addGroup.id());
}
Run Code Online (Sandbox Code Playgroud)
我在行中出错 c = ButtonGroup.addControl(fC::String, 'test');
错误:不存在枚举