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

Question

Question

Html Search Results

asked on February 21, 2017 Show version history

Looking for a little help with an issue that I cannot seem to get.  In a Form I have, I have an HTML field with the following:

<a class="links" id="a2" onclick="window.open(href='http://servername/laserfiche/Browse.aspx?repo=DEVVATS#?search={[Veteran]:[Veteran ID]='+document.getElementById('Field321').value+'}&amp;{LF:Name=*, Type=F}&amp;view=search'); return false">Click to view the Veteran folder</a>

This is a hyperlink that launches a new window and is supposed to run a search in WebAccess for a folder, with the Veteran ID field that has the value of Field 321 on our Form.

This seems to work...but then fail and I don't know why.  When I click the link a new page opens with this:

http://servername/laserfiche/Browse.aspx?repo=DEVVATS#?search=%7B%5BVeteran%5D:%5BVeteran%20ID%5D%3D1000033738%7D&%7BLF:Name=*,%20Type%3DF%7D&view=search

Decoding this gives:  

http://servername/laserfiche/Browse.aspx?repo=DEVVATS#?search={[Veteran]:[Veteran ID]=1000033738}&{LF:Name=*, Type=F}&view=search

If I paste {[Veteran]:[Veteran ID]=1000033738}&{LF:Name=*, Type=F} into the search syntax I get my folder.

Yet use the link, after displaying the original link it jumps down to http://servername/laserfiche/Browse.aspx?repo=DEVVATS#?{LF:Name=*, Type=F}&id=6874

Its almost like it tried to run my search URL but then something switches and it runs the above line.  The above line is incorrect and it give me the contents of the folder I am looking for

Does anyone know why the URL would seem to be switching shortly after launching?  I assume maybe its syntax but cannot figure out what is wrong.

Edit - Or is it working?  In WebAccess it seems to not show the folder.  But open the folder and display its contents.  In the full client it returns the folder (not landing "inside it")

 

Thanks,

Chris

 

 

0 0

Answer

SELECTED ANSWER
replied on May 12, 2017

By default, when a search has a single result Web Access will automatically open that entry.  You can override this either in the url, by appending "&amp;openifoneresult=false" to the end of your string, or by setting the user attribute "[Search]OpenIfOneResult" to "false".

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.