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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 10.01.2011, 14:52   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
As you might have noticed .. in NAV 2009 it was quite difficult to clearly show in which database you were working in.. . I had written a small solution for that in the classic which I blogged about here. Mark had foreseen a solution in the RTC here and we developed an Add-In which looked quite the same as we had in the classic:



Configurable colors, more information ... . Easy to create, and default part of our product.

BUT..

Microsoft has come up with quite a neat solution as well.. . The System Indicator is part of the product from the new NAV 2009 R2 release.

How does it work?

Well .. very similar as how my solution was working. You have some new setup fields in the "Company Information" page:



First of all, you have the option to show a "custom text (as you see here..), but you can also show:
  • "Company Information"
  • "Company"
  • "Database"
  • "Company+Database".
When set up, it's going to show the selected information in the action-bar (if I can call it like that) on top of every page:



Furthermore, you've got the "Indicator Style" property as well to "play with". Now, This is a little bit "unfinished" in my opinion. They called it "Accent1", "Accent2".. "Accent9". Why not just tell the background colors? Well, to help you, I spent some time with snagit .. and here is the list :-):

Accent1



Accent2



Accent3



Accent4



Accent5



Accent6



Accent7



Accent8



Accent9



As you might have expected, there is an extra function in "Holy Codeunit 1": GetSystemIndicator. It is called on startup .. (so maybe useful in some way? :-)) and will be searching for the setup in the Company Information .. (extra function in the Company Information table - don't like the design though). It contains two VAR-parameters: for the text and for the color. You can easily extend or change this default behavior using this function.. .

Hope you find it useful.. . I always liked the coloring-feature in our Add-In because it's a simple and clear indicator in which database you're logged into.. much better than text.. .

So, now there is an out-of-the-box solution for this small (but necessary) request .. :-).

By the way, there are already some blogs about this as well.. :


Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


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

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

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