[ExtensionOf(tableStr(InventTable))]
final class AMInventTable_Extension
{
display ItemName itemName()
{
return InventTable::find(this.ChosenItemId).ItemName();
}
}
build along with base table and customization table.
Tuesday, 6 December 2016
Friday, 11 November 2016
Wednesday, 5 October 2016
Contact.TableRelationShipMetadata error thrown
have you ever encounter this error? how you solve it?
Update:
in my case, i forget to set the field in table relation. duh!
Tuesday, 4 October 2016
Value cannot be null or empty. Parameter: _designNodeName error
if you get this error,
Assuming that you are creating a menu item of ObjectType SSRSReport, you have chosen an Object from the list of SSRS Reports, but have forgotten to assign the ReportDesign property.
Tuesday, 27 September 2016
Error executing code: Wrong argument types in variable assignment.
This can be caused by two reasons:
- Code is wrong, performing some invalid assignment. (You have to fix the code.)
- Code is correct, but your application is not compiled correctly. (You should compile forward FormLetter class, or - because you may have such issues in more places - compile the whole AOT.)
Sunday, 25 September 2016
get main account from financial dimension
hi guys,
ive encountered a task where i need to get the main account from financial dimension entered by user, which have transaction in trail balance.
note that,
financial dimension that linked to the main account could be differ from in the main account.
'DimensionAttributeLevelValueView'
to do so , i used this select statement,
select DimensionAttribute
join DimensionAttributeLevelValueView
where DimensionAttributeLevelValueView.DimensionAttribute == DimensionAttribute.RecId
&& DimensionAttributeLevelValueView.DisplayValue == 'financial dimension value'
join DimensionAttributeValueCombo
where DimensionAttributeValueCombo.RecId == DimensionAttributeLevelValueView.ValueCombinationRecId
join MainAccount
where MainAccount.RecId == DimensionAttributeValueCombo.MainAccount;
Happy Coding! :)
ive encountered a task where i need to get the main account from financial dimension entered by user, which have transaction in trail balance.
note that,
financial dimension that linked to the main account could be differ from in the main account.
- user can either change the financial dimension when they want to post the transaction or,
- user can changed the financial dimension after the transaction posted, with diffrerent financial dimension.
'DimensionAttributeLevelValueView'
to do so , i used this select statement,
select DimensionAttribute
join DimensionAttributeLevelValueView
where DimensionAttributeLevelValueView.DimensionAttribute == DimensionAttribute.RecId
&& DimensionAttributeLevelValueView.DisplayValue == 'financial dimension value'
join DimensionAttributeValueCombo
where DimensionAttributeValueCombo.RecId == DimensionAttributeLevelValueView.ValueCombinationRecId
join MainAccount
where MainAccount.RecId == DimensionAttributeValueCombo.MainAccount;
Happy Coding! :)
Monday, 19 September 2016
Cant debug data provider (DP) class
if you are having trouble debugging DP class,
please check if its using SRSReportDataProviderBase?
if it does extend it,
just for debugging purposes you can use SrsReportDataProviderPreProcess
replacing the SRSReportDataProviderBase.
but to keep using the SrsReportDataProviderPreProcess
you have to change table from temp to permanent.
more details, can be read at
AX SSRS - Regular Processing VS PreProcessing
please check if its using SRSReportDataProviderBase?
if it does extend it,
just for debugging purposes you can use SrsReportDataProviderPreProcess
replacing the SRSReportDataProviderBase.
but to keep using the SrsReportDataProviderPreProcess
you have to change table from temp to permanent.
more details, can be read at
AX SSRS - Regular Processing VS PreProcessing
Friday, 26 August 2016
get current user name
info(strFmt('%1: %2', "Current user: ", xUserInfo::find(false,curUserId()).name));
Monday, 6 June 2016
Error Unable to log on to Microsoft Dynamic AX
the way i solve this problem are
1. make sure filled in the business connector proxy in System administration/Setup/System/System Service Account
Error _reportName cannot be null or empty.
if you encounter this kind of error
in this specific case it looks like an earlier full compile did not finish.
i would suggest you to first compile the class mentioned in the error message and see if it solves the problem.
- go to AOS.
- find classname mentioned in the error message.
- compile it.
Monday, 29 February 2016
Subscribe to:
Posts (Atom)