Posts

Showing posts from May, 2024

Calculations in view (Computed column)

-------------------------------------------------------------Addition-------------------------------------------   private static str compLineAmountMethod()     {         str                 sFirstLine, sLineAmount, sReturn, sReturn1, sSetItemAttr, sCostTotal, sSumLineDisc;         sFirstLine          = SysComputedColumn::returnField(tableStr(ExportInvoicesDataCustomsView_ABC), #DataSourceName, fieldStr(SetComponents_ABC, FirstLine));         sLineAmount         = SysComputedColumn::returnField(tableStr(ExportInvoicesDataCustomsView_ABC), #DataSourceName1, fieldStr(CustInvoiceTrans, LineAmount));         sSetItemAttr        = SysComputedColumn::returnField(tableStr(ExportInvoicesDataCustomsView_ABC), identifierStr(ItemAttributeValueView_SetItem), fieldStr(ItemAttributeValueView_AB...

Adding Range From Miltiselect Of the batch job

 List                            poolList;         container                       conPool;         NoYes                           splitPurchLine;         boolean                         flag = false, equalQuantities = false;         Qty                             originalQty =0 ;         q                               = new Query(contract.getQuery());         qbds                        ...

Create custom feature to add in the feature management

Steps to write custom feature code 1. Create class to create new feature  2. Build the project after creating the class 3. In the feature management click on check for updates to see the new feature 4. Use this class to enable/disable new feature from feature management, condition is written like below Condition by using feature management   if (FeatureStateProviderV0::isFeatureEnabled(ClassNameFeature ::instance())) { //Code here } Creation of class : using Composition = System.ComponentModel.Composition; [Composition.ExportAttribute(identifierstr(Dynamics.AX.Application.IFeatureMetadataV0))] public final class ClassNameFeature implements IFeatureMetadataV0 {     private static ClassNameFeature instance;     private void new()     {     }     private static void TypeNew()     {         instance = new ClassNameFeature();     }     [Hookable(false)]     public...