Posts

Showing posts from 2018

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...

temp table data

---------------------------------------- tmpProjAdjustmentLocalAdjustFinal = projAdjustmentValidation.insertIntoTmpProjAdjustment(tmpProjAdjustment_ds,tmpProjAdjustment,tmpProjAdjustmentCost);     if (projAdjustmentValidation.validate() )     {         delete_from tmpProjAdjustment;         tmpProjAdjustment.setTmpData(tmpProjAdjustmentLocalAdjustFinal);         tmpProjAdjustment_ds.research();         throw error('@OGI3856');     } ---------------------------- // a_OGI_61X_TFS3436_PWPOnProjectMatching : Customization by sreekanth on 29 Mar 2017 - New Method public TmpProjAdjustment insertIntoTmpProjAdjustment(FormDataSource  tmpProjAdjustment_ds,                                 TmpProjAdjustment   tmpProjAdjustment,               ...