ax

Table Update Event Handler

梦想的初衷 提交于 2020-01-13 01:55:25
问题 I am investigating the capabilities of the new delegate & event subscription pattern in AX 2012. At the moment I am looking to detect when a particular field has been modified, for example when SalesTable.SalesStatus is changed to SalesStatus::Invoiced . I have created the following post-event handler and attatched to the SalesTable.Update method; public static void SalesTable_UpdatePosteventHandler(XppPrePostArgs _args) { Info("Sales Update Event Handler"); } Now I know I can get the

Table Update Event Handler

点点圈 提交于 2020-01-13 01:55:14
问题 I am investigating the capabilities of the new delegate & event subscription pattern in AX 2012. At the moment I am looking to detect when a particular field has been modified, for example when SalesTable.SalesStatus is changed to SalesStatus::Invoiced . I have created the following post-event handler and attatched to the SalesTable.Update method; public static void SalesTable_UpdatePosteventHandler(XppPrePostArgs _args) { Info("Sales Update Event Handler"); } Now I know I can get the

how to get static range in your report

蓝咒 提交于 2019-12-25 15:54:19
问题 In AX Report the User can select different Range. I seek to show that the criteria used to filter user in the report itself even the expression "parameter!CustomerAccount.Value" don't work because this filter is not a static parameter. the user can use any table from the query and any field from the table and any criteria.. I'm locking for trick to get for which table, which field and what criteria it uses. 回答1: this method work very well ^_^ (( I use it privet and not static )) static void

Call webservice with NTLM authorization

被刻印的时光 ゝ 提交于 2019-12-22 00:15:14
问题 We need to call a webservice in PHP using NTLM authorization, if I understand it correctly we need to use something like NTLMSoapClient, but I do not know how to call it excactly. This is the WSDL <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss

Using QueryRun datatype in C#

前提是你 提交于 2019-12-13 03:59:14
问题 I was wondering if it is possible to use the QueryRun object in c# and if so, which namespace do I import to use it, as I have a method which returns a QueryRun object in my AX class, which I call in my C# code like so: CallStaticClassMethod("OnlineUsers", "findMultipleProducts", user, id); findMultipleProducts is the method in question, I need to access it as a QueryRun object as I need to iterate through the products using the .next() method. Any help or examples would be appreciated. 回答1:

Add subtotals and grand totals in Axapta 2009 report

百般思念 提交于 2019-12-13 03:49:15
问题 I have a report like this Classification Item Qty Weight (Kg) Value I want to add subtotal per Classification and grandtotal to both Weight and Value. How? 回答1: To add a subtotal for Classification you need to set the SumAll property of the corresponding field to Yes . However you would need to calculate grand totals of Weight and Value manually, you can display them in a separate ProgrammableSection by running element.execute(...); from the fetch() method. 来源: https://stackoverflow.com

Dynamics AX 2012 RegConfig does not work

╄→尐↘猪︶ㄣ 提交于 2019-12-13 01:34:37
问题 I'm currently developping a failover service for an environment using Dynamics AX and 2 mirrored SQL servers, and I have some issues getting AX to work the way I expect it to. I have developped a service which does the following : - try to connect to the SQL servers instances - start Dynamics AX using the reachable SQL server. To do this, I have created 2 AX configuration files (.axc), each one pointing to a SQL server. But when I try to start the service, no mater which way I use, AX always

Ax Trace Parser Doesnt Show SQL Queries

女生的网名这么多〃 提交于 2019-12-12 03:22:57
问题 Configuring the tracing cockpit to show sql events, traceparser doesn't show the sql tab, how can I get the sql queries from trace parser? And one second question, It also shows only my queries,is there a way to make it show all queries running in ax? 回答1: See how to Install the Trace Parser. Also ensure you run it from the AOS server and that the correct event selection is provided. Also start AX with escalated privileges (Run as administrator). 来源: https://stackoverflow.com/questions

How do I remove diacritics from a string in dynamics ax

你。 提交于 2019-12-11 16:28:04
问题 I'm trying to convert some strings, I'd like to be able to remove diacritics from strinf. (Exemple : éùèà would become euea) i have try this : static str AALRemoveDiacritics( System.String input ) { int i; System.Text.NormalizationForm FormD; str normalizedString = input.Normalize(FormD); System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); for (i = 0; i < strLen(normalizedString); i++) { System.Char c = normalizedString[i]; if (CharUnicodeInfo.GetUnicodeCategory(c) !=

Axapta.ExecuteStmt - Is it safe? [duplicate]

我与影子孤独终老i 提交于 2019-12-11 16:24:16
问题 This question already has answers here : Injection safe call to IAxaptaRecord.ExecuteStmt() (3 answers) Closed 6 years ago . I have some code, which uses the ExecuteStmt method on the Axapta Object when using the Business Connector, like so: AxaptaRecord record = (AxaptaRecord)ax.CreateAxaptaRecord("SalesTable"); record.ExecuteStmt("select * from %1 where %1.SalesId == '" + id + "'"); while (record.Found) { // do stuff } This works fine, but it's going to be on a public facing website, so is