Page 1 of 1

Upload Scanner output to current directory

PostPosted:Sun Jan 24, 2010 12:04 pm
by ticl
Does anyone know how to make the scanner upload the scanned document to the current folder instead of My Documents? I was planning to modify the DirectDocumentModule.create function, but not sure how to select the currently selected folder to create the Node. Any tips would be appreciated.

Thanks :)

Re: Upload Scanner output to current directory

PostPosted:Mon Jan 25, 2010 12:23 pm
by jllort
Really you might change something in UI.

We've had some problems passing the variable to applet for setting folder path parametrer.

Take a look at Toolbar.java

/**
* Create html applet code
*/
public void setApplet(String token, String path) {
applet.setHTML("<applet code=\"com.openkm.applet.Scanner\" name=\"Scanner\" width=\"20\" height=\"20\" mayscript archive=\"../scanner.jar\">"+
"<param name=\"token\" value=\""+token+"\">"+
"<param name=\"path\" value=\""+path+"\">"+
//"<param name=\"separate_jvm\" value=\"true\">"+
"</applet>");
}

It must be changed param path on onclick event as the same way you could see on Util.java in some way like mediaplayer for example
public static native void removeMediaPlayer() /*-{
$wnd.swfobject.removeSWF("jsmediaplayer");
}-*/;


EveryTime a folder is selected must be changed this param ( FolderTree.java )

As I said I must investigate more it, because we've get some problem passing it variable, that's the reason why is actually fixed.

You must not make any change in DirectModule... it's not the right place.

Re: Upload Scanner output to current directory

PostPosted:Tue Mar 16, 2010 2:06 am
by mchandok
Hi,
Were you able to resolve this issue?

Re: Upload Scanner output to current directory

PostPosted:Tue Mar 16, 2010 10:20 am
by jllort
Is solved in OpenKM 5.0

Re: Upload Scanner output to current directory

PostPosted:Tue Mar 16, 2010 1:25 pm
by mchandok
When openKM 5.0 will be released?

Re: Upload Scanner output to current directory

PostPosted:Tue Mar 16, 2010 5:14 pm
by jllort
During this year, but there's not fixed date. We want to include some enhancements like live editing, and we need some time to finishing. We'll install some before it'll announce the 5.0 release.

Re: Upload Scanner output to current directory

PostPosted:Thu Mar 18, 2010 9:29 am
by pavila
Perhaps some OpenKM 5.0 features will be present in a 4.1 release, but I can't promise anything.