Select to view content in your preferred language

eSearch Question

2454
17
02-07-2013 08:39 AM
MattPohl
Frequent Contributor
Robert-

Forgive me if this can be found in the documentation; I search but found nothing regarding it. Prior to versions 3.1.x if i included "All" at the beginning of a userlist the drop-down would auto-populate with "All" when the widget was launched. In the 3.1.x version no matter what I do I can not get the drop-down to auto-populate with any list item. Does this functionality still exist? I have attached a couple of screen shoots showing what I am talking about. Thanks for any help.

Matt
0 Kudos
17 Replies
by Anonymous User
Not applicable
Original User: mshetzer

Robert,
I am running Version 3.1.10 - 2/26/2013

Thanks for the catch on the AND on the single value.

I removed the "AND" operator, but I am still struggling with the auto populate.  I thought I had figured out the issue I was having, but it seems random.  Sometimes it works as expected and populates the field, and on the next load of the SFV it doesn't populate the fields.  Reload again, and it works.

Matt Shetzer
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   Is the service in question public? I have not seen what you are talking about using my services or esri public ones.
0 Kudos
by Anonymous User
Not applicable
Original User: mshetzer

Robert,
It is currently public, but not for long.

I'd like to email you the xml which points to the services.
Can you drop me an email to:

Matt.Shetzer@AmericanMappingSolutions.com

and I can forward the xml

Thanks,
Matt

Matt,

   Is the service in question public? I have not seen what you are talking about using my services or esri public ones.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   By "auto populate" do you mean having the drop down automatically selecting the first value or are you saying it does not populate the drop down list at all?

In version 3.1.9 and greater if you have isvaluerequired = "false" then a blank entry will be added to the drop down list as the first value and that will be automatically selected.
0 Kudos
by Anonymous User
Not applicable
Original User: mshetzer

Robert,
Thanks for your quick reply.

When I say auto-populate,  the drop down selection box is populated with values that are contained in that field.  It seems that the issue is intermittent as it works sometimes, but other times nothing is populated in the box and it is blank.

Here is an example of it working.  Permitted, Producing, Proposed are all be populated from a Geodatabase.
[ATTACH=CONFIG]22351[/ATTACH]

Next time I run the SFV, I might just get blanks.

Thank you,
Matt
0 Kudos
MichaelMiller2
Frequent Contributor
Robert,
Thanks for your quick reply.

When I say auto-populate,  the drop down selection box is populated with values that are contained in that field.  It seems that the issue is intermittent as it works sometimes, but other times nothing is populated in the box and it is blank.

Here is an example of it working.  Permitted, Producing, Proposed are all be populated from a Geodatabase.
[ATTACH=CONFIG]22351[/ATTACH]

Next time I run the SFV, I might just get blanks.

Thank you,
Matt



I thought you had to use
uniquevalsfromfield=
to force values to appear in a dropdown?
0 Kudos
by Anonymous User
Not applicable
Original User: mshetzer

Correct, you need to use the uniquevalsfromfield=

This is the current statement that I am using.  Sometimes it works, sometimes it doesn't.

<value prompt="Status [ Auto Populate ]"  isvaluerequired="false" uniquevalsfromfield="WellStatus" autosubmit="false" operator="AND">WellStatus = '[value]'</value>

Matt
0 Kudos
RhettZufelt
MVP Notable Contributor
Matt,

Have you tried with Fiddler2 open to capture the web results?

Curious if you are getting the 200's on the MapServer/#/querys or if they are 404ing on you.

No matter what I've tried, I can't reproduce.

Also, can you reproduce the issue using a different service as your uniquvaluesfromfield layer?

R_
0 Kudos