x++

Form Running Totals, Ax 2009

☆樱花仙子☆ 提交于 2021-01-28 12:10:13
问题 Is there an example anywhere of a form that performs running totals in a column located within a grid. The user ordering and filtering of the grid would affect the running totals column. I can easily perform the above if it was ordering only by transaction date, but including the user ordering and filtering I presume that we would have to use the datasource range() and rangecount() functions (see SysQuery::mergeRanges() for an example) then iterate over these to apply the filtering, then

Dynamics AX 2009 Business Connector Logon

こ雲淡風輕ζ 提交于 2020-01-25 00:58:06
问题 Background: I'm currently working with the Dynamics AX 2009 Business Connector in C#. For my current project I need to connect to multiple AOS servers; ideally all in parallel, though sequentially would be adequate. I can connect to one server (any server) successfully, but always hit a LogonSystemChangedException if I try to connect to a different server (or even the same server but using null to connect to it as default instead of by specified name). I even get this error if I Logoff and

D365 FO Simple Query for expiring contract

[亡魂溺海] 提交于 2020-01-22 02:01:14
问题 I need to create simple query which will show all contracts which will expire in next 3 months. I know how to do that with SQL, but how to do that in Visual Studio when I create query. I added data source Contract table. Added range. Column where is date about expiring is VALIDTO. So, something to write up in value, or how to do that ? 回答1: Solved with two ranges on VALIDTO column. Used (MonthRange(0,3)) with (Day(0)) formulas. 来源: https://stackoverflow.com/questions/56854909/d365-fo-simple

How to get file in folder in batch process?

被刻印的时光 ゝ 提交于 2020-01-17 04:59:26
问题 I have to get file in a folder. My process can work in Batch . My code is this: Io file; FileIoPermission perm; int handle; Filename fileName; [handle, filename] = WINAPI::findFirstFile( myFilePatch + "\\*.txt"); fileOpen = strFmt (myFilePatch + "\\" + filename); if (filename) { perm = new FileIoPermission(filename, 'r'); perm.assert(); file = new TextIo(filename, 'r', 65001); } //etc... other code // I go on to find another file filename = WinAPI::findNextFile(handle); fileOpen = strFmt

Report development, totalPages() Method

China☆狼群 提交于 2020-01-17 04:10:06
问题 Is it possible to reset the value returned by totalPages() method of reportRun class? I have one report populated with several invoices, I want to reset the totalPages() value for each fetched invoice. I tried to use element.reset() in the fetch() method of my report and it doesn't work, it splits my report by invoices. 回答1: No, it is not possible. The reset method does the trick, but splits the report as you observed. And unless your lines exactly fit one line there is no way to precalculate

How to refresh form when I open?

别说谁变了你拦得住时间么 提交于 2020-01-16 07:41:22
问题 I have a CheckBox in my TabPage on my Form, if I select the checkBox, the value is saved in a Table field (present in my FormDataSource: ParametersTable). I want to refresh the form when I enter in TabPage, just Like pressing F5. Is it possible? 回答1: There is a great article about different methods of refreshing the form's data here. Here are the basic outline: 1. Refresh This method basically refreshes the data displayed in the form controls with whatever is stored in the form cache for that

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

Nested notExists joins X++ (Dynamics AX3.0)

十年热恋 提交于 2020-01-12 10:52:46
问题 When the following code executes: select sum(qty) from inventTrans index hint TransTypeIdx where inventTrans.ItemId == itemId && inventTrans.TransType == InventTransType::Sales && inventTrans.InventDimId == inventDimId notExists join custTable where custTable.AccountNum == inventTrans.CustVendAC && custTable.CustGroup == custGroupId notExists join salesTable where salesTable.SalesId == inventTrans.TransRefId && salesTable.Extraordinary == NoYes::Yes; The sql generated nests the second

Nested notExists joins X++ (Dynamics AX3.0)

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-12 10:52:14
问题 When the following code executes: select sum(qty) from inventTrans index hint TransTypeIdx where inventTrans.ItemId == itemId && inventTrans.TransType == InventTransType::Sales && inventTrans.InventDimId == inventDimId notExists join custTable where custTable.AccountNum == inventTrans.CustVendAC && custTable.CustGroup == custGroupId notExists join salesTable where salesTable.SalesId == inventTrans.TransRefId && salesTable.Extraordinary == NoYes::Yes; The sql generated nests the second