Showing posts with label ax2009. Show all posts
Showing posts with label ax2009. Show all posts

Tuesday, December 30, 2014

Batch task progress on server for AX 2009

I already explained how to update progress for batch tasking in AX 2012. Now, it's time for AX2009.

You can simply change new() method in SysOperationProgressServer class as follows:


public void new(int _numberOfBars = 1, boolean _bypass=false)


Evidently it will increase the total execution time of a batch because SysProgress table will be updated for every task as many times as you call incCount(), setCount() etc.

So, it is worth changing construct method in RunbaseProgress class, so that the developer could decide to update progress or not.


Happy New Year!

Monday, July 11, 2011

Paint it black: How to color rows in Table form control

There a lot of answers on how to color grid lines and cells -- for example, this DisplayOption using from DAXGuy. However, my goal is to show how one can paint rows in Table form control. I use the standard tutorial form tutorial_Form_Table from AX2009.

On the table control, we need to change a bit EditControl method where we define in which color the current row will be painted. (Here, I provided you with a link where you can choose RGB colors to paint the hell at your own.)


// Color the active line in a table
FormControl editControl(int column, int row)
{
    #DEFINE.colorDarkTurkoise(112,147,219)                  // colors at your personal perception of hell
    #DEFINE.colorNeonBlue(77,77,255)
    #DEFINE.colorRosyBrown(255,193,193)
    #DEFINE.colorSaddleBrown(139,69,19)
    int oldStrColor = WinApi::RGB2int(#colorRosyBrown);     // colors for cells not in focus
    int oldIntColor = WinApi::RGB2int(#colorSaddleBrown);
    int newIntColor = WinApi::RGB2int(#colorNeonBlue);      // colors for the selected line
    int newStrColor = WinApi::RGB2int(#colorDarkTurkoise);
    ;
    // this is columns with int controls
    if ((column == 2) || (column == 4))
    {
        // not in the header
        if (row > 1)
        {
            // this is in the selected line
            if (row == table.row())
                intEdit.backgroundColor(newIntColor);
            else
                intEdit.backgroundColor(oldIntColor);
            return intEdit;
        }
        // this is the header
        else
        {
            if (row == table.row())
                editline.backgroundColor(newStrColor);
            else
                editline.backgroundColor(oldStrColor);
            return editline;
        }
    }
    else
    {
        if (row == table.row())
            editline.backgroundColor(newStrColor);
        else
            editline.backgroundColor(oldStrColor);
        return editline;
    }

}

So, when the user selects another row, all its controls change their color--it's your responsibility to return the correct form control: StringEdit, IntEdit and so on.

The second method where we redraw the form is activeCellChanged.


public void activeCellChanged()
{
    ;
    super();
    // do not forget to repaint the form!
    element.redraw();
}

Coloring can be realized much more complicated with different color scheme, calculated conditions etc.

Monday, May 2, 2011

How to find your object in AOT projects

This is a small but precious tool for AX developing.

Have you ever tried to find in which projects your objects are included? Yes, I have... Not so easy to search and look into each project.

Now, it is just a question of one click: this mighty LC Project Search will make the life easier. And good news, it is free. So, profit and enjoy!

There are three xpo-files with appropriate versions for AX 4.0, 2009, and 2012. (I have tested 2009 one). You can import it, then launch with the menu item, and this is ready to go.




Just type the name of any object you're looking for, optionally, you can choose the type of it, then press Search. Be patient, it takes some time to populate the result table.




Now, all projects contain the object are here.

Take a look at Loncar Technologies company web site: there you can get some more.

Friday, January 7, 2011

How to delete Pending Invoices

Still can't find how to kill your pending invoices? This new functionality made me crazy sometimes but now it's getting easier thanks to Raju Roy Chowdhurywho showed me this trick:

Go to
Accounts Payable --> Inquiries --> History --> Invoices

then find your invoices with Waiting status and delete them. Easy, eh?

Monday, May 4, 2009

Developer for Microsoft Dynamics AX Certification Roadmap

Microsoft Certified Business Management Solutions Professional - Developer for Microsoft Dynamics AX

MB6-819 AX 2009 Development Introduction

MB6-821 AX 2009 MorphX Solution Development

Collection 80011AE: Development I in Microsoft Dynamics AX 2009 (4 Hours)

Development I – Architecture

Development I - Data Dictionary

Development I - User Interfaces

Development I - Report Adjustments


Collection 80012AE: Development II in Microsoft Dynamics AX 2009 (3 Hours)

Development II - X++ Overview

Development II - Classes and Objects

Development II - X++ Control Statements

Development II - X++ Control Statements

Development II - Accessing the Database

Development II - Exception Handling

Development II - Appendix


MB6-820 AX 2009 Installation & Configuration

80019AE: Installation and Configuration for Microsoft Dynamics AX 2009 (6 Hours)

Installation and Configuration - Overview

Installation and Configuration - Planning Microsoft Dynamics AX Install

Installation and Configuration - Installing and Deploying Enterprise Portal

Installation and Configuration - Installing AIF Web Services

Installation and Configuration - Initializing Microsoft Dynamics AX

Installation and Configuration - Installing the Base System

Installation and Configuration – Deploying

Installation and Configuration - Installing and Deploying Workflow

Installation and Configuration - Install Microsoft Dynamics AX Reporting

MB6-825 AX 2009 Enterprise Portal Development

(-)

MB6-817 AX 2009 Trade & Logistics

80024AE: Trade and Logistics I in Microsoft Dynamics AX 2009 (9 Hours)

Trade and Logistics I - Introduction

Trade and Logistics I - Inventory

Trade and Logistics I - Purchase Orders and Purchase Order Posting

Trade and Logistics I - Serial and Batch Numbers

Trade and Logistics I - Item Arrival and Registration

Trade and Logistics I - Quarantine Management

Trade and Logistics I - Vendor Returns

Trade and Logistics I - Sales Orders and Sales Order Posting

Trade and Logistics I - Sales Order Picking

Trade and Logistics I - Over/Under Delivery and Miscellaneous Charges

Trade and Logistics I - Customer Returns

80025AE: Trade and Logistics II in Microsoft Dynamics AX 2009 (8 Hours)

Trade and Logistics II - Customer and Vendor Trade Agreements

Trade and Logistics II - Inventory Reporting and Statistics

Trade and Logistics II - Purchase Requisitions

Trade and Logistics II - Request for Quote

Trade and Logistics II - Transfer Orders

Trade and Logistics II - Sales Quotations

Trade and Logistics II - Quality Management

Trade and Logistics II - Reservations

Trade and Logistics II - Commissions

Trade and Logistics II - Inventory Journals

80010AE: Bill of Material in Microsoft Dynamics AX 2009 (6 Hours)

Bill of Materials - BOM Overview

Bill of Materials - Create Simple BOMs

Bill of Materials - Reports and Other BOM Functionality

Bill of Materials - Report a BOM as Finished

Bill of Materials - Scrap and Measurement

Bill of Materials - BOM Calculations

Bill of Materials - Creating BOMs with Versions

Bill of Materials - Sales Orders and BOMs

Bill of Materials - Working with BOM and Item Configurations

Full list of AX2009 exams