axapta

Dynamics AX 2009: How to FTP from a batch job on an AOS

此生再无相见时 提交于 2019-12-24 17:18:40
问题 After quite a few searches for ways to FTP files in AX, I was happy to discover the WinInet class, which is more or less just a wrapper for the .DLL of the same name. I thought my problems were solved! I was not aware, however, that the class had a major Achilles heel -- it doesn't run in batch (on a server). Can anybody point me in the right direction? Specifically, I want to upload (FTP put) a file to another server in a server-run batch job (running as a service user with admin rights to

How can I loop over Tables which contain specific characters in their AOT name and delete the data?

↘锁芯ラ 提交于 2019-12-24 16:43:00
问题 I want to loop over a few tables where the name (aotName) begins with 'HbcCka', finally I want to delete all data from the tables. Now I need a logic to empty the tables. How can I achieve this? UPDATED: static void tstDeleteForecastingData(Args _args) { Dictionary dictionary = new Dictionary(); int i; SysDictTable dictTable; ; for (i=1 ; i<=dictionary.tableCnt() ; i++) { if (strScan(tableid2name(dictionary.tableCnt2Id(i)), "HbcCka", 1, strLen(dictionary.tableName(i)))) { info(strfmt('%1;%2',

Using a table display method in a query or view

放肆的年华 提交于 2019-12-24 09:37:07
问题 I'm trying to make a query against the table HcmWorker and related. But i want to figure out how to get the result of the display method HcmWorker.primaryDepartmentName() into it's own field in my query. I also tried creating a view to execute the function via a ViewMethod but that doesn't seem to work as ViewMethods only inject code into the final query against the view. I'm NOT making a form. The end result has to come through the QueryService. 回答1: Sorry, but what you are trying to do is

How to check that next operator can be used?

走远了吗. 提交于 2019-12-24 08:57:27
问题 Questions for any Axapta version: How to check that 'next' operator can be used with record? How to suppress a debugger on unacceptable 'next' operator? Thanks. Code for reproduce: static void Job13(Args _args) { CustTrans ct1; CustTrans ct2; // let's assume that method 'one' search a record select ct1; // where ct1.AccountNum == 'someAccount' ct2.data(ct1.data()); // contract postcondition Debug::assert(ct1.RecId != 0); Debug::assert(ct2.RecId == ct1.RecId); /////////////////////////////////

Field types in Dynamics Ax

♀尐吖头ヾ 提交于 2019-12-24 08:55:04
问题 Is it possible to store binary information in a Dynamics field? For example, I'd like to store an MS Word document inside the Dynamics database. 回答1: Yes, add a container field to the table, then use the BinData Class to read the file and convert the data to a container. For an examples of this, look at how the standard Document handling feature stores files in the database in the table method DocuValue.writeDocuValue() , or look at how image files are stored in the CompanyImage form. 来源:

How do I get the location for a row in dbo.CUSTTRANS?

两盒软妹~` 提交于 2019-12-24 08:03:06
问题 I am building a small AR data mart for a client which is using Dynamics AX (2012). The data from the mart will feed into a Power BI report. I know almost nothing about AX. There is a column in the dbo.CUSTTRANS table named DEFAULTDIMENSION. I was told, by the client, that this value can be used to retrieve a location description for the transaction row using the following query: SELECT T.DEFAULTDIMENSION ,T3.Name AS Location FROM dbo.CUSTTRANS T INNER JOIN dbo.DEFAULTDIMENSIONVIEW T2 ON T2

How to get data from AOT of MS Dynamic AX by Excel

只愿长相守 提交于 2019-12-24 06:04:03
问题 I can get data by function of MS Excel on table of database of Microsoft SQL Server However I do not know how to get data from AOT of Dynamic Ax 2012-R3 the same by Excel Here is the AOT of MS Dynamic Ax It's really hard to us.I'm looking for hearing from you soon 回答1: You can export many forms, lists, and reports from Microsoft Dynamics AX and Enterprise Portal for Microsoft Dynamics AX to Microsoft Excel. If a form, list, or report has an Export to Microsoft Excel button on the Action Pane,

Using AIF webservices to connect to Microsoft Dynamics AX 2009

谁说胖子不能爱 提交于 2019-12-24 05:55:21
问题 I'm using AIF webservices to connect to Microsoft Dynamics AX 2009. Proxies are generated for the service in VS2010, but when I want to connect to the service using generate client class, it seems I am not authenticated in the system. I even tried adding a domain user/pass and use windows authentication, like this: var binding = new BasicHttpBinding(); binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows; binding.Security.Transport.ProxyCredentialType =

Adding scrollbar to a Group in AX 2012 form

回眸只為那壹抹淺笑 提交于 2019-12-24 01:00:00
问题 I need to set scrollbar in a Group as shown below since there are many more vertical fast tabs are available which are getting hide when opening any tab as you can see below . I have used tab and selected style as Fasttab. I have tried to set Scrollbar property of tab and its tabpages to yes but for no result. Any help would be great!!! 回答1: I have resolved the issue. by setting height and width properties correctly. properties are: Group:- Height:column width width :column width Tab:- Height

catching the warning message from aif web service

感情迁移 提交于 2019-12-23 10:16:33
问题 I have a aif service in ax 2012 . I pass information into it from .net applications. basically i'm posting to the general journal. But when there is an error, say bad information being passed in, it returns a general error usually "error validating record" . But the warning message displays the actual reason why it caused an error such as the bad data. Is there a way to catch and display the warning message. I tried exception::warning but it just goes right to the exception::error . catch