Posts

Showing posts from 2011

Write data to Word Document

COM document; COM wordDocument; COM range; COM app; ; app = new COM("Word.Application"); app.visible(true); document = app.Documents(); wordDocument = document.add(); wordDocument.activate(); range = wordDocument.range(); range.insertBefore("Data written from AX .");

AX 2012 table inheritance

Image
Inheritance in AX Tables Y es, we can now inherit the tables as well which means less code writing and extending the capabilities of base table to be used in derived table. Important: [Do not use term “Parent” when discussing inheritance. – As per MSDN] [Do not use “Child” when discussing inheritance. – As per MSDN] Two main properties to enable the table inheritance are: · SupportInheritance · Extends Need of Table Inheritance : · When there is 1:n or n:n relationships between two tables · When base table and derived table both carry different information about same item/object. Scenario: The organization has 50 data-cards and allocates it periodically to the employees travelling to customer place. The system need to capture the information of data-cards with their unique number in one table, details of purchase and vendor in second table, data about data-cards issued to employees in third table and data about damage/loss of data-cards...