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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 25.11.2011, 16:27   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
I want to describe few tips about filters usage in Dynamics NAV RTC. This can be useful for users who worked with classic client and came to RTC.

In Dynamics NAV Classic Client we can construct filters in filters window using following operators:

.. Range

& And

| Or

< Less than

<= Less than or equal to

> Greater than

>= Greater than or equal to

<> Different from

* Forms a part of value

@ Case-insensitive



Let&rsquo;s say for example we want to find item in item list ending with &ldquo;Front&rdquo; then can construct filter on description: *front



And we have results





Now try the same in RTC.
In RTC we have &ldquo;Filter Pane&rdquo; and we don&rsquo;t need to call filter window. So here we just change filter field to description and ad the same filter value:*front



But ***Это спам-сообщение***, result is different:



It also includes items which starts with &lsquo;front&rsquo; and even has &lsquo;front&rsquo; in the middle of description.

What is wrong? Nothing, this is feature of RTC filters: whatever we add to this filter, it will be translated to string by adding &lsquo;@&rsquo; in front and &lsquo;*&rsquo; in end. So our filter string &lsquo;*front&rsquo; becomes &lsquo;@*front*&rsquo; and RTC filters for any description includes &lsquo;front&rsquo; in upper or lower case.

We can see this transformation if open &ldquo;About this page&rdquo; filter section:



If we know this feature, then we can use it very smart: if we know how description starts, we just type begin of it without any filter operators and we have all description, which begins with this string, filtered. Fast work, is it?

But what to do if we really want to filter only descriptions which end with &lsquo;front&rsquo;. Then we have 2 options:
1. Use apostrophes for filter string for example enter &ldquo; &lsquo;*front&rsquo; &rdquo; instead of &ldquo; *front &rdquo;, then RTC filter exactly on this string:



or
1. Expand Filter Pane and filter on exactly what we want:





That&rsquo;s all what I want to say.

Ps. If you have question &ldquo;why I filter on &lsquo;front&rsquo;, but results always includes &lsquo;Front&rsquo;&rdquo;, then answer is: my db SQL collation is not cases sensitive, so SQL doesn&rsquo;t see difference here and shows upper and lower case values.



These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.

Gedas Busniauskas

Microsoft Lithuania
Microsoft Customer Service and Support (CSS) EMEA







Источник: http://feedproxy.google.com/~r/Micro...tc-builds.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


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

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

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