ax

Mark mandatory fields on form, if not filled with valid value

雨燕双飞 提交于 2019-12-11 13:26:47
问题 if you create a new dataset, mandatory fields which are not set yet are marked with a wiggly red line. it seems, that only string-values ( or several fields, but at least no integers ) are marked this way. if integer-references are used ( 1-based ), the regarding fields are filled with 0 per default which causes the red line to disappear. is there any way to leave those fields empty per default? thanks for hints! 回答1: For integer and real fields you could set the ShowZero property to No (on

Dynamics AX 2009 X++ Selecting A Date Range

拥有回忆 提交于 2019-12-11 13:19:17
问题 I am creating an X++ report, and the requirement is that the user can multi-select on a form and when they click the report menu button the values are pulled in based on the selection. So far this is easy enough, and I can pull in Str ranges i.e. order numbers, item id's etc, but I want to be able to pull in a date range based on selection. I have used a method which several MorphX reports use, with use of 3 key methods in X++ reporting; setQuerySortOrder setQueryEnableDS and the main key one

Select Statement Vs Find in Ax

爷,独闯天下 提交于 2019-12-11 02:38:48
问题 while writing code we can either use select statement or select field list or find method on table for fetching the records. I wonder which of the statement helps in better performance 回答1: It really depends on what you actually need. find() methods must return the whole table buffer, that means, all of the columns are projected into the buffer returned by it, so you have the complete record selected. But sometimes you only need a single column, or just a few. In such cases it can be a waste

Passing Financial Dimension combination values in ax 2012

无人久伴 提交于 2019-12-11 02:29:03
问题 I need to pass Ledger Dimension value for General Journal (Table:LedgerJournalTable) form to LedgerJournalTransDaily(Table:LedgerJournalTrns) form along with combination values. EX: In General Journal form I am creating a new journal with the journal name "Alloc"(ledger dimension is like 1003), and in Financial dimension tab I am selecting Cost centre(024), department(001), purpose(training) after that I am clicking on lines, then a new form LedgerJournalTransDaily. In the from grid one filed

Debug on Server side

假如想象 提交于 2019-12-11 00:42:09
问题 I have a Microsoft dynamics Ax client instance. While posting packing slip on Sales Order I have encountered some errors. So I started debugging the code but I did not find any solution. I have learned that those methods are being called on server side. Is there any possibility to debug those methods on Client side? If not how to find out in general which methods are called during the process. Please provide the answer in general way. These question is not about errors in Sales Order pacing

Images in AX forms

半腔热情 提交于 2019-12-10 10:48:36
问题 In Dynamics AX, we use a large number of images and icons for various purposes in our custom forms. We're currently having to individually install image/icon packs on every client machine in order for everything to work. Is there a way (or best practice) for handling images and icons in Dynamics so an install on every single client is not necessary? Ideally, I'd install all images and icons in one place on the server and reference everything from there, but I'm open to any suggestions

Images in AX forms

ぐ巨炮叔叔 提交于 2019-12-06 09:34:36
In Dynamics AX, we use a large number of images and icons for various purposes in our custom forms. We're currently having to individually install image/icon packs on every client machine in order for everything to work. Is there a way (or best practice) for handling images and icons in Dynamics so an install on every single client is not necessary? Ideally, I'd install all images and icons in one place on the server and reference everything from there, but I'm open to any suggestions available. Thanks You have to deploy the files to each client but this deployment can be done automatically by

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

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