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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.09.2010, 17:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
paruvella: Ax EP - AxBoundField - OnDataChange Event
Источник: http://paruvella.spaces.live.com/Blo...4DB0!552.entry
==============

Here I want to achieve, if the AxBoundField have some value, need to enable/disable button accordingly.

I had struggled little bit, to raise the event OnDataChanged for AxBoundField control when data changed for this bound control.

Then, have used following markup code for Bound control.

</span>

               

                   

               

           

While adding the bound fields to the AxForm, we won’t get this attribute AutoPostBack="true"to the AxBoundField.

To raise the OnDataChanged event,  explicitly need to add the above attribute to AxBoundField.

Then I had added the following code to the event …

protected void ProjId_OnDataChanged(object sender, AxBoundFieldDataChangedEventArgs e)

    {

        string expProjId = ((System.Web.UI.WebControls.TextBox)(e.BoundControl)).Text.ToString();

 

                if (expProjId != "")

                {

                    ButtonOK.Enabled = true;

                }

                else

                {

                    ButtonOK.Enabled = false;

                }          

    }

..




Источник: http://paruvella.spaces.live.com/Blo...4DB0!552.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
paruvella: Displaying the Standard Ax report in EP pages of AX – Part – II Blog bot DAX Blogs 0 13.05.2010 01:05
paruvella: Displaying the Standard Ax report in EP pages of AX Blog bot DAX Blogs 0 04.05.2010 18:05
paruvella: Displaying SSRS report in Ax-EP page Blog bot DAX Blogs 0 02.02.2010 21:05
paruvella: Displaying the employee images on the EP pages of Dynamics Ax Blog bot DAX Blogs 0 15.12.2009 23:05
paruvella: Hints on Workflow implementation for EP in Ax 2009 Blog bot DAX Blogs 0 12.11.2009 21:05

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

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

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