axapta

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

Axapta: Lookup field display the string value instead of the ID?

为君一笑 提交于 2020-01-07 06:48:11
问题 When AX generates forms and grids, all the lookups are populated properly, but the ID of the lookup item is displayed in the form. The only way to see values that make sense is to click on the field--not really ideal. Is there a way to display the lookup value in the form instead of the id number behind it? I would like the "tableB" form to display the tableA_value instead of the tableA_id. tableA tableA_id (int - unique) tableA_value (string - non-unique) tableB tableB_id (int - unique)

How to make invisible the lookup field?

耗尽温柔 提交于 2020-01-07 03:08:20
问题 I want to take a value from lookup field. But I neet to make invisible this field. My code is this: public void lookup() { Query query = new Query(); QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(MYTable), this); sysTableLookup.addLookupField(fieldNum(MYTable, FieldTableA)); sysTableLookup.addLookupField(fieldNum(MYTable, FieldTableB)); sysTableLookup.addLookupField(fieldNum(MYTable, RecId),

x++ script that do not return correct count

霸气de小男生 提交于 2020-01-06 06:36:52
问题 I have a x++ script which aims to count records from a select query and later on be updated. This is the original question for reference: convert SQL Query with Join to X++ Dynamics AX scripting Initially, I have a SQL Query counterpart of it and it is resulting to 50 rows / records, when I convert it to X++ , it is not counting or extracting the same number of records, Here is is the x++ script static void Job(Args _args) { Table1 table1; Table2 table2; Table3 table3; Table4 table4; Table5

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

Enum as a Parameter in Dynamics AX

左心房为你撑大大i 提交于 2020-01-05 06:52:46
问题 My report has a parameter which uses a base enum. The enum has 4 different options to choose when running the report. How do I insert an option which uses all 4 at once? For example, I have an enum named Phone and it has 4 types: 1 = None, 2 = Home, 3 = Mobile, 4 = Work. In a drop down, how do I add option 5 = None+Home+Mobile+Work? Thank you! 回答1: Add anoher enum with value All (see NoYes and NoYesAll enums as example) 回答2: Some ways to solve your problem: You can alter your Enum and add a

setTimeOut and local function

和自甴很熟 提交于 2020-01-05 02:52:16
问题 I'm working on Ax 4.0 I'm trying to use the Object.setTimeOut method in a job with a local function, as stated in the msdn documentation : static void setTimeOutJob() { Object o = new Object(); void printText() { ; info( "2 seconds has elapsed since the user did anything" ); } ; // Set a Time Out with the idle flag set to false o.setTimeOut(identifierstr(printText), 2000, false); } But this simple job doesn't produce anything, so it seems I'm missing something here. Has someone worked with