public Name GetDepartmentName (DimensionDefault _dimension)
{
Name displayName;
DimensionAttributeValueSetItem valueSetItem;
DimensionAttribute dimAttribute;
DimensionAttributeValue dimAttributeValue;
//CustInvoiceLine _custInvoiceLine;
//CustInvoiceTable CustInvoiceTable;
select DimensionAttributeValueSet from valueSetItem
where valueSetItem.DimensionAttributeValueSet == _dimension
join RecId from dimAttributeValue
where valueSetItem.DimensionAttributeValue == dimAttributeValue.RecId
join RecId from dimAttribute
where dimAttributeValue.DimensionAttribute == dimAttribute.RecId
&& dimAttribute.Name == enum2str(sysdimension::Department);
displayName = DimensionAttributeValue::find(dimAttributeValue.RecId).getName();
return displayName;
}
Subscribe to:
Post Comments (Atom)
Create number sequence in D365 FO
Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...
-
Dialogbutton dialogButtonConfirm; ; dialogButtonConfirm = Box::yesNo("continue ", dialogButton::Yes, ...
-
Just use the below code to remove the special character from the string. strRem('String','*'); You can replace * with...
-
This code in the lookup() method. The same code can be written in three places to achieve the lookup. 1) Under AOT->Table->Metho...
No comments:
Post a Comment