AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 20.06.2011, 16:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Opening AX client opens two external internet explorer windows
Источник: http://blogs.msdn.com/b/emeadaxsuppo...r-windows.aspx
==============

Recently I came across a strange issue, which is that when opening the AX client it opens 2 external IE Windows with the user's rolecenter page, instead of just the one embedded within the client.

After a bit of investigation we found that this is because the URL for the EP site has been entered in the AX client (administration->setup->internet->enterprise portal->web sites) with capital letters - if you change them to be lower case then this won't happen.

If you're interested to understand why this happens then please read on...

What happens in the background is that the client looks up the user's profile in the database to find their rolecenter URL, then it starts an embedded explorer window in the client something like this (pseudocode example):

EmbededBrowser = shell.explorer;
EmbededBrowser.navigate(urlOfMyPortalPage);


The URL retrieved at this stage is cached by the client in case it needs it again later.

Now the important part is that the AX client also hooks into the OnBeforeNavigate2() event on the explorer instance it created - so before explorer displays the page it calls back to the AX client, and it makes some checks - one of these checks is that the URL explorer is about to open is the same as the URL that was passed to it - this is where the capital letters can cause a problem!

Explorer will have made the whole URL lowercase, but the AX client has the URL cached however it was entered into the "web sites" form.

At this point if the URLs do not match then AX client makes the decision to open the URL in a new window and to cancel navigation in the embedded window in the client, this runs round a couple of loops which is why there are two explorer windows opened.

As I mentioned at the start of the article, just change the URL in the web sites form in AX to be all in lowercase letters and it will be solved.



--author: Tariq Bell--editor:Tariq Bell--date:20/06/2011


Источник: http://blogs.msdn.com/b/emeadaxsuppo...r-windows.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Running AX 2009 Client raises error: "An invalid directory structure for Microsoft Dynamics AX was detected" Blog bot DAX Blogs 0 01.04.2011 06:13
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
daxdilip: Whats New in Dynamics AX 2012 (A brief extract from the recently held Tech Conf.) Blog bot DAX Blogs 7 31.01.2011 12:35
emeadaxsupport: You get a Script Error when viewing Role Centers (deployed on SharePoint 2010) in a Microsoft Dynamics AX 2009 Client Blog bot DAX Blogs 0 04.01.2011 20:11
emeadaxsupport: Debugging non-interactive X++ code in Dynamics AX 2009 when running on Windows Server 2008 Blog bot DAX Blogs 0 23.09.2009 13:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:42.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.