You are viewing limited content. For full access, please sign in.

Question

Question

How to execute some code / script based on a particular item selected

asked on December 13, 2017 Show version history

We are storing a path in one of the meta-data fields for a folder/document stored in Laserfiche.  I would like to execute a simple C# .net script to open Windows Explorer to the path specified in this field.  Is there a way to do something like this?  The ultimate would be to double click on the path column to run the script, or if I could add button 'meta-data' field that when clicked the script would be executed.  At a minimum, I would like to have a custom toolbar button that would run the script, but it would need to be able to get the correct path top open from the metadata of the currently selected folder / document in the window below.   Would be VERY helpful.

Thanks!

0 0

Replies

replied on December 13, 2017

I took a look at this because I was curious, but it appears that for custom buttons metadata is not passed in as a variable as per this page. So in order to do this you would have to write a little program that connects to Laserfiche and pulls the metadata based on an entry ID. Not difficult but definitely something custom.

Your other alternative, and my recommended approach would be to just use Laserfiche Connector to launch windows explorer and pass in the metadata/folder path as an argument. This took just a few minutes to create and worked well.

 

0 0
replied on December 14, 2017
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.