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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 29.09.2013, 03:50   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
atinkerersnotebook: Embedding PowerView Dashboards within Dynamics AX Forms
Источник: http://atinkerersnotebook.com/2013/0...mics-ax-forms/
==============

PowerView is a great tool for creating dashboards and analytics for Dynamics AX, and you can easily embed it into Role Centers to create summary dashboards, and you can use it to drill into offending statistics that you notice, and you can easily create new dashboards using the new Analyze button in Dynamics AX 2012 R2. But what would be even better would be having context sensitive dashboards built into the actual master data forms. Then you would be able to see statistics and trends against the data that you a focused on. Fortunately that is not very hard to do.

In this worked example we will show how you can easily create a new dashboard through PowerView and then embed it within the Dynamics AX forms to show you just the statistics that you are looking for.

Creating a Customer Summary Dashboard

The first step in the process is to create a new PowerView Dashboard that you will embed into your master forms. Once you have done this, you can continue to tweak the view later on and not have to do any further coding.

How to do it…

To build a simple customer analysis dashboard, follow these steps:
  1. Start off by finding your PowerView Data Sources, and creating a new reporting canvas. In this example we will us the Sales cube as our data source.
  2. Build your dashboard from the available dimensions and measures in the cube. Here we just summarized the sales by date period, and also listed out all of the products that the customers have bought.

    Note: Don’t put any filters on this form. We will apply filters in the code later on.
  3. Once you have finished building the dashboard, select the Save As option from the File menu. When the Save As dialog box shows up, give your new dashboard a name and then click the Save button.
How it works…

Now if you return to the PowerView reports library you will see the new report that you just created.


If you open it then you will see your report in view mode.

Embedding the Dashboard into the Customer Form

Once you have designed your dashboard, it is time to add it to your forms. This will allow you to browse through the records, and see statistics alongside the original field data in Dynamics AX.

Getting Ready

In this example we will extend out the CustTable form, which normally looks like this.


How to do it…

To add the PowerView dashboard to a form in Dynamics AX, follow these steps:
  1. To do this, open up the AOT, and create a new project for the change. Then copy the CustTable form over to the new project.
  2. Expand the form definition until you are able to access all of UpperGroup set of controls which houses the definition for the main form layout.
  3. Right-mouse click on the UpperGroup form and from the New Control sub menu, select the Group item. Rename the group, and then set the Width to 600, and the Height to 512. We do this so that you can see the dashboard when it is displayed on the form – the default sizing for the control is a little narrow.
  4. Then right-mouse-click on the new group that you added and select the ActiveX option from the New Control sub menu. When the ActiveX browser is displayed, find the Microsoft Web Browser control and add it to the group.
  5. Give your new ActiveX control a more appropriate name, and also set the Width to Column Width, and the Height to Column Height so that it fills the container.
  6. Now open up the Methods at the parent table level, and right-mouse-click on the Methods group. Open up the Override method sub-menu and select the activate method. When the method editor opens up, add the following lines of code.
    Note: In the second line of the url variable definition, note the name of the report. This needs to match the name of the report that you created in the prior section.

    If you save the project and then open up the customer form, you will see the PowerView dashboard is now shown.
  7. Unfortunately this allows the user to edit the form. To fix that, update the code to include a couple more qualifiers.

    Now when you open up the form, you will just see the report.
  8. The final step in the process it to add some filters to the code so that it will only show the data that you selected.


    Here is the complete code listing:

How it works…

Now when the dashboard is displayed, it will only show the information that relates to the current record.


How cool is that!

Summary

This was just a quick example of how you could create a PowerView report and then embed it into the Dynamics AX forms.

This is not the only place that you could do this though. If you wanted, you could create dashboards for:
  • Inventory statistics and embed it within the products forms
  • Vendor scorecards, and include them in the vendor records to help with negotiations
  • Project status reports to help the project managers.
  • Employee performance
This is a simple change to make, so give it a go.




Источник: http://atinkerersnotebook.com/2013/0...mics-ax-forms/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
ax-erp: Creating SSRS-Reports in Dynamics AX 2012 – What’s no longer possible in AX-reports Blog bot DAX Blogs 0 18.07.2012 12:11
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 4 Blog bot Dynamics CRM: Blogs 0 24.09.2011 01:16
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35
dynamics-ax: Official Details about Dynamics AX '6' released, including comments from Microsofts Kees Hertogh Blog bot DAX Blogs 0 11.01.2011 05:22
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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