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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 31.08.2011, 18:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,477 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Setting marked Alerts to Read (or Unread) the “Unread” column doesn't get updated properly
Источник: http://blogs.msdn.com/b/emeadaxsuppo...-properly.aspx
==============

Recently we recieved an issue where a user managing his Alerts in AX 2012 found, setting a selection of Alerts to "Read" failed to update the UI of the Alert notifications screen properly.

How found:
The user clicked the Alert Bell on the AX Client's status bar to open Alert Notification form. In the form there where a number of identical of alerts he wanted to mark as "Read". In the form he selected the records and clicked the "Change status" / "To Read" button in the action pane as in the print screen below




Despite the number of unread Alerts is properly updated at the Alert Bell of the form's and AX Client's status bar only the first row In the form has the Bell removed in the Unread Column





Solution:
Although using the "Refresh" button will update the screen the problem can be resolved by replacing the reread() method with research() method in the markAlerts method in the “EventAlertInbox” form as in the code below.

void markAlerts(boolean isRead)
{
EventInbox inbox;
EventInbox tmpInbox;

;


for (tmpInbox = getFirstSelection(eventInbox_DS);
tmpInbox;
tmpInbox=eventInbox_DS.getNext())
{
ttsbegin;

inbox = EventInbox::find(tmpInbox.InboxId,true);
inbox.IsRead = isRead;
inbox.update();
tmpInbox.reread();

ttscommit;
}

// eventInbox_DS.reread();
eventInbox_DS.research();

alertList.arrange();

infolog.setNumUnreadAlerts(EventInbox::numberOfUnreadAlerts(curuserid()));
}







--author: Jago van der Most --editor: Jago van der Most --date: 29/08/2011


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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
daxdilip: [Updated] Code to read email using EWS (Exchange Web Services) Blog bot DAX Blogs 0 15.12.2010 17:11
emeadaxsupport: You get the following warning message in BizTalk Server 2006 R2/2009 - The message does not contain a body part (part 2) Blog bot DAX Blogs 0 13.08.2010 00:05
emeadaxsupport: Unable to validate workflow URL in AX 2009 - Get the following error: The request failed with HTTP status 405: Method Not Allowed Blog bot DAX Blogs 0 07.07.2010 23:05
emeadaxsupport: How can the Web Proxies get extended programmatically? Blog bot DAX Blogs 0 16.12.2009 18:05
emeadaxsupport: Group policy setting "System Objects: Default owner for objects created by members of the administrators group" is missing on Windows Server 2008 Blog bot DAX Blogs 2 28.08.2009 02:14

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

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

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