Posts

Get individual Ledger Dimension displayValue in d365 fo x++

 private DimensionDisplayValue getAttributeValueFromCombination(LedgerDimensionAccount _LedgerDimensionAccount,Name _attributeName) {     DimensionAttributeLevelValueAllView dimAttrLevelAll;     DimensionAttribute                  dimAttribute;       select DisplayValue from dimAttrLevelAll     join dimAttribute     where dimAttribute.RecId                    == dimAttrLevelAll.DimensionAttribute && dimAttrLevelAll.ValueCombinationRecId == _LedgerDimensionAccount && dimAttribute.Name                     == _attributeName;     return dimAttrLevelAll.DisplayValue; }

how to get all financial dimension with pipe delemeter in d365 fo x++

     public str getAllFinancialDimensions(RecId _defaultDimension)     {         DimensionAttributeValueSetStorage dimStorage;         DimensionAttribute                 dimAttr;         DimensionAttributeValue            dimAttrValue;         DictTable                          dictTable;         Common                             common;         str                                result = '';         str                                name, value, displayV...

get LedgerDimension Values in d365 fo x++

   private str getDimensionCombinationId(LedgerDimensionAccount _ledgerDimension)   {       DimensionAttributeValueCombination  dimAttrValueComb;       DimensionStorage                    dimensionStorage;       DimensionStorageSegment             segment;       int                                 segmentCount, segmentIndex;       int                                 hierarchyCount, hierarchyIndex;       str                                 segmentName, segmentDescription;       SysDim             ...

ExecuteQuery From UAT or Produ in d365 fo x++

1). Read the given link and install in your local vm   https://github.com/TrudAX/XppTools#installation

Get Default Dimension Description in d365 fo x++

  public str getDimensionDisplayValue(DimensionDefault _dimension, Name _dimensionName)  {      str dimensionValue;      DefaultDimensionView dimensionView;      select firstonly1       dimensionView       where dimensionView.DefaultDimension == _dimension       && dimensionView.Name == _dimensionName;      return dimensionView.dimensionDiscription();;  }

How to Open multiple instances of Report at the same time using X++ code in D365 Fo

  1.) Declare contract Class 2 variales     List                  customerList;     str                   customer;     [DataMemberAttribute('customer'), SysOperationLabelAttribute("customer Account")]     public str ParmCustomer(str _customer = customer)     {         customer  =  _customer;         return customer;     }     [DataMemberAttribute('customerList'),SysOperationLabelAttribute("customer"),AifCollectionTypeAttribute("customerList", Types::String)]     public List ParmcustomerList(List _customerList = customerList)     {         customerList  =  _customerList;         return customerList;     } 2). controller class  Decalre on controller class using  System.IO.Compression...

Hide Report Parameter From contract class in d365 fo x++

Add propertiy  SysOperationControlVisibilityAttribute( false ) [DataMemberAttribute,SysOperationControlVisibilityAttribute( false )] public str parmparameter(str _buffer=buffer) { buffer     =      _buffer; return  _buffer; }