axapta

How to filter in execute query by Date range value?

旧城冷巷雨未停 提交于 2019-12-11 12:13:21
问题 I have to made a Query in executeQuery , and I have to filter by date field, my code is : public void executeQuery() { utcDateTime dateUTC, datenullUTC; query q = new Query(); QueryBuildRange qbr; QueryBuildDataSource qbds ; QueryRun queryRun; dateUTC = DateTimeUtil::newDateTime(_dateValue, 0, DateTimeUtil::getCompanyTimeZone()); qbds = q.addDataSource(tableNum(MCRCustCategory) ); qbds.addRange(fieldNum(MCRCustCategory, ValidTo)).value(strFmt ("> %1", dateUTC) ); queryRun = new QueryRun (q);

Dynamics ax2012:How to export data using Runbasebatch

一个人想着一个人 提交于 2019-12-11 11:55:56
问题 I'm using Data Import Export Framework in Microsoft Dynamics AX 2012 in order to export custom data (TestTable) from ax to file. I successfully did that. Now I want to create a Batch job manually and then assign Batch job tasks for Staging job and Export job to execute this export in background. I don't know how to implement it, now I'm trying to create my own batch by duplicating Tutorial_RunbaseForm class. To learn how to set up execution jobs as batch jobs in AX I've started with Staging

AX SSRS Report Parameter is shown but not useable in the report

 ̄綄美尐妖づ 提交于 2019-12-11 11:55:54
问题 I want to add a parameter to a SSRS report which uses a report data provider. I searched the LedgerTrialBalanceContract class in AOT and added in the classDeclaration an attribute "CurrencyCode accountingCurrency;". After this step, i added a method "parmAccountCurrency" which look like this: [ DataMemberAttribute(identifierStr(accountingCurrency)) ] public CurrencyCode parmAccountCurrency(CurrencyCode _accountingCurrency = accountingCurrency) { //accountingCurrency = _accountingCurrency;

How to group by a table display method in a report?

心不动则不痛 提交于 2019-12-11 09:19:43
问题 I have a table CustInvoiceJour. I use report to print some info by grouping some fields (Sales Price, SalesUnit in the report Query. Report prints sum(LineDisc), sum(LineAmount) values. I want to modify report adding one more group by field - but that field is display method. Axapta 3.0 only supports physical fields to group by. What is the fastest possible way to do that? 回答1: Sorry, but Axapta 3.0 does not support grouping by a display method and nor do any other version of AX. AX 2012

How to reset a page number in SSRS report

こ雲淡風輕ζ 提交于 2019-12-11 09:09:22
问题 I create a report using SSRS reports to show many different kind of information, I use a multiple headers and many tablix that will be used for each page on report. My page number is not based on group (I use the page number generated by SSRS because I use to put it in the header). My problem is how to reset a number page for each header. 回答1: There are (at least) two options: The first uses page names, described here. The other involves subtracting an offset from the buildin function,

AX 2012 - ListPage FactBox Part does not refresh on Sub Datasources selection change

旧城冷巷雨未停 提交于 2019-12-11 07:17:50
问题 my issue is on the ReqTransPOListPage, I added a FactBox Part related by ItemId When the user navigates in the Grid records - If the selected field on grid is one of the main DS ReqPO then the FactBox get refreshed! - But if the selected field on the grid is a field of any sub DataSource of Query, then PCDataSourceEventNotify.onRefresh() is not triggered and neither my FactBox. I can't even force refresh in ReqTrans_DS.active() since it's a ListPage based on AOT Query and datasource methods

AX2009 - str data type limit

雨燕双飞 提交于 2019-12-11 06:34:53
问题 Is there any limit on the size of the str data type in AX2009? There is also the extended data type (Memo) which can be inherited by extended data types. What is the difference between a extended data type inherited by (Memo) and the str data type? As is not (Memo) also just a str data type? 回答1: For the limit: Yes and no. For practical purposes it is unlimited but the X++ runtime has a certain limit which you can find out by feeding large values to the strrep function until you will

vb.Net code to use AX 2009 ReturnOrderInService web service

被刻印的时光 ゝ 提交于 2019-12-11 05:48:59
问题 Need to use the create method of the AX 2009 ReturnOrderInService web service in a vb.NET aspx page to create an RMA in AX. The code I've written below creates the RMA in AX, but doesn't show the line details in the AX RMA form, even though the records are in SalesTable and SalesLine. Is a record needed in InventTrans or is there a missing InventRefId value somewhere? Dim rmaClient As ReturnOrderInServiceClient = New ReturnOrderInServiceClient("WSHttpBinding_ReturnOrderInService1") Dim roi As

Setting default value on a field?

感情迁移 提交于 2019-12-11 05:48:23
问题 I'm adding a new field to an existing Table (not a "core" one, but one that was created by an inhouse dev previously) and I'm trying to set a default value for it. I created a field of type Int , but now by default it's all 0's for the records that are already there. Is there any way to define a default value for that field, for all the existing records and to be inserted records ? Ultimately, what I'm trying to achieve is that I want a configurable field (ShowOnReport) so certain records won

Using environment variables in AX

爱⌒轻易说出口 提交于 2019-12-11 05:46:35
问题 Is there any possibility to make use of windows-environment-variables in AX? Example : Property NormalImage on a MenuItem . I'd like to use sth. like %USERNAME% instead of the explicit username. In Classes for example I can use the WINAPI macro and refer to a user-folder-variable, eg CSIDL_MYPICTURES , to access the path per user. In AOT-object-properties there's no possibility to reference to macros... Any way to achieve this? 回答1: No, you can't do this on the AOT. You can change some