Posts

Base enum values in Dynamics 365

By writing the statement 1 we will get the basenum id. And then writing the second statement we will get the list of total values. BaseEnum - 'LogisticsAddressElement Stataement 1 : select * from ENUMIDTABLE where name = 'LogisticsAddressElement' Stataement 1 : select * from ENUMVALUETABLE where ENUMID = 4709

Model export import D365

ModelUtil.exe -export -metadatastorepath=K:\AosService\PackagesLocalDirectory -modelname="CUS_DynawayEAM" -outputpath=c:\Temp ModelUtil.exe -import -metadatastorepath=K:\AosService\PackagesLocalDirectory -file=C:\Users\Adminf01c92d4ba\Desktop\Models\CUS_DynawayEAM-Columbus.axmodel

How to find financial dimension description

DefaultDimensionView        defaultDimensionView; if(this.DefaultDimension > 0)     {         select defaultDimensionView             where defaultDimensionView.DisplayValue == this.DimensionValue4 (client or dept)             &&    defaultDimensionView.DefaultDimension == this.DefaultDimension;         if(defaultDimensionView)             description = defaultDimensionView.dimensionDiscription();     }

SourceDocumentLine accounting statu field updated code

In the following classes Sourcedocumentline table field Accountingstatus will update when having the budget. While clicking on the create vendor invoice in the purchase order details form. \Classes\SourceDocumentLineTargetStateProvider\setTargetStatusForBudgetCheck      28  \Classes\BudgetControlSourceDocumentLinePolicy\isBudgetControlConfigured      53
Image
OOPs Concepts: O bject- O riented  P rogramming ( OOP ) uses a different set of programming languages than old procedural programming languages ( C, Pascal , etc.). Everything in OOP  is grouped as self-sustainable " objects ". In order to clearly understand the object orientation, let’s take your “ hand ” as an example. The “ hand ” is a class. Your body has two objects of type hand, named left hand and right hand. Their main functions are controlled/ managed by a set of electrical signals sent through your shoulders (through an interface). So the shoulder is an interface which your body uses to interact with your hands. The hand is a well architected class. The hand is being re-used to create the left hand and the right hand by slightly changing the properties of it. Object: An object can be considered a " thing " that can perform a set of   related   activities. The set of activities that the object performs defines the object's behavior. For e...

Displaying ledger Dimension Value and name

static void getDimensionCombinationValues(Args _args) {     // DimensionAttributeValueCombination stores the combinations of dimension values     // Any tables that uses dimension  combinations for main account and dimensions     // Has a reference to this table’s recid     DimensionAttributeValueCombination  dimAttrValueComb;     //GeneralJournalAccountEntry is one such tables that refrences DimensionAttributeValueCombination     GeneralJournalAccountEntry          gjAccEntry;     // Class Dimension storage is used to store and manipulate the values of combination     DimensionStorage        dimensionStorage;     // Class DimensionStorageSegment will get specfic segments based on hierarchies     DimensionStorageSegment segment;     int                     s...

Display Default Dimension Description Name AX 2102

private Name NA003DivisionDimensionName(DimensionDefault    _defaultDimension) {     DimensionAttributeValueSetItem  setItem;     DimensionAttributeValue         dimAttrValue;     DimensionAttribute              dimAttr;     Common                          common;     DictTable                       dictTable;     str                             Name;     DimensionAttributeValueSetStorage set = new DimensionAttributeValueSetStorage();      select RecId, DisplayValue from setItem where setItem.DimensionAttributeValueSet == _defaultDimension         join dimAttrValue         where...