Prerequisites: Jasper 6.4.0 Enterprise
Database: Foodmart
Here we can see how we can change the Default Save Folder path for ad-hoc views.
If we need to choose a dynamic path, like logged user folder name as the default location, for this we need to modify a JSP file (WEB-INF/jsp/modules/Adhoc/adHocScriptHeader.jsp)
Here we need to add a Tag and update the Save Folder Path
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="authz"%> <%--Add this line near the top to obtain access to the authentication object which contains user info--%> var saveFolder = "/Users/<authz:authentication property="principal.username"/>"; //Modify this variable to use whatever value appropriate.
Before Update the Path:
After the Dynamic Path updated:
Now the ad-hoc view will show the default path as User name which logged into, I have logged into Helical user and the ad-hoc view will save in Helical Folder.
In case if you have any queries please get us at support@helicaltech.com
Thank You
Satya Gopi
BI Developer
Helical IT Solutions Pvt Ltd
Best Open Source Business Intelligence Software Helical Insight Here
A Business Intelligence Framework
Best Open Source Business Intelligence Software Helical Insight is Here