Opening a folder

Discuss about Group-Office development here

Moderator: Developers

ael
Posts: 50
Joined: Mon Sep 14, 2009 11:38 am
Location: France

Opening a folder

Postby ael » Fri Oct 16, 2009 8:06 am

Hello,

I'm trying to add links to directly jump to a specific folder within the files manager module (the ultimate goal being the possibility to link to a specific folder from an URL). Making a JS call to GO.files.openFolder(0, xxx) works, but open a "popup" with the folder content.

Is there a way to achieve the same result using the main browser (GO.files.fileBrowser ?) window or am I on the wrong track ?
mschering
Site Admin
Site Admin
Posts: 8281
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Opening a folder

Postby mschering » Mon Oct 19, 2009 7:20 am

Out of my head this should work:

Code: Select all

var p = GO.mainLayout.getModulePanel('files');
p.setFolderId(theFolderId, true);
p.show();
Best regards,

Merijn Schering
Intermesh
ael
Posts: 50
Joined: Mon Sep 14, 2009 11:38 am
Location: France

Re: Opening a folder

Postby ael » Mon Oct 19, 2009 9:04 am

It does indeed work (although I still think case sensitivity for dynamic language is a huge mistake... I lost half an hour trying to understand why setFolderId() doesn't work - setFolderID() does) :)

Thanks for your help.

Who is online

Users browsing this forum: No registered users and 3 guests

cron