问题标签 [x++]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
axapta - 如何运行使用client关键字设置的类方法以批量运行?
下面run
显示的方法是从类Tutorial_RunbaseBatch
中批量运行的。
我做了以下更改:
修改 类SysSecurity中的constructSecurityKeySet方法为
server client static public SecurityKeySet constructSecurityKeySet()
将BatchRun 类中的runJobStatic方法修改为
server client static void runJobStatic(recId batchId)
我知道我不应该玩弄框架类,但这只是一项研究。在我添加以下代码部分之前,它运行良好。
代码更改1:
代码更改2:
现在,添加上述代码部分后,我收到以下错误消息
SecurityKeySet(SystemClass)将属性RunOn设置为calledFrom
并在调用对象的任何位置执行,可以是client或server。它还依赖于 Class Batchable和BatchRunable。这两个类的属性都RunOn
设置为calledFrom
我尝试在类上将属性更改为服务器,但这不起作用
反正有没有让这段代码工作?
完整代码:
x++ - 在 X++ 中销毁对象
如何销毁 x++ 中的对象?
axapta - Dynamics AX 2009:转到主表窗体 - 如何选择默认行?
我在表单的设计中覆盖了 jumpRef 方法。下面是该方法的代码。目前,它显示表格的所有行都可见。到目前为止一切都很好,但是,我希望在启动表单上选择的特定行在显示时在新的主表表单上突出显示。
axapta - Dynamics AX 2009:向 InventJournalTrans 添加字段,传播到 InventTrans
我需要向InventJournalTrans添加一个附加字段,发布后将显示在InventTrans表中。该字段是另一个表中记录的引用列。我需要修改哪些方法才能使这种行为发生?
目前,我已经将字段添加到两个表中并修改了表单以允许用户输入和保存新字段。我似乎无法找到实际发布到InventTrans的位置的兔子洞的底部。
理想情况下,它应该只是:
inventTrans.ReasonRefRecId = inventJournalTrans.ReasonRefRecId;
赋值语句前
inventTrans.insert();
称呼。有人知道这是在哪里吗?
dialog - filter look up in dialog
I Have created a dialog in a class, the dialog method is as below
in my dialog there are two fileds Current State
and New State
.Now when i select the New State
the list of all
states is displayed(irrespective of country) which i dont want. Only the states respective of country has to be shown
in the lookup
. I need to make use of a filter something like e.g. while select while select AddressState
where addressState.CountryRegionId == custInvoiceTable.CountryRegionId;
so that only states which
are related to a country is shown.
State_LT here is an string EDT (where i put in the relation of State_LT) State_LT == AddressState.StateId
IN AdressState there is a method lookupStateId(), How to call it from a dialog(code above) ?
x++ - 如何判断哪个模块调用了程序
使用 [Dynamics] [AX] 时,是否有系统函数可用于确定调用程序时用户所在的模块?我想为 ProjJournalTable 表单为员工执行不同的 X++ 查找代码,但这将是不同的员工列表,具体取决于调用表单的模块。希望这很清楚!- 梅芙
combobox - X++ 中的组合框
在我ComboBox
的项目中 A B C D
,默认情况下,该值是A
我想将其设置为C
类似于comboBox.comboType(2)
init 表单的位置,但这似乎不起作用。可能有ComboBox.selection(2)
帮助,我不确定,请帮助。
filter - 通过多个维度值过滤
我有一个下拉列表(Dimesions)和一个 stringEdit LookUp(dimensionValue)当我选择一个维度假设“分支”和一个值例如“B001”时,我使用以下查询过滤结果
queryRun.query().dataSourceTable(tablenum(LedgerTrans)).addange(fieldId2Ext(fieldNum(LedgerTrans, Dimensions), dimensions)).value(dimensionValue);
其中dimensions
是 enumValue,在上面的查询中,分支的 enumValue 是3
并且dimensionValue
是字符串 EDT。
现在我想使用多个维度值进行过滤,例如“B001、B002、B002”等。我必须在查询中进行哪些修改?请协助。
x++ - 获取 EDT Dimension 的数组元素的索引
我需要编写一个作业,我可以在其中获取 EDT Dimension 的数组元素的索引,例如在我的 EDT中,当我单击它们获取属性时,Dimension
我有数组元素A
B
C
,我看到 A 的索引为 1,B 的索引为 2,C 的索引为 3 . 现在有一个作业 ui 想要获取索引值。请协助。