Friday, December 23, 2011

Cheque Printing in Ax2009 is very simple

Cheque Printing in Ax2009 is very simple.Already there are classes and reports available in Ax2009.
Just the matter is change the develop the new report(with the help of existing Cheque reports) and code in classes.
Create a new base enum in ChequeFormType(ex:HDFC)
List of classes for Cheque:
1.BankPrintTestCheque(for testing the layout of the cheque)
2.BankChequePrint(is the main class for 'Bank Cheque printing')
3.CustVendCheque(calles when vendor payment and customer payemnt->generate payment)
add the code whereever ChequeFormType enum is used :)-
dublicate the existing report 'Cheque_DK' and rename.
change the design as per the HDFC Bank layout.

Test ur cheque layout process:-
1. select a perticular bank a/c in bank details form under Bank Module.
2. Click setup button->cheque layout.
3. select cheque number as fixed.Select check form as 'HDFC' then click Print test button.
Note: before testing the print layout for hdfc bank need to develop a new report.

The same report is called when u print the report from the vendor payment journal :)-
good luch

Friday, April 1, 2011

display the current user Name

1) The following code is used to display the current user Name .

display Name userName()
return XUserInfo::find(false, curuserid()).Name;

display the current user Name

1) The following code is used to display the current user Name .

display Name userName()
return XUserInfo::find(false, curuserid()).Name;

line numbers in the form

1) In order to generate the line numbers in the form insert the following code in the table insert method:

void insert()
LedgerBalColumnsDim lbColumnsDim;
if (this.Column == 0)
select maxof(Column) from lbColumnsDim
where lbColumnsDim.BalanceSheet == this.BalanceSheet;
this.Column = lbColumnsDim.Column + 1;
Take the same table instance that is used in the form datasource.


As you all know this year (2011) Microsoft is planning to release Dynamics Ax 2012 or famously called as Ax 6.0. So what we can expect in this new version, have a look below

1. Shift away from AOD files to a SQL Server-based model store, model files (.axmodel), the perception of "parallel layers" using models, the command-line utility AXutil to manage manage models and model files as well as the graphical Model Management tool for managing models and model files.

2. Setting up security in Microsoft Dynamics AX using the new role-based security model. Wherein you will define the security artifacts in the AOT and creating security policies.

3. In Current version DAX 5.0 Configuration of Microsoft Dynamics AX2009 Role Centers and analysis cubes required a BI developer. In AX 6.0, setup and configuration of Analysis cubes can be done by a customer/partner with a wizard driven interface without having to go into BI development studio.

4. New eventing feature will be available in Microsoft Dynamics AX, it can be used to decouple publishers and subscribers, alleviating many upgrade issues.

5. Element IDs (such as table and class IDs) have been a problem since Microsoft Dynamics AX1 because they are limited to small ranges and often results in conflict between solutions. This, however, is changed in Microsoft Dynamics AX6.

6. A lot of Workflow enhancements has been done in Ax 6.0, wherein user will configure the workflow the way one creates flowchart in Visio.

7. Layout guidelines to support which language(X++ or .Net) or development environment (Visual studio or Morphx) to choose while doing customizations or developments. So guys/gals please make yourself updated with C# development.

8. Tool available to Convert Reports developed in X++ to SSRS Report!!! And also the way used to deploy the SSRS Reports has been changed.

9. New enhanced X++ editor with lots of colored indentation, intellisense features and code formatting!!

10. New Reporting programming model based on RDP which provides more control over data and UI design.

Prepare yourself to upgrade/development battle and enjoy new version once it reaches market!!!!