dynamics-ax-2012

How to use a DataSource based on condition being true?

点点圈 提交于 2019-12-25 05:22:32
问题 I'm currently trying to build a query that uses a datasource based on a particular condition being true. Say "if value == 1, use datasource 1. If value == 2, use datasource 2. These tables are already a couple of levels into my datasources. Haven't been able to find info on this anywhere! 回答1: You did not specify the tables and relations, but using these datasources as an example: CustTable CustTrans (JoinMode: ExistsJoin) CustInvoiceJour (JoinMode: ExistsJoin) Suppose you want to exists join

Voucher number sequence

无人久伴 提交于 2019-12-25 03:28:07
问题 I want to update the existing number sequence of voucher to new fiscal year number sequence that shows the month in the sequence, I know how to make a number sequence with fiscal year but I am not able to do it for voucher number as I am not able to find voucher edt in the loadModule method inside NumberSeqModuleLedger class. Can any body guide me where to find the edt in loadModule() ? In which class can I add fiscalyear parameter type to it? 回答1: Voucher number sequence codes are set up in

AOT Query relation OR case

≡放荡痞女 提交于 2019-12-25 03:16:37
问题 For example I have the following x++ query. Select EcoResproduct join tableX where EcoResproduct.RecId == tableX.Product || EcoResproduct.RecId == tableX.DistinctProductVariant; Is that possible to do the same thing through AOT query without using a union query or adding two times the same datasource and without using QueryBuildDataSource object and X++ at all . Thanks in advance PS: I made my question more clear. 回答1: Initial incorrect answer: Is that possible to do the same thing through an

How to generate PDF file using X++?

送分小仙女□ 提交于 2019-12-24 19:33:50
问题 Can I create simple pdf file in x++? In this pdf I would like to have for example select from one table or simple static text. 回答1: MorphX reports can be saved to PDF by using the proper print settings beforehand. SSRS reports can do this also using similar tricks. Another way is to generate RTF, then let Word do the PDF creation. Silly, but maybe the PDF is smaller or better looking. It is possible, but not simple, to generate PDF directly by using third party .Net components. 回答2: Some

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

AX 2012 R3 CU8: System.ServiceModel.FaultException: An error occurred

ⅰ亾dé卋堺 提交于 2019-12-24 08:33:17
问题 I'm trying to update an existing sales order using AIF services. When I invoke the service operation, I get the following error message: System.ServiceModel.FaultException: An error occurred. Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System

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,

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