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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.08.2008, 18:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
Ruslan Goncharov: Storing report design in database
Источник: http://rusgon.blogspot.com/2008/08/s...-database.html
==============


Today I'd like to say a few words about packDesign()/unpackDesign() methods.
As a matter of fact we may store report design just in database. All we need is new container field in table where report design is storing.
Following job demonstrates storing technique.
When restore is false - we store the design. Else we restore design.static void JobReportDesign(Args _args)
{ Report report = new Report(); ReportRun reportRun; ReportDesign reportDesign; ReportSection reportSection; ReportTextControl reportTextControl; Table1 Table1;// boolean restore = true; boolean restore = false; BinData binData; void runReport(ReportRun _reportRun) { ReportDesign _reportDesign = _reportRun.report().design(); int sCount = _reportDesign.sectionCount(); int i; ; for(i=1; i if(restore) { select Table1 where Table1.ItemId == '000000000001'; reportRun.unpackDesign(Table1.FieldReportDesign); runReport(reportRun); report.interactive(false); reportRun.run(); return; } // ReStore the report if(!restore) { ttsbegin; select forupdate Table1 where Table1.ItemId == '000000000001'; Table1.FieldReportDesign = reportRun.packDesign(); Table1.update(); ttscommit; } <span class="co1">// Store the report
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Ruslan Goncharov: A few words about sorting codes Blog bot DAX Blogs 0 18.02.2009 21:05
Ruslan Goncharov: From Microsoft Dynamics AX Programming newsgroup tricks Blog bot DAX Blogs 0 24.05.2008 00:08
Ruslan Goncharov: Quick sorting in info messages Blog bot DAX Blogs 0 09.02.2008 19:11
Ruslan Goncharov: How to clarify what happened with variables in AX Blog bot DAX Blogs 0 17.01.2008 15:40
Palle Agermark: Runtime modification of Auto Design report sections Blog bot DAX Blogs 0 28.10.2006 16:40
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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