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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.11.2013, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Dynamics AX Enterprise Portal: How to unmark first record in AxGridView
Источник: http://blogs.msdn.com/b/axsupport/ar...xgridview.aspx
==============

When the property AllowMarking is set up to true on AxGridView then it will always come with first row marked. Although it can be good in some cases but when we are adding the items to purchase requisition we do not want to have a first item already marked. To not get the first row marked we need to explicitly set the position on dataset datasource to -1:

public

void executeQuery()

{

super();

this.setPosition(-1);

}

So if we want to disable it as mentioned when adding items to purchase requisition we would need to add this.setPosition(-1) in DataSet PurchReqCatalogItems \ InventTable and would look like:

public void executeQuery()

{

this.addCatalogPolicyRule();

this.addCategoryAccesssPolicyRule();

inventTable_ds.query().clearCompanyRange();

inventTable_ds.query().addCompanyRange(buyingLegalEntity);



if (inventTable_ds.queryRun())

{

inventTable_ds.queryRun().query().clearCompanyRange();

inventTable_ds.queryRun().query().addCompanyRange(buyingLegalEntity);

}



super();

//added code

this.setPosition(-1);

}






Источник: http://blogs.msdn.com/b/axsupport/ar...xgridview.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Dynamics AX 2012 EP: Problem with installing Enterprise Portal " User cannot be found." Blog bot DAX Blogs 0 07.12.2012 23:12
emeadaxsupport: Microsoft Dynamics AX 2009 Enterprise Portal installation error Blog bot DAX Blogs 0 22.09.2011 20:11
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
emeadaxsupport: How does the Dynamics AX Setup detect existing AOS Instances? Blog bot DAX Blogs 0 06.07.2010 17:05
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05

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

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

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