dynamics-ax-2012-r2

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

SQL Recursive CTE 'where-used' / BOM explosion

孤者浪人 提交于 2020-01-16 04:25:06
问题 What I'm trying to do simply is for an item from the BOM table (Bill of Materials) get it's related components/products from BOMVERSION and then for those related components/products get their related components and products etc. down to 7 levels. I then want to pivot the results so that the related items get put in columns 0, 1, 2, 3, 4, 5, 6, 7 Please see attached example data and code. I'm using dynamics AX 2012 R2 but this example could be applied to any system that uses materials

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 >

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

Update records that can be retrieved by multiple joins in x++

时间秒杀一切 提交于 2020-01-11 14:28:29
问题 So I have a complete x++ script that aims to update records based on the retrieved result set made with select query with multiple joins and using crosscompany As I have been told, it is not a good idea to update records when there is crosscompany. Can you give expert advice on how to do it the best practice way considering my current script. here is the script static void UpdateSample(Args _args) { InventTable a; InventTableModule b; EcoResProduct c; EcoResProductCategory d; EcoResCategory e

find out aif document service components

怎甘沉沦 提交于 2019-12-24 06:04:09
问题 I'm in an AX 2012 R2 environment. I've a custom document service in our environment. I can see it by opening the AIFService form in the AOT. There may be a better way of browsing all the available document services. I haven't found it yet. Anyway, how do I find out all the parts (query, document name, document class name) associated with this custom service, assuming the standard naming conventions haven't been followed? Thank you. 回答1: To know what document services are available, go to the

How to get data from AOT of MS Dynamic AX by Excel

只愿长相守 提交于 2019-12-24 06:04:03
问题 I can get data by function of MS Excel on table of database of Microsoft SQL Server However I do not know how to get data from AOT of Dynamic Ax 2012-R3 the same by Excel Here is the AOT of MS Dynamic Ax It's really hard to us.I'm looking for hearing from you soon 回答1: You can export many forms, lists, and reports from Microsoft Dynamics AX and Enterprise Portal for Microsoft Dynamics AX to Microsoft Excel. If a form, list, or report has an Export to Microsoft Excel button on the Action Pane,

find out aif document service components

半世苍凉 提交于 2019-12-24 06:02:04
问题 I'm in an AX 2012 R2 environment. I've a custom document service in our environment. I can see it by opening the AIFService form in the AOT. There may be a better way of browsing all the available document services. I haven't found it yet. Anyway, how do I find out all the parts (query, document name, document class name) associated with this custom service, assuming the standard naming conventions haven't been followed? Thank you. 回答1: To know what document services are available, go to the

How to Update/Insert/Delete CrossCompany

南楼画角 提交于 2019-12-13 19:13:14
问题 is possible to make insert, update or delete crossCompany in axapta? i am trying to do that, debugging in my query i have this: select forUpdate crossCompany tlRemoteLocationInfo where tlRemoteLocationInfo.RemoteLocationId == "someId"; if (tlRemoteLocationInfo.RecId) { ttsBegin; changeCompany(tlRemoteLocationInfo.dataAreaId) //then i make mi update to fields and then i make this: tlRemoteLocationInfo.update(); ttsCommit; } i have a try catch, and debugging, fails to update in the method