Search found 37 matches

by cherifmad
Fri May 25, 2018 1:57 am
Forum: Configuration
Topic: Preview not working
Replies: 18
Views: 3938

Re: Preview not working

Thanks @Jlort
I have reinstall my OpenKM but my previewer is not yet operational. an other message appear ( see my screeshot)
by cherifmad
Thu May 24, 2018 5:33 pm
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

Please can you help me to obtain good result ?
by cherifmad
Thu May 24, 2018 10:47 am
Forum: Configuration
Topic: Automate "Export to ZIP"
Replies: 15
Views: 2758

Re: Automate "Export to ZIP"

jllort wrote:
Thu May 24, 2018 7:20 am
Confirmed, is a BeanShell code. The variable fsPath might be File System Path ( destination ).
Thank you
I would like to know if this code should be executed in the OpenKM community version's Script tools or if this script should be saved in a bsh file to be executed in crontab?
by cherifmad
Wed May 23, 2018 3:35 pm
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

lnovoa wrote:
Wed May 23, 2018 10:34 am
Hi!,

In the community version is the icon that is between statistics and metadata, it is a violet rhombus
thanks @Inovoa
I run it ( with my modification :" see my screenshot"); But an error appear.
thanks for you supporting
by cherifmad
Wed May 23, 2018 3:12 pm
Forum: Usage
Topic: fill metadata fields with values automatically when you upload new documents
Replies: 14
Views: 2043

Re: fill metadata fields with values automatically when you upload new documents

This application is a bootstrap one what into it uses the SDK for JAVA for connecting to OpenKM. The idea is quite easy. 1- Documents are uploaded into /okm:root/import Then external application 2- List files into ( using SDK ) 3- Use preview feature ( from professional version is possible to use i...
by cherifmad
Tue May 22, 2018 10:56 pm
Forum: Configuration
Topic: Automate "Export to ZIP"
Replies: 15
Views: 2758

Re: Automate "Export to ZIP"

Try with it, I just updated on what will be new documentation: import com.openkm.util.FileLogger; import com.openkm.bean.ContentInfo; import com.openkm.api.*; import com.openkm.util.impexp.*; import java.io.*; import java.text.*; import com.openkm.core.Config; import java.util.*; import com.openkm....
by cherifmad
Tue May 22, 2018 4:38 pm
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

please @Inovoa,
There are not box or tool scripting in Utilities
by cherifmad
Tue May 22, 2018 1:45 pm
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

Has it given you any kind of error? This is the script that I launched and it works correctly. import com.openkm.api.OKMPropertyGroup; import java.util.Map; String uuid_origin = "222bd16a-01f1-4b5b-89b7-be72183706bc"; String uuid_destination = "73a99248-6364-4443-b407-e3584c921fc1"; Map properties ...
by cherifmad
Tue May 22, 2018 11:56 am
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

Hi!, You must replace it with the uuid of the source and destination document. If you want to know the value of the uuid, you select the document and in the properties tab you will find the value. For example: String uuid_origin = "d39e38e3-e561-4c46-8415-aca6dab0773c"; String uuid_destination = "8...
by cherifmad
Mon May 21, 2018 3:43 pm
Forum: Configuration
Topic: Preview not working
Replies: 18
Views: 3938

Re: Preview not working

I have applied this parameter,but the problem persite it .
I don't preview the office document
by cherifmad
Mon May 21, 2018 3:10 pm
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

I have make some modification But, I didn't get the result. here is my modified code. String uuid_origin = "some uuid"; String uuid_destination = "some uuid"; Map properties = OKMPropertyGroup.getInstance().getPropertiesSimple(null, uuid_origin, "okg:abc.abc"); OKMPropertyGroup.getInstance().addGrou...
by cherifmad
Mon May 21, 2018 2:34 pm
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

lnovoa wrote:
Mon May 21, 2018 2:21 pm
Yes, as Josep explains, it could work for you.
Modify it and launch it as Beanshell script.
Thanks a lot for all
I make you a return when I do it
by cherifmad
Mon May 21, 2018 1:55 pm
Forum: Configuration
Topic: Copy metadata of documents enregistred yet to new document
Replies: 23
Views: 6301

Re: Copy metadata of documents enregistred yet to new document

Should be something like: String uuid_origin = "some uuid"; String uuid_destination = "some uuid"; Map properties = OKMPropertyGroup.getInstance().getPropertiesSimple(null, uuid_origin, "okg:group_name"); OKMPropertyGroup.getInstance().addGroup(null, uuid_destination, "okg:group_name"); // Adding e...
by cherifmad
Mon May 21, 2018 1:40 pm
Forum: Configuration
Topic: Preview not working
Replies: 18
Views: 3938

Re: Preview not working

You might check the log file ( catalina.log ) while OpenKM is starting, looking for some issue. I suspect soffice service is not starting. Check your environment variables, in 90% of the cases this is the reason why the soffice service is not startin ( https://docs.openkm.com/kcenter/view/okm-6.3-c...
by cherifmad
Mon May 21, 2018 7:35 am
Forum: Usage
Topic: fill metadata fields with values automatically when you upload new documents
Replies: 14
Views: 2043

Re: fill metadata fields with values automatically when you upload new documents

Thanks @Jlor, for this responses, I am not a good java developper, But I would,like to where and how I can use this SDK? Is it in source code of openkm? Or This SDK is the web ( HTML page ?) Please can you help to make the same application like the youtube example? "https://www.youtube.com/watch?v=d...