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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.01.2009, 12:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
palleagermark: Adding simple display fields on VS reports
Источник: http://palleagermark.blogspot.com/20...lds-on-vs.html
==============

One thing I feel is missing from the documentation for AX Visual Studio reports is a simple explanation or demo of how to create an od school display field in a report.

I could figure out that a DataMethod was needed but it took me some time to figure out how connect the method with a field on the report and how to pass parameters to the DataMethod.

You add a datamethod like this:
...
[DataMethod(), AxSessionPermission(SecurityAction.Assert]
public static string DataMethod1(string itemId)
{
string demoString = '(' + itemId + ')';

return demoString;
}

Then add a field to your design, and in the Expression editor for the field add the code to call your datamethod:

=DataMethod1(Fields!ItemId.Value)


Источник: http://palleagermark.blogspot.com/20...lds-on-vs.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
palleagermark: Adding new financial dimensions to AX Blog bot DAX Blogs 1 17.02.2009 13:03
axStart: Please keep the AOT reports in Dynamics AX next release alive Blog bot DAX Blogs 2 13.12.2008 12:18
axaptapedia: Display method Blog bot DAX Blogs 0 29.08.2007 16:30
axcoder: Unwanted fields fetching when selecting by unique index Blog bot DAX Blogs 5 31.07.2007 19:56
Как в Design из Reports выводить многострочные Fields типа String? bolt DAX: Программирование 1 19.02.2004 16:57

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

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

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