Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

SRSS drill through report opening in a new window/tab

Posted on by 120

I have a report that lists open invoices. I have another report which lists the content of an invoice. If I use the Actions>>Go to Report it passes the variable with out any problem, except it opens in the same browser window.

I read my only option was a URL that opens the report and passes the parameter. The report that I am drilling to is very simple and only has one parameter.

Below is what I am using. It opens the report in a new tab, but it does not pass the parameter.

="javascript:void(window.open('http://XXXXXX:XXXX/Reports/Pages/Report.aspx?ItemPath=%2fXXXXX%2fSales%2fInvoice+by+Invoice+Number&rs:Command=Render&DOCNUMB="+rtrim(Fields!DOCNUMBR.Value)+"'))"

If I copy the URL from the report it looks like

javascript:void(window.open('http://XXXXXX:XXXX/Reports/Pages/Report.aspx?ItemPath=%2fXXXXX%2fSales%2fInvoice+by+Invoice+Number&rs:Command=Render&DOCNUMB=442312'))

I also tried:

="javascript:void(window.open('http://XXXXXX:XXXX/Reports/Pages/Report.aspx?ItemPath=%2fXXXXX%2fSales%2fInvoice+by+Invoice+Number&rs:Command=Render&Parameters!DOCNUMB.Value="+rtrim(Fields!DOCNUMBR.Value)+"'))"

which produced:

javascript:void(window.open('http://XXXXXX:XXXX/Reports/Pages/Report.aspx?ItemPath=%2fXXXXX%2fSales%2fInvoice+by+Invoice+Number&rs:Command=Render&Parameters!DOCNUMB.Value=442313'))

Any thoughts on what I might be missing.

I also tried it without the rtrim and the results were the same, except the created URL had %2f for all the ending spaces after the invoice number.

thanks,

Rich

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans