Показать сообщение отдельно
Старый 03.03.2006, 16:26   #17  
DreamCreator is offline
DreamCreator
Moderator
Аватар для DreamCreator
Axapta Retail User
 
553 / 45 (3) +++
Регистрация: 04.11.2004
Адрес: Казань
Большое спасибо за обсуждение!

Маленький итог:
PHP код:
boolean checkAccess(TableId _tableId)
{
    
DictTable               dictTable = new DictTable(_tableId);        // First way
    
SecurityKeyId           securityKeyId dictTable.securityKeyId();  // First way
    
DictConfigurationKey    dictConfigurationKey;                       // Third way
    
boolean                 ret;
    ;
    
// First way
    /*
    if(securityKeyId)
    {
        ret = hasSecuritykeyAccess(securityKeyId, AccessType::Add);
    }
    */
    // Second way
    
ret WebLet::hasTableAccess(_tableId);         // default accessMode = accessType::View

    // или
    /*
    ret =  Global::isTableUserEnabled(_tableId);    // default accessMode = accessType::Edit
    */
    // Third way
    /*
    if(dictTable.configurationKeyId())
    {
        dictConfigurationKey = new dictConfigurationKey(dictTable.configurationKeyId());

        ret = dictConfigurationKey.enabled();
    }
    else
        ret = true;
    */
    
return ret;

В прикрепленном файле класс по изменению свойств статистики таблиц (например ModifiedBy, CreatedBy)
Вложения
Тип файла: xpo DataGroupManager.xpo (10.9 Кб, 246 просмотров)

Последний раз редактировалось DreamCreator; 03.03.2006 в 16:33.