Показать сообщение отдельно
Старый 26.11.2009, 11:44   #6  
player is offline
player
Участник
 
107 / 69 (3) ++++
Регистрация: 25.08.2007
В DAX 2009 басня сильно сокращена и приравнена к приведенному выше совету

X++:
void logon(userId webUserName)
{
    WebSession webSession = webSession();
    WebApplication  wappl      = webSession.webApplication();
    ;

    // in this code, we are no longer reading the language from SysUserInfo,
    // as infolog.language() returns the user's preferred language
    // either specified in SysUserSetup form (stored in userInfo table)
    // or (if) overridden from command line/BC Logon option

    //sysCompanyUserInfo check is not required, A user relation is required for some scenarios
    //which give an expected error message if a user relation is not found

    //sysCompanyUserSiteAccess check is not required.
    //In 4.0 the record may not be present in this table if the groups are being managed outside of Ax
    //This is more common in WSS 3.0 with cross site groups
    wappl.userLoggedOn();

}
И дополнительный вопрос - как выполнить определенные действия при "отваливании" пользователя....

Последний раз редактировалось player; 26.11.2009 в 11:46.