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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 31.12.2013, 02:16   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
axStart: Call non AX reports on SSRS in AX 2012
Источник: http://www.axstart.com/call-non-ax-r...srs-in-ax-2012
==============

There are scenarios, that report generated in SQL Reporting Builder, or Visual Studio that are completely not working with AX SSRS reporting integrations. Examples like reports that use non AX data or, are simply to complex building it in AX. But it would be nice to have these reports integrated in the Menu Structure of AX. Even some authorization on top of it would be nice.

So how can we glue a menu item to an SSRS report that does not belong to AX. The trick is using a class. The main method of this class should look like this:

public static void main(Args args)
{
#define.reportName(‘report_name’)
SRSServers srsServers;
SRSReportServerConfiguration reportServerConfiguration;

select   firstOnly srsServers where srsServers.IsDefaultReportLibraryServer;
reportServerConfiguration =   SrsFrameworkServiceHelper::createSRSReportServerConfiguration(srsServers);
if(websession())
{
websession().redirectURL(reportServerConfiguration.reportManagerURL()+’/Pages/Report.aspx?ItemPath=/’+   reportServerConfiguration.reportFolder() +’/'+#reportName);
}
else
 {
infoLog.urlLookup(reportServerConfiguration.reportManagerURL()+’/Pages/Report.aspx?ItemPath=/’+   reportServerConfiguration.reportFolder() +’/'+#reportName);
}
}

You could add a menu item Action to it and use this menu item on the menu.

So will this work ; Yes. But you have to deal with security on SQL yourself. In case the class is running client site it is with the current user security, is it running server site, it is with the service account of the AOS.



Источник: http://www.axstart.com/call-non-ax-r...srs-in-ax-2012
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 31.12.2013, 14:21   #2  
MikeR is offline
MikeR
MCT
Аватар для MikeR
MCBMSS
Лучший по профессии 2015
Лучший по профессии 2014
 
1,628 / 627 (24) +++++++
Регистрация: 28.11.2005
Адрес: просто землянин
Не осознал в предновогодней суете а собственно чем просто вызов браузера с url то не устраивает? Там и безопасность на уровне пользователей можно настроить...
__________________
Axapta book for developer
Старый 31.12.2013, 16:43   #3  
EVGL is offline
EVGL
Banned
Соотечественники
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
 
4,445 / 3001 (0) ++++++++++
Регистрация: 09.07.2002
Адрес: Parndorf, AT
Цитата:
Сообщение от MikeR Посмотреть сообщение
Не осознал в предновогодней суете а собственно чем просто вызов браузера с url то не устраивает? Там и безопасность на уровне пользователей можно настроить...
infoLog.urlLookup это и делает.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
ax-erp: Creating SSRS-Reports in Dynamics AX 2012 – What’s no longer possible in AX-reports Blog bot DAX Blogs 0 18.07.2012 12:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17: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
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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