AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 10.04.2007, 21:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
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  
mazzy is offline
mazzy
Участник
Аватар для mazzy
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
29,472 / 4494 (208) ++++++++++
Регистрация: 29.11.2001
Адрес: Москва
Записей в блоге: 10
на русском http://axapta.mazzy.ru/lib/graphics/
__________________
полезное на axForum, github, vk, coub.
Теги
chart, график

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dynamics AX: Managing Your Supply Chain Using Microsoft Dynamics AX 2009 - Book Review Blog bot DAX Blogs 0 31.03.2009 23:06
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Inside Dynamics AX 4.0: Usage Scenarios Blog bot DAX Blogs 0 04.10.2007 05:15
casperkamal: Creating new Syscontext Menu in Dynamics Ax 4.0 Blog bot DAX Blogs 0 06.06.2007 10:07
casperkamal: creating Transparent forms in Dynamics Ax Blog bot DAX Blogs 0 20.04.2007 19:20

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 06:11.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.