dynamics-ax-2009

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

gotFocus and enter methods on Form field not being called

假如想象 提交于 2019-12-18 05:58:11
问题 I have some fields in my Sales Order Form (SalesTable) that need to be disabled if another field is set to a specific value. To do this I overrode the enter and the gotFocus methods on the form field (I did both to test it out). The code compiles and doesn't have any issues. My issue is that neither of these overridden methods are called when I click on a field in the appropriate grid column. What would cause the enter and the gotFocus methods to not be called on a grid field? 回答1: Do not use

What handles dynamics:// URLs?

半世苍凉 提交于 2019-12-17 13:07:14
问题 I'm trying to create my own custom drilldown functionality, where a URL dynamics://0?myfunction_123456 will launch my own code. In C\SysStartupCmd\construct , this base code: case 'viewalert': sysStartupCmd = new SysStartUpCmdViewAlert(s,parm); break; case 'drilldown': sysStartupCmd = new SysStartUpCmdDrillDown(s,parm); break; case 'viewalertrule': sysStartupCmd = new SysStartUpCmdViewAlertRule(s,parm); break; I've tested and these all get fired with these URLs: dynamics://0/?DrillDown_382576

What handles dynamics:// URLs?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 13:06:33
问题 I'm trying to create my own custom drilldown functionality, where a URL dynamics://0?myfunction_123456 will launch my own code. In C\SysStartupCmd\construct , this base code: case 'viewalert': sysStartupCmd = new SysStartUpCmdViewAlert(s,parm); break; case 'drilldown': sysStartupCmd = new SysStartUpCmdDrillDown(s,parm); break; case 'viewalertrule': sysStartupCmd = new SysStartUpCmdViewAlertRule(s,parm); break; I've tested and these all get fired with these URLs: dynamics://0/?DrillDown_382576

Find / search the AOT for an exact match

巧了我就是萌 提交于 2019-12-13 04:42:08
问题 Is it possible to find (search) in Dynamics AX 2009 for an exact match? For example, when I am searching in the AOT for "AddressRelationship", I don't want to see DirPartyAddressRelationship in the results. 回答1: Okay, it took me a while, but I have figured this out, it Is possible . Adding a breakpoint to the find form shows that it uses a class called SysUtilScanSource to find your string within the AX source code. In SysUtilScanSource.do() the method match is used to find a match against

Hiding/showing report field based on values

十年热恋 提交于 2019-12-13 03:58:58
问题 this is a really simple query but I have a total mental block with it. I am modifying the Customer Account Statement report, and we have two Invoice ID Fields, I want to hide one if there is a value in the other. For example; If(custTrans.InvoiceID_1 != '') { return CustTrans.InvoiceID_1 } else return InvoiceID_2; I understand this would be carried out in Fetch Method, but I believe this is not the case, I have tried several ways of carrying out this change but have had no luck, any

Exporting labels to Excel from a project

醉酒当歌 提交于 2019-12-13 02:17:28
问题 I have a small problem - I have to list all the labels of several large shared projects, so labels that are missing a translation are identified updated. Now what I'm looking is something like Palle Agermark's label export job (http://www.agermark.com/2011/10/export-and-import-labels-for.html) but one that goes through one or more projects and pulls all the label IDs (regardless of label series) and values for three languages to Excel. Can this be done, any pointers? :) 回答1: This expands the

Change batch job user identity (run as)

偶尔善良 提交于 2019-12-12 17:15:57
问题 I have created a couple of batch jobs and associated tasks to them, they run fine. But one problem is that they run with the account I have used to create the jobs in the first place. I would like to be a system account instead of my personal account (which could be deactivated if I ever leave this place) I see nowhere to change this. Do I have to change it via an SQL update statement ? Thanks. 回答1: You can log-in as whatever service user you want and setup the batch jobs, or you can use

UTC datetime offset

亡梦爱人 提交于 2019-12-12 17:05:06
问题 I need to get timestamps from Axapta-tables in TSQL , without timezone and / or daylight-bias-offsets for each time, eg from table JMGABSENCECALENDAR . Taking this as initial approach, and regaring this, it works for current time. But reading data from the table referring to other timestamps, the solution provided in the second link doesn't get the information about daylight to the specified time. For example: I add an absence for today ( 2012-01-07 ). Now, using SSMS, reading this dataset

Is it possible to filter a datasource getting the condition from a calculated field?

三世轮回 提交于 2019-12-12 04:24:34
问题 I'm guessing if it is possible to filter a datasource using the result getted from a calculated field. For example, I need to filter my datasource (and, in consequence) my grid, using the condition: Field A - Field B > 0 . Is it possible ? 回答1: Create a range on a field from your table (like its RecId, it does not matter which field you chose) and use an expression in its value (described here http://www.axaptapedia.com/Expressions_in_query_ranges). 来源: https://stackoverflow.com/questions