Posts

Showing posts from November, 2013

Update Customer/Vendor Financial dimensions in AX 2012

static void ImportCustomerDimension( Args _args) { AsciiIO asciiIO; Filename filename; NoYesId skipFirstLine; Container line; Dialog dialog; DialogField dialogFileName, dialogSkipFirstLine; DimensionAttribute dimAttr; DimensionAttributeSetItem dimAttrSetItem; DimensionEnumeration dimensionSetId; Container combinedContainer; CustTable custTable; CustAccount custAccount; Counter counter; DimensionAttributeValue dimAttributeValue; //Dialog dialog = new Dialog ( "Import Default Dimension" ); dialogFileName = dialog.addField(extendedTypeStr(Filenameopen), "File name" ); dialogSkipFirstLine = dialog.addField(extendedTypeStr( NoYesId ), "Skip first line" ); if (dialog.run()) { file...

Get Segments from Segment Entry Control in LedgerDimension

Image
  We can get the different segments present in segment entry control. In the below example i am using GL - Inquiries - Voucher transactions screen.  On this screen lets try to get Main Account segment & display in the grid. Write a display method on  GeneralJournalAccountEntry table.  public display DimensionValue displayMainAcct() {     #define.MainAccount('MainAccount')     DimensionStorage        dimensionStorage;     int                     segmentCount, segmentIndex;     DimensionStorageSegment segment;     DimensionValue          segmentName, MainAccount, segmentValue, MainAcctValue;     container               segments;     dimensionStorage = DimensionStorage::findById(this.LedgerDimension);      ...