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

Question

Question

Weblink Field Search using Search Form

asked on May 29, 2015

When using a Search Form in Weblink 9, I am not able to use a wildcard in a field search.  This was available in Weblink 8.  Is there a setting that I need to change to enable the user of wildcards?  Right now if I enter a wildcard in the field search on a Search Form, it will not return any results.  If I use the same wildcard in a field search using the regular Search form, it will return results as expected.

 

Thanks,

Jen

0 0

Answer

SELECTED ANSWER
replied on May 29, 2015 Show version history

Hello Jen, 

There is a way to use wildcards in search forms, just follow these instructions. Navigate to your WebLink directory (default location is C:\Program Files\Laserfiche\WebLink) and open up the Web Files folder then the searchforms folder. Within that folder should be a folder corresponding to the repository the search is configured in. Open that up and edit the search you wish to use wildcards in by right clicking and selecting edit. You should see a line of code that looks like this

    <Query>
      <And>
        <Constraint Type="Field" Operator="eq" MatchAll="False" MatchWholeWord="True" UseWildcards="True" ControlID="Test_Input0" FieldName="Applicant Name" />
      </And>
    </Query>

You can look at the last parameter (FieldName) to indicate which fields you are turning wildcard search on for. Set the UseWildcards parameter to true and the search should then use wildcards. 

Please note that if you make changes to the custom search, this parameter may be reset to false, so finish designing the custom search first, then change the wildcard settings after. Then remember if you make further changes to re-enable the wildcard settings. 

1 0

Replies

replied on June 23, 2015

To improve on my initial answer, there is a place to set this in the Designer so you can make edits without overwriting the change.  If you open up your search form in the designer, you should see some tabs going across the bottom pane. In the search query tab, click on the field you want to change the properties of. This should bring up a different set of properties than before. One of these properties is 'Use wildcards' which will allow the use of wildcards. This method is slightly more robust because it will keep that change along with any future changes made to the search form. 

1 0
replied on June 24, 2015

Here's what it looks like: 

constraint_usewildcards.png
1 0
replied on May 29, 2015

This works perfectly, Jared.  Thanks for your help!

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

Sign in to reply to this post.