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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 08.06.2011, 02:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
daxdilip: Tip – EP Customization ( Dynamically Loading Report Folder from Network based on Store Parameter)
Источник: http://daxdilip.blogspot.com/2011/06...namically.html
==============


Overview
I had this requirement where based on the logged in Store Number, the user should be able to open the corresponding Report Store Folder (located in an UNC Network Path) from Enterprise Portal web page

Solution/WorkArounds:
Initially, tried writing a separate web part which loads a .Net File Dialog user control box but it was turning out to be complex so left the approach as time was limited
Then, tried the out of the box Page Viewer Web Part but it has the limitation wherein you can't dynamically load the network path and in order to attain it, one needs to write a custom Dynamic Page Viewer Web Part which is another time consuming and complex customization.
After some investigation, I found a much simpler way to achieve this.
  1. Wrote a dynamic Java Script which queries the Network Path from AX Table
  2. Pass the store parameter to it
  3. Loads the UNC Path dynamically on the fly based on the store parameter
This is the code segment which picks up the Network Path and then dynamically appends the store id to it based on the logged in user's store id profile




Tip: Initially, I was using the ClientScript.RegisterStartupScript method to register the script block but landed into the same issues this bloke was facing when trying to load from webpartzone.
http://stackoverflow.com/questions/6...pt-not-working
, ScriptManager came to my rescue here.
Below is the button in action on our portal Site (Role Center Page) which loads the network Report path




Источник: http://daxdilip.blogspot.com/2011/06...namically.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
daxdilip: Tip - How to avoid Overriding of SQL Indexes from AX when a Full Synchronization is done Blog bot DAX Blogs 0 17.05.2011 11:11
daxdilip: Tip - How to avoid Overriding of SQL Indexes from AX when a Full Synchronization is done Blog bot DAX Blogs 0 12.05.2011 08:11
Microsoft Dynamics CRM Team Blog: Parameterizing Fetch Based Reports Blog bot Dynamics CRM: Blogs 0 18.03.2011 20: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
dynamics-ax: Expert SSRS with AX Tip from Michael Stashwick Blog bot DAX Blogs 0 14.01.2011 05:18

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

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

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