DefaultDimenion etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
DefaultDimenion etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
18 Şubat 2014 Salı
Get defaultDimension values from LedgerDimension
Hi AX coders,
When you need to get the default dimension values of ledger dimension you can simply use the code below.
DimensionDefaultingEngine class has a getLedgerDimensionSpecifiers method which returns dimensionAttribute recId and a container which holds : dimension display value, dimension attribute value recId and hash key of the dimension.
If you send true after ledgerDimension value return value skip the main account information.
container c;
Map map;
MapEnumerator me;
int i;
;
map = DimensionDefaultingEngine::getLedgerDimensionSpecifiers(5637147595);
me = Map.getEnumerator();
while (me.moveNext())
{
info(strFmt("%1",conPeek(me.currentValue(),1)));
}
Have a nice coding
Alper.
Etiketler:
AX,
AX 2012,
Ax2012,
Default dimension,
DefaultDimenion,
Dyanmics AX,
Dynamics AX 2012,
get defaultDimension from LedgerDimension,
Ledger Dimension,
LedgerDimension,
Microsoft Dynamics AX
12 Haziran 2013 Çarşamba
AX 2012 de boyutlarının listelenmesi
Merhaba,
AX 2012 ile değişen boyut yapısı ile birlikte boyutlarını listelemek için kullandığımız eski yöntemlerde rafa kalktı.
Yeni boyut yapısı ile yaratılmış bir hareketin boyut bilgilerini listelemek istediğimizde aşağıdaki örnek kodu kullanabiliriz.
VendTrans vendTrans;
DimensionAttributeValueSetStorage dimStorage;
Counter i;
select firstOnly vendTrans;
dimStorage = DimensionAttributeValueSetStorage::find(vendTrans.DefaultDimension);
for (i=1 ; i<= dimStorage.elements() ; i++)
{
info(strFmt("%1 = %2", DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name,dimStorage.getDisplayValueByIndex(i)));
}
Bol AX lı günler.
AX 2012 ile değişen boyut yapısı ile birlikte boyutlarını listelemek için kullandığımız eski yöntemlerde rafa kalktı.
Yeni boyut yapısı ile yaratılmış bir hareketin boyut bilgilerini listelemek istediğimizde aşağıdaki örnek kodu kullanabiliriz.
VendTrans vendTrans;
DimensionAttributeValueSetStorage dimStorage;
Counter i;
select firstOnly vendTrans;
dimStorage = DimensionAttributeValueSetStorage::find(vendTrans.DefaultDimension);
for (i=1 ; i<= dimStorage.elements() ; i++)
{
info(strFmt("%1 = %2", DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name,dimStorage.getDisplayValueByIndex(i)));
}
Bol AX lı günler.
Etiketler:
AX,
AX 2012,
Default dimension,
DefaultDimenion,
Dimension,
Dimension storage,
DimensionAttribute,
DimensionStorage,
Dynamics AX,
Dynamics AX 2012,
Microsoft Dynamics AX 2012
Kaydol:
Kayıtlar (Atom)


