Показать сообщение отдельно
Старый 20.11.2006, 16:49   #7  
mazzy is offline
mazzy
Участник
Аватар для mazzy
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
29,472 / 4494 (208) ++++++++++
Регистрация: 29.11.2001
Адрес: Москва
Записей в блоге: 10
Цитата:
Сообщение от Lucky13 Посмотреть сообщение
RLS не действует на обычный оператор select, поэтому просто
X++:
select  where ....
Неправда, действует.
Цитата из документации

Цитата:
You may want to code other methods on reports or forms, and still have the rules of RLS applied. Or, within the RLS-scoped methods listed in the previous section, you might want the scoped RLS to be disabled on selected queries. To have this functionality, a method on a table buffer is available, recordLevelSecurity, to overrule default behavior.

Within scoped RLS, you simply "sign-up" for RLS coverage using:
SalesLine.recordLevelSecurity(true);

And in RLS covered X++ code, you may “sign-up” for an exemption from the rule by using:
SalesLine.recordLevelSecurity(false);

However, generally speaking, no special coding is required.
__________________
полезное на axForum, github, vk, coub.
За это сообщение автора поблагодарили: Lemming (1).