HI All,
Microsoft Dynamics AX7 is going to release in this year.
Coming Soon...
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.
02 February 2016
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 :-)
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 :-)
05 January 2016
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();
}
}
}
{
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
11 August 2015
06 August 2015
check the caller from in ax 2012
Public Static void main(Args _args)
{
if(_args.dataset() == tableNum(CustTable))
{
}
}
{
if(_args.dataset() == tableNum(CustTable))
{
}
}
Subscribe to:
Posts (Atom)
Merge Dimensions (MainAccountId and LedgerDimensions) defaultDimension in D365 F&O and X++
public DimensionDynamicAccount getLedgerDimension(container _conData, TransDate _transDate = today()) { int ...
-
Please click here to access Custom Workflow step by step process:
-
public InventQty onHandInventory(ItemId itemId, InventSiteId inventSiteId,InventLocationId inventLocation) { InventOnhand inventOnh...
-
1. In classDeclaration extend SrsReportDataProviderPreProcess instead of SrsReportDataProviderBase 2. Temp table properties should b...