Select to view content in your preferred language

eSearch Widget

1854
2
Jump to solution
03-03-2016 06:51 AM
RudoDuncan
Deactivated User

Robert, I have set my selection filter to predefined and I want my users to be able to type any letters or numbers and bring up possible selections. Currently, it is only selecting searches that match the beginning characters.

I want to set it where the user can type 'W' or 'Wo' for example and bring up all the radio code that has a 'W' or 'Wo' in it. Some times our users do not know the numerical portion of the radio code. I tried a % but didn't work.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Rudo,

  This is the standard behavior of the dojo filtering select dijit to change this to a wildcard type search you need to make these changes:

In the SingleParameter.js file @ line 253 (the line should be  if(shortType === 'string'){  ) add these two lines after that line:

this.stringCodedValuesFS.set('autoComplete', false);
this.stringCodedValuesFS.set('queryExpr', '*${0}*');

and viola you will get what you are wanting.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Rudo,

  This is the standard behavior of the dojo filtering select dijit to change this to a wildcard type search you need to make these changes:

In the SingleParameter.js file @ line 253 (the line should be  if(shortType === 'string'){  ) add these two lines after that line:

this.stringCodedValuesFS.set('autoComplete', false);
this.stringCodedValuesFS.set('queryExpr', '*${0}*');

and viola you will get what you are wanting.

0 Kudos
RudoDuncan
Deactivated User

You're a gentleman and a scholar. Thank You once again.

0 Kudos