I have a requirement to create a Bar chart report and when a particular chart is clicked then open in a grid and open that grid in a new tab.
I am having problems opening the report in a newtab .
I believe you can use a!safeLink to open a report in a new tab. If you want a link from a barChart to open a report in a new tab you can click on the Report in /design to get the url. Then for your barChartField under the series attribute in your a!chartSeries you can specify links. In the links you can specify a!safeLinks and provide the uri of your report you want to open in a new tab. This worked for me using Chrome.
One way of achieving this would be having the 2nd grid created as a different report and linking this report via the Safelink component. The URI field in the a!safelink can be the Report URL. docs.appian.com/.../Web_Link_Component.html
I have a workaround for this, Please follow the steps below and you should be able to open report in new tab
1. Save your environment URL in constant and make it environment specific so that when you deploy it to higher env you can update constant with new URL
2. Open the report you are trying to open in new tab and save the last part of URI to constant. Look at the below image for reference, Link highlighted with yellow is the part you need to store in constant, this part will be same for report in all the environments
3. Use the below code to generate safelink with report and use it in the chart to open in new tab
a!safeLink( label : "Test", uri: cons!AF_TEXT_SITE_URL &"tempo/reports/view/"&cons!your_report_uri )
I have like like 10 grids that should be displayed in a new tab if once clicked on it. Can your solution be used on this. How do I pass a rule input to the report.
Screenshot of my barchart.
Safelink opens in a new tab alright but it displays the report object's name. Is there a way to hide it? But the report object's name does not appear when using reportlink but then it opens in the same window...
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.