dynamics-ax-2009

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

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

眉间皱痕 提交于 2020-01-13 06:39:10
问题 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 >

Dynamics Ax 2009, Email Templates

大憨熊 提交于 2020-01-11 13:05:53
问题 I have created an email template in Ax, using the %varname% as a placeholder for items added to the map when you send the email with this: emailParameterMap.insert("modifiedBy", userFullName); emailParameterMap.insert("vendorName", vendorName); SysEmailTable::sendMail("VendChanges", "en-us", "user@domain.com", emailParameterMap); But, I want to have a list of an unknown number of items in the email result that is sent. How can I do that? 回答1: You can define your e-mail template with XSLT

Dynamics Ax 2009, Email Templates

醉酒当歌 提交于 2020-01-11 13:05:10
问题 I have created an email template in Ax, using the %varname% as a placeholder for items added to the map when you send the email with this: emailParameterMap.insert("modifiedBy", userFullName); emailParameterMap.insert("vendorName", vendorName); SysEmailTable::sendMail("VendChanges", "en-us", "user@domain.com", emailParameterMap); But, I want to have a list of an unknown number of items in the email result that is sent. How can I do that? 回答1: You can define your e-mail template with XSLT

Dynamics Ax Appendable lookup

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-07 07:19:08
问题 I Have a table with a relationship set for a field which gives me the lookup. Within the validateWrite(), i am returning true if that field is being validated, so that it doesn't throw any error. Now I want to allow the user to add a "comma" and drop down again, selecting another (or same) value, however when selected it appends to the original value. I have tried doing this in the Modified() method, appending the text of the this.Orig(), however this.Orig() retrieves the last saved record in

Custom lookup select issue

假如想象 提交于 2020-01-06 03:08:07
问题 The idea is to contruct a lookup with unique Employer name. The lookup works fine but when I select a value and then select the lookup button again and click on the place marked in RED , there are duplicate values, which is wrong. Kindly refer the snippet and snapshot QueryBuildDataSource qbds; Query query = new Query(); FormStringControl control = dialog.formRun().controlCallingMethod(); SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(VendTable), control); ; qbds =

Dynamics AX 2009 Client config file start path problem

杀马特。学长 韩版系。学妹 提交于 2020-01-05 09:21:11
问题 I need to start the MS Dynamics AX 2009 client with different configurations to connect to different AOS. To achieve this, I exported the client configuration into an axc-file, which works pretty well. Now I want to share this file for all clients in our network, but it does not work on some because for some funny reason, the path to the Dynamics AX binaries are hardcoded into the client config file. So, on one computer the AX client is installed in C:\Program Files (x86)\Microsoft Dynamics

How to count report pages in pre-rendered MorphX report?

谁都会走 提交于 2020-01-04 04:33:28
问题 We are trying to force a morphX report to be an even number of pages in length (so our auto-folding machine can handle the workload properly) and have been unsuccessful in using element.pagesTotal() to do so. How have others gotten a page count for per-entity reports at the element level? (this is dynamics ax 2009) 回答1: Sorry, but pagesTotal is a "magic" function that delivers the result after the report has finished, which is too late for you to emit a newPage . You will have to count

How to make dialog elments collapsible?

巧了我就是萌 提交于 2020-01-04 03:15:10
问题 Is there any way to make DialogGroup elements collapsible through X++? I've been looking at MSDN and going through the class but I don't seem to find something that would be useful. Another developer has added two groups to the dialog that is displayed when creating a payment proposal (CustVendPaymJournal_Vend Class) and the "Ok" and "Cancel" buttons are no longer displayed on smaller resolutions (1024x768). My approach is to make some of the groups collapsible to enable the dialog to display