Показать сообщение отдельно
Старый 04.03.2008, 16:19   #1  
HorrR is offline
HorrR
Участник
 
340 / 30 (2) +++
Регистрация: 18.02.2008
Адрес: Киев
Red face TwC: Validate access to return value from display/edit method.
Ребята, вероятно мой вопрос окажется бояном, но я честно искал и не нашел(
Итак, следующий BP: TwC: Validate access to return value from display/edit method.

Вот собсна метод.
X++:
display Addressing address()
{
    Addressing address;
    ;
    address=Address::find(this.TableId, this.RecId, AddressType::Delivery).Address;
    if(!(hasSecurityKeyAccess(securitykeyNum(My_SK), AccessType::View))
      &&isConfigurationkeyEnabled(configurationkeyNum(MY_CK))  )
    {
        throw error("@SYS57330");
    }
    return address;
}
То есть, как видите, валидейшен я провожу, но компилю его видимо мало. Что ещё надо проверять?
__________________
Axapta has seduced me deadly!