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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.02.2010, 09:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Solutions Monkey: Using AxContentPanel Control in EP
Источник: http://blogs.msdn.com/solutions/arch...rol-in-ep.aspx
==============
AXContentPanel is derived from ASP.net UpdatePanel and enalbes sections of the web page refreshed instead of the entire page being refreshed with a postback and makes it more in. AxContentPanel builds on top of this and provides AX Specific constructs such as Passing Record Context and applying it to the underlying child controls.



If you have a child user control that needs to display based on the context provided by the datasource in the parent user control or two independent datasources that do not have direct table level relation but one needs to change based on the context from the first datasource after executing some business logic, then AxContentPanel would come in handy.



For example , if I have a page with Header and Detail Datasources separately and need to apply the context of the newly created header record in the top part of the page to the detail part of the page, then I would something like



For example

</SPAN>







Header part of markup





</SPAN>





</SPAN>



</SPAN>























protected void Page_Init(object sender, EventArgs e)

{

IAxContext contextInterface = AxContextHelper.FindIAxContext(this);

if (contextInterface != null)

<SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-bidi-language: TA; mso-no-proof: yes"> contextInterface.CurrentContextChanged += new EventHandler(CurrentContextChanged);



}

protected void CurrentContextChanged(object sender, AxCurrentContextChangedEventArgs e)

{

if (e.CurrentContext != null)

{

this.AxContentPanel_ExpenseLine.ExternalContext = e.CurrentContext.RootTableContext;



}

}



==============
Источник: http://blogs.msdn.com/solutions/arch...rol-in-ep.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Solutions Monkey: 64bit machine - VS EP add-in not deploying user control to SharePoint while saving Blog bot DAX Blogs 0 06.01.2010 08:19
Solutions Monkey: Redirecting in EP user control to download a file Blog bot DAX Blogs 0 11.09.2009 15:05
Solutions Monkey: How to use Chart Control in EP 2009? Blog bot DAX Blogs 0 02.04.2009 09:05
Solutions Monkey: Deploying Ax 2009 SP1 EP Blog bot DAX Blogs 0 05.02.2009 07:08
Solutions Monkey: Using Microsoft Dynamics Ax 2009 Workflow controls in EP Blog bot DAX Blogs 0 30.07.2008 10:05

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 22:38.