Select to view content in your preferred language

SearchWidget questions

692
6
10-14-2010 04:11 PM
MikeHargreaves
Emerging Contributor
A few questions for setting up SearchWidget

1.  Is it possible to use more than one value - say street number and street name?

2.  How would I set up a LIKE expression? - I tried APN LIKE '[value]'% and that didn't work...

3.  Does the linkfield need to contain the complete URL, or can it have just part of the URL and then build the rest.  And if that is possible, is it possible to do string manipulation on the field e.g.
Left(field,5)?

Thanks.
Tags (2)
0 Kudos
6 Replies
MikeHargreaves
Emerging Contributor
So I got Like to work right after posting => APN LIKE '[value]%'

but I thought of another question - is it possible to default to Text Search instead of Graphical Search?

Thanks again.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mike,

  Sure, just put currentState="textInput" attribute in the viewer:BaseWidget element in the searchwidget.mxml
0 Kudos
MikeHargreaves
Emerging Contributor
Mike,

  Sure, just put currentState="textInput" attribute in the viewer:BaseWidget element in the searchwidget.mxml


Robert,

Sorry, but that was mostly Greek to me.  I'm just starting out with the FV, and have had no experience wiith Flex previously.  At this point, I've been playing around with the Config.xml and the various widget .xmls.  I see a searchwidget.xml, but not a .mxml, and I'm not familiar with the viewer:BaseWidget element...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mike,


   Sorry you will need to use the flexviewer source to accomplish what you are attempting to do, you can not change this by configuring the compiled viewer.
0 Kudos
MikeHargreaves
Emerging Contributor
Any answers to my original questions 1 and 3?  Thanks.

A few questions for setting up SearchWidget

1.  Is it possible to use more than one value - say street number and street name?

2.  How would I set up a LIKE expression? - I tried APN LIKE '[value]'% and that didn't work...

3.  Does the linkfield need to contain the complete URL, or can it have just part of the URL and then build the rest.  And if that is possible, is it possible to do string manipulation on the field e.g.
Left(field,5)?

Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mike,

   Same scenario you would have to have the source code to modify the searchWidget to accommodate multiple search fields.

And without the source and modifications yes you would need the whole url in a field.
0 Kudos