Search Widget generates error when user types an apostrophe

3339
6
05-11-2016 01:24 PM
JorginaRoss
New Contributor II

Search Widget generates error when user types an apostrophe.

My search widget reads the names of terrestrial species of concern from a web service attribute table and displays the names of the species by their scientific and common name.  It works well listing all the different species names, both scientific and common.

Within the widget, the option “select by attribute” allows the user to select a single species and display its location.  However, an error occurs when the user inputs (types) a species common name that contains an apostrophe. 

  The error generated is [RPC Fault faultString=”Unable to complete operation.” faultCode=”400” faultDetail=””]. 

How can I get the widget to accept a user’s input of a common name containing an apostrophe without generating an error?

Gina Ross

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus

Jorgina,

  It sounds like the Search widget is not properly escaping the apostrophe.

May be Matt can offer some advice.

Matt Driscoll

MattDriscoll
Esri Contributor

I believe this was fixed in 3.16. What JSAPI version are you using Jorgina Ross​?

0 Kudos
JorginaRoss
New Contributor II

Matt,

I am using agslib-3.6-2013-12-13 swc.

Gina

Jorgina A. Ross

Kansas Applied Remote Sensing Program

Kansas Biological Survey

University of Kansas

785-864-1524

ginaross@ku.edu<mailto:ginaross@ku.edu>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jorgina,

Flex is now an unsupported esri technology so there is no hope for getting this fixed if it was not fixed in 3.7.

JorginaRoss
New Contributor II

Robert,

Thank you for your prompt response. My way around it is to ask users to type double apostrophes[‘’] and it works, not very elegant though.

Gina

Jorgina A. Ross

Kansas Applied Remote Sensing Program

Kansas Biological Survey

University of Kansas

785-864-1524

ginaross@ku.edu<mailto:ginaross@ku.edu>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matt,

  I'm sorry I did not notice this was a Flex Question.

0 Kudos