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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 18.10.2014, 17:47   #1  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
Default dimension sttribute value as a field on grid
Hi All,
Is there any way to display a field part of default dimension to the grid form control without using display method? I can do this through display method but the user cannot do filtering by this field therefore it is not appropriate.

Here is my display method approach:
X++:
 display public DimensionValue displayDefaultDimCostCenter()
 {
     DimensionAttributeValueset     dimAttrValueSet;
     DimensionAttributeValueSetItem dimAttrValueSetItem;
     DimensionAttributeValue        dimAttrValue;
     DimensionAttribute             dimAttr;
  
     select firstOnly dimAttr
         where dimAttr.Name == "CostCenter";
  
     select dimAttrValueSet
         where dimAttrValueSet.RecId == this.DefaultDimension
         join dimAttrValueSetItem
             where dimAttrValueSetItem.DimensionAttributeValueSet == dimAttrValueSet.RecId
             join dimAttrValue
                 where dimAttrValueSetItem.DimensionAttributeValue == dimAttrValue.RecId
                    && dimAttrValue.DimensionAttribute             == dimAttr.RecId;
  
     return dimAttrValueSetItem.DisplayValue;
 }
But I would like to add CostCenter default financial dimension (outlined to the screen shot) to a grid control in my custom form which datasource is SalesTable, so the user can do filtering and sorting the grid control by CostCenter.
Is there any way to do that?

Thank you in dvance.
Миниатюры
Нажмите на изображение для увеличения
Название: sales_order_defdim.png
Просмотров: 510
Размер:	85.2 Кб
ID:	9001  
Старый 21.10.2014, 07:41   #2  
S.Kuskov is offline
S.Kuskov
Участник
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
3,427 / 1771 (66) ++++++++
Регистрация: 28.04.2007
Адрес: Калуга
The only way то provide filtering by control that I know - use a joined data source. You can add several related tables directly on the form, or collect them first in the View.

You can also make individual interface to filter for special cases. Then you can set the user filter programmatically.

Последний раз редактировалось S.Kuskov; 21.10.2014 в 07:46.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ax_gfm_framework_team: Dimension defaulting in accounting distributions, Part 3 - Splitting and defaulting using Financial dimension default templates and Main account allocation rules Blog bot DAX Blogs 0 18.12.2013 09:11
sumitsaxfactor: Replace a Financial Dimension in Default Dimensions–Condensed [AX 2012] Blog bot DAX Blogs 0 23.11.2012 23:13
sumitsaxfactor: Replace a Financial Dimension in Default Dimensions [AX 2012] Blog bot DAX Blogs 0 18.01.2012 11:11
dynamicsaxtraining: Item setup: Inventory dimension group Blog bot DAX Blogs 1 05.10.2010 15:35
Khue Trinh: Setting up a link between a financial dimension and the site inventory dimension Blog bot DAX Blogs 0 27.09.2010 13:05
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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