dynamics-ax-2009

Try to use Winapi::findFirstFile running on server

ⅰ亾dé卋堺 提交于 2019-12-06 03:55:59
问题 I have a problem trying to run Winapi::findFirstFile running on server. I havve already tried copying the method on the class WinapiServer, and changing some lines, like this: server static container findFirstFile(str filename) { InteropPermission interopPerm; Binary data; DLL _winApiDLL; DLLFunction _findFirstFile; ; interopPerm = new InteropPermission(InteropKind::DllInterop); interopPerm.assert(); data = new Binary(592); // size of WIN32_FIND_DATA when sizeof(TCHAR)==2 _winApiDLL = new DLL

Change the background color of a column in a grid

我怕爱的太早我们不能终老 提交于 2019-12-05 15:40:38
I have following form and I want to change the background color of a column, based on the values of other columns; In the orange columns, instead of displaying orange background, I want the cell color to be the RGB combo of Red, Green & Blue fields under COLOR ATTRIBUTES section. Let's say that the control the background of which you need to change is named FirstFieldControl. Set its AutoDeclaration property to Yes and BackgroundColor to Window background . Now you need to override the displayOption method on your datasource, e.g.: public void displayOption(Common _record, FormRowDisplayOption

How do you find a user's last used printer in SysLastValue

戏子无情 提交于 2019-12-04 18:20:00
I've been trying to find where a user's last used printer is stored so that I can clear this usage data (as a few users have an issue where the remembered printer keeps defaulting to the XPS writer, despite us having KB981681 installed & the printer being available; just not defaulted on certain AX forms). I know this data's somewhere in the Usage Data, which I can browse via AX: Microsoft Dynamics AX > Tools > Development Tools > Application Objects > Usage Data AOT > System Documentation > Tables > SysLastValue > (right click) > Add-Ins > Table Browser Or through SQL: use AXDB go select *

Call webservice with NTLM authorization

不问归期 提交于 2019-12-04 16:41:49
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-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas

Try to use Winapi::findFirstFile running on server

天大地大妈咪最大 提交于 2019-12-04 08:44:40
I have a problem trying to run Winapi::findFirstFile running on server. I havve already tried copying the method on the class WinapiServer, and changing some lines, like this: server static container findFirstFile(str filename) { InteropPermission interopPerm; Binary data; DLL _winApiDLL; DLLFunction _findFirstFile; ; interopPerm = new InteropPermission(InteropKind::DllInterop); interopPerm.assert(); data = new Binary(592); // size of WIN32_FIND_DATA when sizeof(TCHAR)==2 _winApiDLL = new DLL(#KernelDLL); _findFirstFile = new DLLFunction(_winApiDLL, 'FindFirstFileW'); _findFirstFile.returns

“this” vs. “element” keyword in X++

杀马特。学长 韩版系。学妹 提交于 2019-12-03 10:54:34
When writing code in X++ you sometimes need to reference this.functionYouWant() and sometimes it is element.FunctionYouWant() . Sometimes both are in scope. I often try one and if the function I want isn't there I try the other. Is there a rule that explains when to use this and when to use element ? Allan Iversen this can be used in any objects to reference the current object and member methods. MorphX forms and reports are composite objects. In forms the collection of objects is contained within a FormRun object. You can reference members in the outer FormRun object by using the element

Where are the source files of AX stored?

ε祈祈猫儿з 提交于 2019-12-01 07:37:29
I would like to run a periodic (each 4 hour) backup of 'only' the source file of Dynamics Ax 2009, so, the XPO source file. I'd like to know where they are stored physically. AX7 All meta data stored as XML and methods in regular files and stored in version control. See this overview . AX 2012 The AX source (along with properties and compiled p-code and CIL ) is stored in the model store database. In AX 2012 RTM the model store database is the same as the data database (and that is stupid). In AX 2012 R2 the model store database is in a separate database, usually named xxx_Model . AX 2009 and

Where are the source files of AX stored?

落花浮王杯 提交于 2019-12-01 05:16:46
问题 I would like to run a periodic (each 4 hour) backup of 'only' the source file of Dynamics Ax 2009, so, the XPO source file. I'd like to know where they are stored physically. 回答1: AX7 All meta data stored as XML and methods in regular files and stored in version control. See this overview. AX 2012 The AX source (along with properties and compiled p-code and CIL) is stored in the model store database. In AX 2012 RTM the model store database is the same as the data database (and that is stupid)

How to get the results of a direct SQL call to a stored procedure?

时间秒杀一切 提交于 2019-12-01 05:14:58
I'm calling a stored procedure via direct SQL from X++, and I can't figure out how to get the integer return value from it. 0 is good, -1 is bad. // Login to SQL DB loginProperty = new LoginProperty(); loginProperty.setServer('localhost'); loginProperty.setDatabase('SQL_DB'); odbcConnection = new OdbcConnection(loginProperty); statement = odbcConnection.createStatement(); /* @in_customer_id INT ,@status INT ,@dlvmode NVARCHAR(25) ,@dlvmodedesc NVARCHAR(50) ,@tracking_id NVARCHAR(50) ,@note NVARCHAR(MAX) ,@modified SMALLDATETIME = null ,@override_email NVARCHAR(200) = null */ sqlStatement =

How to pass a parameter between two forms in Axapta?

心不动则不痛 提交于 2019-12-01 04:45:38
How can i pass a single parameter between a form in axapta ? I want to run a Form B from a clicked button event in a Form A and pass... for example the customer id ? How can i read it in the destination form, maybe in the init method ? Thanks 1 Method The easiest way is to pass current record. Just change button control's DataSource value for Example to CustTable if CustTable is in current Form data sources. Then in destination form init method: public void init() { CustTable cTable; ; super(); // Check for passed arguments if( element.args() ) { // get record parameter if( element.args()