Sunday, March 11, 2012

Viewing reports in XPS - Management Reporter 2012 Feature Highlight

An XPS document is any file that is saved in the XML Paper Specification, or .xps, file format. You can create XPS documents (.xps files) by using any program that you can print from in Windows; however, you can only view XPS documents by using an XPS Viewer, such as the one included in this version of Windows


http://blogs.msdn.com/b/dynamicscpm/archive/2012/03/09/viewing-reports-in-xps-management-reporter-2012-feature-highlight.aspx

http://windows.microsoft.com/en-US/windows7/What-is-the-XPS-Viewer

Microsoft Dynamics Download Center

http://www.microsoft.com/download/en/dynamics.aspx?q=dynamics&fs=applicableproducts~%255e%2522Business%2520Solutions%2522&p=0&r=10&t=&s=availabledate~Descending

Dynamics Ax Data Dictionary

Worth reading -

Moving a model to another layer



ID change in Dynamics AX data dictionary


Ax 2012 Editor improvements


In Microsoft Dynamics AX 2012, a new X++ Editor is introduced which replaces the current legacy editor. The new X++ Editor is based on hosting a Visual Studio 2010 Editor Framework control.
Here are a few Tips & Tricks:
  • Type ‘main’ + TAB: The editor generates a standard Main-method.
    Note: This trick works with all templates (right-click –> Add-in –> Template)
  • Type ‘///’ on the top of a method. When you do so you get the standard header for generating XML-documentation.
  • While the intellicense drop-down is shown press CTRL. The drop-down dialog becomes transparent.
  • CTRL + ‘c’ at the begin of the line will copy the whole line.
  • CTRL + ‘i’ and start typing the word that you want to find. If you want the next, just type CTRL + ‘i’ again.
  • CTRL + scroll up/down to zoom in and out to the code.
  • Make a link to AX32.exe -development to go directly to the development-mode.

Overview of the CIL Processes

In Microsoft Dynamics AX, scheduled batch jobs written in X++ must first be compiled into the common intermediate language (CIL) of the .NET Framework. Therefore, X++ batches can sometimes complete much faster than if they were run as interpreted p-code.


http://msdn.microsoft.com/en-us/library/gg839855.aspx

Friday, March 9, 2012

Object does not have method error in AIF - Dynamics Ax 2012

There is sometime an error prompts during processing outbound files which says - Error executing code: AxXXX class object does not have parmXXX(). This parmXXX() method may be a new calculated/unbounded method or a bounded method in AxXXXX class objects which extends AxInternalBase.






























There are few things need to be performed to take this error out. It is basically a compilation problem where the method object can not be found at runtime.
First, use compile and  compile forward for all the objects pertaining to a AIF document service.
Secondly, compile forward the base class - AxInternalBase
At last, select the project node and "Generate incremental CIL".

































The outbound messages can be processed now with not this type of error.

Tuesday, March 6, 2012

Adding calculated field in Dynamics Ax 2012 AIF Data policy

Sometime, it required to add few fields which are unbounded, i.e. not directly available in a table or query pertaining to AIF service class. These calculated fields are made available using a parm() method. 

For example, in the existing CustCustomerService, we need to send the trading partner company id. In this case, we will create a parm method named as parmIntercompanyComapnyId().

Write down these method in the AIF artifacts of type AxBc class for the underlying table.



Refresh the AIFService form from AOT. This will list down the new fields in the document data policy form.


 

Monday, March 5, 2012

Adding fields to existing AIF service

After adding a few new fields to existing query/table, pertaining to AIF document service, will not be automatically appears in the document data policies for a service. In order to reflect those new fields in the data policies, you need to open a form from AOT named as AIFService and click the refresh button on this.


Dynamics Ax 2012 Workflow - From business point of view


  • A workflow represents a business process
  • Defines how a document flows or moves through the system
  • Shows who must process and approve documents.
  • Helps modeling business process with code less.
  • Workflows in dynamics AX are easy to enable.
  • Flexible to design and maintain.

Workflow Type
  • A category that defines the module (AP, AR, FA etc.) that the workflow type is available.
  • To add workflow support for a document (PR,SO etc) in Microsoft Dynamics AX 2012.
In earlier version, workflow types were known as workflow templates. In Ax 2012, Workflow templates have been renamed workflow types.

Workflow Design
  • Set condition to activate the workflow
  • Set notification for workflow events
  • Define manual tasks, automated tasks and approvals supported for the workflow
  • Setting conditional decision, manual decision, parallel activity, sub-workflows, Line-item workflow etc.

Activate workflow
  • After we create a workflow in Microsoft Dynamics AX, we must implement a way to activate the workflow at runtime to display the workflow in your application.
  • Application users start a workflow when they click the Submit button on forms that are enabled for workflow and have a valid workflow configuration.

Out-of-the-box workflow types

To create a workflow, you must first select the type of workflow that you want to create. Microsoft Dynamics AX 2012 has a of list of types of workflows that we can create in each module. The list also describes
  • what each type of workflow is used for.
  • whether the workflows of each type are associated with a specific company in the organization or with the whole organization.







Enterprise Portal is Not Working on Dynamics AX 2012 Hyper-V Image

I found this helpful link for Dynamics Ax 2012 enterprise portal to be working perfectly in Hyper-V Image.
http://www.amer-ax.com/2011/12/enterprise-portal-is-not-working-on-dynamics-ax-2012-hyper-v-image/