ax

Table Update Event Handler

给你一囗甜甜゛ 提交于 2019-12-04 07:48:46
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 SalesTable from the _args , but how can I detect a field has changed? I could really use a before & after

Axapta/DynamicsAx: UTC datetime conversion

ⅰ亾dé卋堺 提交于 2019-12-02 08:18:01
问题 We are trying to interpret the data stored in Axapata's TIMEZONESRULESDATA table. Particularly, we'd like to figure out how it stores DST begin/end times. So far, my guess is: TZENUM: foreign key referencing TIMEZONESLIST (time zone name and identifier) YEAR: 0 if rule is valid indefinitely or a year where the timezone rule is in effect BIAS: offset to UTC time in minutes DBIAS: offset of DST (added to BIAS to get total offset from UTC) Now for the part I don't understand: DYEAR,DMONTH