dynamics-ax-2012

Is it possible to disable input in one field if another is filled?

♀尐吖头ヾ 提交于 2021-02-17 05:08:30
问题 I want to disable input into fields of a table, if another field contains data in MS Dynamics AX 2012. UPDATE 1: If Field1 has input, Field2 and Field3 MUST be EMPTY |Field1|Field2|Field3| Customer nr | Id| |---1---|--------|--------| 0000000001| 01 UPDATE 2: Can the system fire an error/warning message, like it does when entering a duplicate value in an ID --> AllowDuplicates: No - Cannot create a record in Table (Table). Table Id: 01. The record already exists. 回答1: Yes, make a method on

Parameter not passing from controll class to DP class Report AX 2012

时光毁灭记忆、已成空白 提交于 2020-07-24 02:54:52
问题 I have created a RDP report without query , only with classes: contract, controller data provider and I am having issues the parameters passing to rdp class, in batch dialog I take the customer order selected when I click ok nothing appears it doesnt pass the value to dp class(it is suppozed to show the sales order related to that customer). Any suggestion or it is just a AX service problem ? 回答1: Even though it's been years, but I don't see any answer accepted - so will suggest an answer.

Parameter not passing from controll class to DP class Report AX 2012

橙三吉。 提交于 2020-07-24 02:47:10
问题 I have created a RDP report without query , only with classes: contract, controller data provider and I am having issues the parameters passing to rdp class, in batch dialog I take the customer order selected when I click ok nothing appears it doesnt pass the value to dp class(it is suppozed to show the sales order related to that customer). Any suggestion or it is just a AX service problem ? 回答1: Even though it's been years, but I don't see any answer accepted - so will suggest an answer.

Parameter not passing from controll class to DP class Report AX 2012

可紊 提交于 2020-07-24 02:47:10
问题 I have created a RDP report without query , only with classes: contract, controller data provider and I am having issues the parameters passing to rdp class, in batch dialog I take the customer order selected when I click ok nothing appears it doesnt pass the value to dp class(it is suppozed to show the sales order related to that customer). Any suggestion or it is just a AX service problem ? 回答1: Even though it's been years, but I don't see any answer accepted - so will suggest an answer.

Parameter not passing from controll class to DP class Report AX 2012

三世轮回 提交于 2020-07-24 02:46:50
问题 I have created a RDP report without query , only with classes: contract, controller data provider and I am having issues the parameters passing to rdp class, in batch dialog I take the customer order selected when I click ok nothing appears it doesnt pass the value to dp class(it is suppozed to show the sales order related to that customer). Any suggestion or it is just a AX service problem ? 回答1: Even though it's been years, but I don't see any answer accepted - so will suggest an answer.

View details control on ax 2012 form

Deadly 提交于 2020-05-24 04:57:05
问题 I would like to bring view details button in my form when right clicked on my form view details should be shown like in standard any form for example when we right click on item number field on the form we have view details option when clicked that opens the details form of that item. I tried using the normal right click method but could not succeed, please help me how to bring the view details functionality in my custom form. 回答1: You have to create Display Menu Item with the selected form.

Filter Blanks when link is by RefRecId

ぃ、小莉子 提交于 2020-02-03 10:17:25
问题 I have created a new table QueryCodes and used the new surrogate key functionality in 2012. A Foreign key relationship has been added to SalesTable using a RefRecId as per the new RecID foreign key guidelines. This all works great and I can now select a QueryCode on the SalesTable by a descriptive field rather than a drop down full of RecId s. However - Filtering! In any grid showing all sales orders ( SalesTable ) I cannot filter for "Blank" query codes, ie SalesTable records without a query

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

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