Monthly Archives: July 2010
Error executing code, wrong variable assignment
I composed a post regarding “Error executing code” error executing code long time back at blog spot, I thought to shift this post here now. This post is still the useful. Please find the link at the address below
http://dynamicsaxposed.blogspot.com/2009/08/error-executing-code-wrong-variable.html
Comparison between SAP and Dynamics Ax
Hi all-
I found some good links regarding SAP vs Dynamics AX. This will give you idea where we stands, what our product Dynamics Ax is all about? And can we even compare SAP with dynamics AX?
Those of you who have already read these articles, please ignore this email J.
SAP vs dynamics AX
Why Dynamics Ax is better than SAP
http://dynamics-ax.blogspot.com/2007/01/why-dynamics-ax-beats-sap.html
Why you should migrate from SAP to Dynamics Ax
This is what SAP expert says about dynamics AX
http://searchmanufacturingerp.techtarget.com/generic/0,295582,sid193_gci1326035_mem1,00.html
Ways of implementing “Go to main table” functionality in Ax
I was working on the “GO to main table” Functionality today and came across many different techniques that AX use for implementing this functionality. So I thought to note it down all the techniques here. There are 3 ways of implementing this functionality
1. Define the relationship with the table on the EDT.
2. Define the Form in the “FormRef” property of the table in the data dictionary
3. Override the jumpRef(…) method at the control level or the dataSourcefield level
| Args args;
MenuFunction menuFunction; if (!this.RecId) { return; } args = new Args(); args.caller(_caller); args.record(this); args.parmEnum(AllChosen::Chosen); menuFunction = new MenuFunction(menuitemdisplaystr(LedgerTransVoucher1), MenuItemType::Display); menuFunction.run(args); |
Now that we have so many options, the question is why we have so many methods and what the scenarios in which these methods are used.
1. EDT “go to main table” functionality
This functionality is normally used when you don’t have a normal foreign key à primary key relationship between the tables and you are dropping a field into another table. This practice is going to be removed eventually from AX. The reason for this having relationship on the EDT is not a good practice and have high impact when it comes to reusability.
For instance, ProjId EDT.
2. Table formRef “Go to main table” functionality
This is used when you have a foreign key relationship between the tables on the basis of RecId.
3. “Go to main table” functionality by jumpRef
This is used when you do not have the direct relationship or field (which has the relationship on the EDT) between the two tables and still you want to explicitly provide this functionality.
Regards,
Fawad



