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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.11.2008, 09:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Solutions Monkey: Programatically reading data from AxDataSourceControl
Источник: http://blogs.msdn.com/solutions/arch...cecontrol.aspx
==============
DataSourceControl makes it simple to get Ax data and display it in DataBound UI controls and manipulate the data. You can also use them to read data programtically. Below is one way of doing it. The other way to get Ax data programatically is to get the DataSet directly using MetaDataCahce object and reading data.



private void GetData()

{



DataSourceViewSelectCallback callback = new DataSourceViewSelectCallback(PrintData);

AxDataSource1.GetDataSourceView("CustTable").Select(DataSourceSelectArguments.Empty,callback);



}



private void PrintData(IEnumerable data)

{

IEnumerator i = data.GetEnumerator();

while (i.MoveNext())

{

Response.Write(DataBinder.Eval(i.Current, "AccountNum").ToString() + “”);

}

}



==============
Источник: http://blogs.msdn.com/solutions/arch...cecontrol.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 07.11.2008, 09:17   #2  
mazzy is offline
mazzy
Участник
Аватар для mazzy
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
29,472 / 4494 (208) ++++++++++
Регистрация: 29.11.2001
Адрес: Москва
Записей в блоге: 10
смотрю на последние блоги и тихонько офигеваю.
что ж они такое делают, что ТАКОЕ они считают полезным и нужным к публикации?
__________________
полезное на axForum, github, vk, coub.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Solutions Monkey: Using Microsoft Dynamics Ax 2009 Workflow controls in EP Blog bot DAX Blogs 0 30.07.2008 10:05
Solutions Monkey: Opening Enterprise Portal page in a new window from the Quick Launch Blog bot DAX Blogs 0 06.10.2007 06:51
Solutions Monkey: Enterprise Portal Demo script – 2 Blog bot DAX Blogs 0 18.02.2007 15:11
Solutions Monkey: EP 4.0 Questions Blog bot DAX Blogs 0 28.10.2006 16:40
Solutions Monkey: EP Samples from TechReady3 Blog bot DAX Blogs 0 28.10.2006 16:40

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

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

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