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

Question

Question

Directly opening a search result via command line parameters

asked on February 6, 2014 Show version history

Using the command line parameters and the search string. How can you get the document to open if there is only 1 search result?

 

In the .LFE shortcut I can programme

 

<?xml version='1.0' encoding='Unicode'?> <laserfiche>
    <repository name='repo' domainauth='y'>
          <search phrase='{[Sales Orders]:[Order Number]="11122233"}' />
    </repository>
</laserfiche>

 

This returns the single file (there will only ever be one).

 

In the lf.exe shortcut I have tried

 

"C:\Program Files\Laserfiche\Client\LF.exe" -W -L"repo" -S"{[Sales Orders]:[Order Number]="11122233"}"

 

Again this does the same search but doesn't open the document.

 

How can you add a command in that will automatically open the document if there is only 1 search result?

 

It does open the document if you use the entry ID, however this information is going to be passed from another system and will match what is in a LF field which will always be a unique value.

 

Thanks!

0 0

Answer

APPROVED ANSWER
replied on February 6, 2014

For command line and LFE, you need to know the entry ID to open it automatically. The "OpenIfOneResult" feature exists in Client Automation Tools. You can use the SDK to look up the ID based on a search and then open it that way.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.