02 February 2016

Dynamics AX 7 Release date

HI All,

Microsoft Dynamics AX7 is going to release in this year.
Coming Soon...


AX 2012 Financial Dimension main tables and relations

Hi,

Below are the financial dimension tables and relations:

DimensionAttribute -> RecId

DimensionAttributeValue.DimensionAttribute == DimensionAttribute.RecId

DimensionAttributeValue.Owner == HcmWorker.RecId

DimensionAttributeValueSetItem.DimensionAttributeValue == DimensionAttributeValue.RecId

DimensionAttributeValueSetItem.DimensionAttributeValueSet == DimensionAttributeValueSet.RecId

Dimension value View:
DimensionAttributeValueSetItemView

Happy Daxing :-)

01 November 2015

How to get the AX info infolog value in ax 2009 / 2012 Exception handling example.

static void exceptionHandling(Args _args)
{
CustTable cust;
int i;
CustProjErrorStack custProjErrorStack;
;

try{
while select cust where cust.ABC_Approval != noyes::Yes
{
if(CustTable::find(cust.AccountNum))
{
}
}
}
catch(exception::Error)
{

for (i=1; i<=infolog.line(); i++)

{

custProjErrorStack.ErrorType = ErrorType::Error;
custProjErrorStack.Message = infolog.text(i);
custProjErrorStack.insert();

}

}
}

28 September 2015

Woflow AX 2009 and AX 2012


Purchase order workflow -> enable and disable the posting buttons.

\Classes\PurchTableType\mayInvoiceBeUpdated

//For PO workflow begin
select firstonly workflowConfigurationTable
where workflowConfigurationTable.TemplateName == "PurchOrderApproval"
&& workflowConfigurationTable.Enabled == Noyes::Yes;

if(workflowConfigurationTable.RecId)
{
ok = ok && (purchTable.State == PurchReqWorkflowState::WorkflowCompleted);
}
//For PO workflow end

\Classes\PurchTableType\mayPurchaseOrderBeUpdated

//For PO workflow begin
select firstonly workflowConfigurationTable
where workflowConfigurationTable.TemplateName == "PurchOrderApproval"
&& workflowConfigurationTable.Enabled == Noyes::Yes;

if(workflowConfigurationTable.RecId)
{
ok = ok && (purchTable.State == PurchReqWorkflowState::WorkflowCompleted);
}
//For PO workflow end

06 August 2015

check the caller from in ax 2012

Public Static void main(Args _args)
{

if(_args.dataset() == tableNum(CustTable))
{
}

}

Merge Dimensions (MainAccountId and LedgerDimensions) defaultDimension in D365 F&O and X++

 public DimensionDynamicAccount getLedgerDimension(container _conData, TransDate _transDate = today()) {     int                            ...