Page 1 of 1

Tab Document Extension

PostPosted:Sun Jun 12, 2011 7:51 pm
by andrew.cy
I wanted to ask why can't I use the api classes to write a tab document extension. I keep getting an error that states "no source code found for com.openkm.api.OKMFolder did you forget to inherit a module"

Re: Tab Document Extension

PostPosted:Mon Jun 13, 2011 8:57 pm
by pavila
Because you want to use core classes from GWT side. You need to implement a callback to call a method in a remote servlet, and this servlet can call any core classes. Take a look at a GWT tutorial to learn more on this.

Re: Tab Document Extension

PostPosted:Tue Jun 14, 2011 10:31 am
by jllort
you must call API across remote rpc service in that case folderService ( take a look for OKMFolderService and OKMFolderServiceAsync )

Re: Tab Document Extension

PostPosted:Thu Jun 16, 2011 9:39 pm
by andrew.cy
I figured out how to do it however when I create a folder and then move a file to it in a onclick handler I get PathNotFoundException even though the folder has been created. I have tried using refreshUI but have not been succesful is there a way to refresh the taxonomy folder tree within a tab document extension.

Re: Tab Document Extension

PostPosted:Fri Jun 17, 2011 12:06 pm
by jllort
You must call GeneralComunicator.refreshUI()

Re: Tab Document Extension

PostPosted:Fri Jun 17, 2011 6:38 pm
by andrew.cy
GeneralComunicator.RefreshUI() does not work the only way to see the newly created folder is to click on the parent foler in the taxonomy tree. The toolbar refresh button doesn't work either its as if the newly created folder is not there.

Re: Tab Document Extension

PostPosted:Sat Jun 18, 2011 8:34 am
by jllort
I'll investigate that seems could be a bug. I've added in our tracking system http://issues.openkm.com/view.php?id=1682

meanwhile I could propose use it, General.Comunicator.openAllFolderPath(parentPath,null) it'll not be the perfect solution but it'll run

Josep

Re: Tab Document Extension

PostPosted:Tue Jun 21, 2011 5:06 pm
by andrew.cy
Thanks I really apreciate the help your right though seems like it could be a bug that the folder doesn''t show in the taxonomy but I got it to work using General.Comunicator.openAllFolderPath(parentPath,null)