10.04.2007, 21:12 | #1 |
Участник
|
casperkamal: Creating graphs in Dynamics Ax
Источник: http://casperkamal.spaces.live.com/B...CD63!262.entry
============== Creating a Graph with Dynamics Ax is quite easy. This article will deal on creating a simple graph. The Graphics class in Ax helps out in creating graphs. To Start with on using this class we shall creat a simple form , 1. Add a activex control of type ChartObject to the Form 2. You can either directly use the graphics class to display the data when there is no user interaction. 3. Now creat a method called createGraph in your form > In this method let us attempt to show all the Total accounts against their balance provided their balance value is greater than zero. The code would be something like this LedgerTable ledgerTable; #chartFx ; //GraphicsWindow - Activex control name graphics = Graphics::newGraphicsTitlesLayout(GraphicsWindow, 100, 200, 'Title', 'X', 'Y', 'z',#CT_TOOL ,1, 1, 1); graphics.create(); graphics.parmTitleXAxis('AccountNum'); graphics.parmTitleYAxis('Balance'); graphics.parmHeight(150); graphics.parmWidth(300); while select AccountNum from ledgerTable where ledgerTable.AccountPlType == LedgerAccountType::sum { if (ledgerTable.balance() > 0) { graphics.loadData(ledgerTable.AccountNum, '', ledgerTable.balance()); } } graphics.showGraph(); 4. Call this method on the init method of your form 5. Now Just compile save and run, you should get a graph like the one below ..... so simple right :) on the next post let us see about extending and using the graphics class ................ mmm how about making salary graphs !!!!! Источник: http://casperkamal.spaces.live.com/B...CD63!262.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
10.04.2007, 21:39 | #2 |
Участник
|
на русском http://axapta.mazzy.ru/lib/graphics/
|
|
Теги |
chart, график |
|
|