是否可以在axapta中插入,更新或删除crossCompany?
我想这样做,在我的查询调试我有这个:
select forUpdate crossCompany tlRemoteLocationInfo
where tlRemoteLocationInfo.RemoteLocationId == "someId";
if (tlRemoteLocationInfo.RecId)
{
ttsBegin;
changeCompany(tlRemoteLocationInfo.dataAreaId)
//then i make mi update to fields and then i make this:
tlRemoteLocationInfo.update();
ttsCommit;
}
Run Code Online (Sandbox Code Playgroud)
我有一个try catch,并且调试,无法在方法tlRemoteLocationInfo.update()中更新,例外是:
$ exception {"Se produjounaexppcióndetipo'Microsoft.Dynamics.Ax.Xpp.ErrorException'."} System.Exception {Microsoft.Dynamics.Ax.Xpp.ErrorException}
我错过了什么?
我有一个* .exe,可以在运行以下PowerShell命令时输出此数据:
& $myExe list
哪里$myExe有类似的东西C:\Temp\MyExe.exe并且list是一个论点。
List of Runbook ID on the system:
List of services installed on the system:
ALMService Version: 7.0.4542.16189
AOSService Version: 7.0.4542.16189
BIService Version: 7.0.4542.16189
DevToolsService Version: 7.0.4542.16189
DIXFService Version: 7.0.4542.16189
MROneBox Version: 7.1.1541.3036
PayrollTaxModule Version: 7.1.1541.3036
PerfSDK Version: 7.0.4542.16189
ReportingService Version: 7.0.4542.16189
RetailCloudPos Version: 7.1.1541.3036
RetailHQConfiguration Version: 7.1.1541.3036
RetailSDK Version: 7.1.1541.3036
RetailSelfService Version: 7.1.1541.3036
RetailServer Version: 7.1.1541.3036
RetailStorefront Version: 7.1.1541.3036
SCMSelfService Version: 7.1.1541.3036
Run Code Online (Sandbox Code Playgroud)
我要查找的数据是表的第一列,但List of Runbook ID...顶部有类似内容。在PowerShell中是否有一种解析此数据的好方法,这样我就可以只获取表数据?
我写了一个查询如下,我想在查询中阻止对 accountnum 的多项选择。有没有办法在代码中做到这一点?
Query = new Query();
qbdsVendTransOpen = Query.addDataSource(tableNum(VendTransOpen));
qbdsVendTrans = qbdsVendTransOpen.addDataSource(tableNum(VendTrans));
qbdsVendTrans.relations(true);
qbdsVendTrans.joinMode(JoinMode::InnerJoin);
qbdsVendTable = qbdsVendTrans.addDataSource(tableNum(VendTable));
qbdsVendTable.relations(true);
qbdsVendTable.joinMode(JoinMode::InnerJoin);
qbdsVendTable.addRange(fieldNum(VendTable,accountNum));
Run Code Online (Sandbox Code Playgroud) 我添加了一个按钮,我想基本上将标签从"Hello World"切换到"Goodbye World",现在它只是说"Goodbye World"并且不会改变....我做错了什么?
- (IBAction)button:(id)sender {
NSString *mystr = @"Hello World";
if (strcmp(label.text, mystr) == 0) {
label.text = @"Goodbye World";
}
else
{
label.text = @"Hello World";
}
//label.text = [NSString stringWithFormat:@"%d", strcmp(label.text, @"Hello World")];
}
Run Code Online (Sandbox Code Playgroud) 我创建了一个包含单个数据源的表单:InventJournalTable.
我还在其上添加了一个网格和数据源中的两个字段:JournalType和JournalId
该ActionPane有一个按钮,并在其点击的事件处理程序,我试图做到以下几点:
1. add a new data source and join it with the current one on JournalId
2. add to fields from the newly added data source to the current Grid.
Run Code Online (Sandbox Code Playgroud)
这是我到目前为止的...仅用于测试..我试图访问数据源并添加范围.它工作得很好,也许连接也在工作,但我怎么能添加这两个字段?
void clicked()
{
Query query;
QueryBuildDataSource qbdsInventJournalTable;
QueryBuildDataSource qbdsvwInventJournals;
super();
query = InventJournalTable_ds.query();
qbdsInventJournalTable = query.dataSourceTable(tableNum(InventJournalTable));
qbdsInventJournalTable.addRange(fieldNum(InventJournalTable, JournalType)).value(queryValue(InventJournalType::LossProfit));
qbdsvwInventJournals = qbdsInventJournalTable.addDataSource(tableNum(vwInventAdjJrnlCostAmount));
qbdsvwInventJournals.addLink(fieldNum(InventJournalTable, JournalId), fieldNum(vwInventAdjJrnlCostAmount, JournalId));
qbdsvwInventJournals.joinMode(JoinMode::OuterJoin);
//gridOverview.addDataField(
InventJournalTable_ds.executeQuery();
}
Run Code Online (Sandbox Code Playgroud)
还有一件事,我计划添加另一个名为"删除详细信息"的按钮,它将删除第二个数据源,并且网格应该返回其初始状态.
我至少在正确的轨道上吗?我可以得到一些关于此的提示吗?
microsoft-dynamics x++ axapta dynamics-ax-2012 dynamics-ax-2012-r3