Option 1:
DimensionAttributeValueSetStorage dimStorage;
str dimval;
dimval = DimensionAttributeValueSetStorage::find(salesQuotationTable.DefaultDimension).getDisplayValueByIndex(2);
info(strFmt("%1",dimval));
Option 2:
public void financialDimValue(Name _attributeName)
{
DimensionAttributeValueSet ceDimensionAttributeValueSet;
DimensionAttributeValueSetItem ceDimensionAttributeValueSetItem;
DimensionAttributeValue ceDimensionAttributeValue;
DimensionAttribute ceDimensionAttribute;
;
select RecId from ceDimensionAttributeValueSet
where ceDimensionAttributeValueSet.RecId == salesQuotationTable.DefaultDimension
join RecId, DisplayValue from ceDimensionAttributeValueSetItem
where ceDimensionAttributeValueSetItem.DimensionAttributeValueSet == ceDimensionAttributeValueSet.RecId
join RecId from ceDimensionAttributeValue
where ceDimensionAttributeValue.RecId == ceDimensionAttributeValueSetItem.DimensionAttributeValue
join RecId, Name from ceDimensionAttribute
where ceDimensionAttribute.RecId == ceDimensionAttributeValue.DimensionAttribute
&& ceDimensionAttribute.Name == _attributeName;
inventSite = InventSite::find(ceDimensionAttributeValueSetItem.DisplayValue);
}
This blog is for Dynamics AX (AXAPTA) Developers,this will help you for your development issues. This site contains some Microsoft Dynamics AX X++ Codes for use in your day to day use.
Subscribe to:
Post Comments (Atom)
Ledger Voucher creation Framework and x++ code to create ledger voucher
Please click her for MS reference file Below is the out of the box example reference and code. SalesInvoiceJournalPostSubBill_Extension->...
-
{ "Message" : "Please verify that the user is valid and set up correctly." } Sol: System Administration > Se...
-
Please click here to access Custom Workflow step by step process:
-
FormRun formRun = sender.formRun(); Object inventTrans_ds = formRun.dataSource(formDataSourceStr(InventMarking,InventTransO...
This comment has been removed by the author.
ReplyDelete