AXForum  
Go Back   AXForum > Microsoft Dynamics AX > DAX: Программирование
All
Forgotten Your Password?
Register Forum Rules FAQ Members List Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Old 24.11.2009, 14:41   #1  
player is offline
player
Участник
 
107 / 69 (3) ++++
Join Date: 25.08.2007
EP DAX 2009. Аналог application / info.startuppost() для веб-пользователя
Добрый день.

Необходимо выполнить определенный код при подключении веб-пользователя.

В какой класс или статический метод лучше всего поместить этот код. application / Info.startuppost() не срабатывает...

Last edited by player; 24.11.2009 at 15:02.
Old 24.11.2009, 15:04   #2  
raz is offline
raz
NavAx
raz's Avatar
NavAx Club
Лучший по профессии 2014
Лучший по профессии 2009
 
1,499 / 1096 (39) ++++++++
Join Date: 22.07.2003
Location: МО
наверно тут WebApplication.userLoggedOn()
This post has been rated by: player (1).
Old 25.11.2009, 12:51   #3  
player is offline
player
Участник
 
107 / 69 (3) ++++
Join Date: 25.08.2007
Похоже это именно то, что нужно!
Огромное спасибо.
Old 26.11.2009, 08:08   #4  
player is offline
player
Участник
 
107 / 69 (3) ++++
Join Date: 25.08.2007
Однако, этот метод срабатывает и при переходе между страницами портала...
Буду смотреть дальше.
Old 26.11.2009, 09:27   #5  
raz is offline
raz
NavAx
raz's Avatar
NavAx Club
Лучший по профессии 2014
Лучший по профессии 2009
 
1,499 / 1096 (39) ++++++++
Join Date: 22.07.2003
Location: МО
насколько я помню логон веб-пользователя идет через WebApplication.Logon()
Old 26.11.2009, 11:44   #6  
player is offline
player
Участник
 
107 / 69 (3) ++++
Join Date: 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();

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

Last edited by player; 26.11.2009 at 11:46.
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
emeadaxsupport: List of fixes that improve performance of certain features in Dynamics AX 2009 Blog bot DAX Blogs 0 13.10.2009 19:06
Solutions Monkey: Deploying Ax 2009 SP1 EP Blog bot DAX Blogs 0 05.02.2009 07:08
DAX EP. Аналог EPSalesInvoice + Понимание EPDocuListFromInfo MKhaziev DAX: Программирование 4 22.10.2008 14:04
msdynamicsax: Enterprise Portal development in DAX 2009 Blog bot DAX Blogs 0 18.04.2008 07:06
Вылетает аxапта 4.0 при завершении работы Delfins DAX: Прочие вопросы 5 27.06.2007 15:43

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Рейтинг@Mail.ru
All times are GMT +3. The time now is 15:40.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Contacts E-mail, Advertising.