Repository Folder link


  Hi All,

I need to create a link in a report which points to a specfic folder in repository.

In jasperserver 3.7, it was easier to point to a specific repository folder: i.e.

<a href="http://localhost:8080/jasperserver-pro/flow.html?_flowId=repositoryFlow&folder=/adhoc/topics" target="_blank">http://localhost:8080/jasperserver-pro/flow.html?_flowId=repositoryFlow&folder=/adhoc/topics</a></p>
<p>In jasperserver 4, 'repositoryFlow' has been replaced by 'searchFlow' but i'm struggling to point to a specific folder in repository.</p>
<p>I have tried to use the following but still no result:</p>
<p><span class="Apple-style-span" style="font-family: monospace; "><a href="http://localhost:8080/jasperserver-pro/flow.html?_flowId=searchFlow&folderUri=/adhoc/topics&mode=browse" target="_blank">http://localhost:8080/jasperserver-pro/flow.html?_flowId=searchFlow&folderUri=/adhoc/topics&mode=browse</a></span></p>
<p>Please reply back with the solution.</p>
<p>Thanks in advance.</p>
javi_123's picture
Joined: Aug 21 2008 - 1:15am
Last seen: 1 year 3 months ago

4 Answers:


I know this was started a year ago, but still no answer ?


We've got the same problem running version 4.5.0


Its obviously changed since earlier relases, but not documented or tested very well.

Exie's picture
Joined: Jul 24 2006 - 12:00pm
Last seen: 2 months 1 week ago

The problem is already fixed.

It will be shipped in next release.

The following URI will be used to select adhoc folder: http://localhost:8080/jasperserver-pro/flow.html?_flowId=searchFlow&folderUri=/adhoc

Post Edited by yplakosh at 03/25/2012 12:50
yplakosh's picture
Joined: Jun 23 2009 - 9:54am
Last seen: 2 years 4 months ago

 And the next release should be out around early May. 

tkavanagh's picture
Joined: Jul 7 2006 - 8:54am
Last seen: 2 years 11 months ago
Awesome, thanks guys. I see 4.5.1 is out, any idea what the next one is ? I'll keep my eyes peeled. :)
Exie's picture
Joined: Jul 24 2006 - 12:00pm
Last seen: 2 months 1 week ago

I'm not sure if it works on 4.51 (did not have change to check), but on 4.5 the default folder is managed by the cookie named lastFolderUri.
It is checked and set in the, Folder panel object code in these places:
this._uri = storedUri && storedUri.length > 0 ? storedUri : "/"; //here you could put your folder to open by default when cookie is not set
this.tree.observe('node:selected', function(event) {
this._uri = event.memo.node.param.uri;
new JSCookie(this._cookieName, this._uri);
// to force your folder you could change it to new JSCookie(this._cookieName, "/YourFolderID");
With such changes you still would be able to navigate through the tree, but the repository would open on the same folder every time you go to <YourURL>/flow.html?_flowId=searchFlow
hopefully this helps

dmitry_dolnikov - 3 years 3 weeks ago