Select to view content in your preferred language

Enhanced-Search-Widget-for-FlexViewer Part III

143913
776
04-30-2013 03:58 PM
RobertScheitlin__GISP
MVP Emeritus
All,

   Here is a new thread to post questions and discuss the Enhanched Search Widget. The old thread was getting too long.
Tags (2)
776 Replies
RobertScheitlin__GISP
MVP Emeritus
Matt,

  Using a coded domain in the expression would not look like what you have... That is a userlist. Are you asking how to use a domain field? If so that would look like this (assuming that the field is type string):

<value prompt="Material" field="MATERIAL" usedomain="true" isvaluerequired="false" autosubmit="false" >MATERIAL = '[value]'</value>
0 Kudos
MATTHEWPORTER
Deactivated User
Thanks Robert!


I am asking how to use a domain field. But the field type is not string. It is numeric, short type.

I currently have

                 <expression alias="Access Status" textsearchlabel="Search Access Status:">
                    <values>
                        <value field="AquisitionCode" usedomain="true">AquisitionCode = '[value]'</value>
                    </values>
                </expression>
When I take the selection action it returns --- faultcode=400 faultdetail=""
Is there something differant for short type?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matt,

   Yes when querying numeric field you do not wrap the [value] in single quotes.

<value field="AquisitionCode" usedomain="true">AquisitionCode = [value]</value>
0 Kudos
MATTHEWPORTER
Deactivated User
Bam!

Your awesome! That was it.

Thank You!
0 Kudos
AngieAllison
Emerging Contributor
Also - the date value that you changed??  i am trying to do a greater than or equal to on the date and it seemed to be working the way i had it.  is it wrong??  Is it possible to do a "between" dates ??

Ok Robert I am in process of updateing all my widgets and Flex Viewer to 3.3 so i can use the full capability of this widget.  i still am not able to have 2 queries with domain values.  I am taking the date out for now just to eliminate that problem so here is the piece of the xml
   <expressions>
    <expression alias="Material" textsearchlabel="Search Mains:" isvaluerequired="false" autosubmit="false">
     <values>
      <value prompt="Material" field="MATERIAL" usedomain="true" isvaluerequired="false" autosubmit="false" >MATERIAL = '[value]' </value>
      <value prompt="Diameter" field="DIAMETER" usedomain="true" isvaluerequired="false" autosubmit="false"operator= "AND" > DIAMETER = [value] </value>
      <!--value prompt="Example: 01/01/2007 Install Date" field="INSTALLDATE" isvaluerequired="false" operator= "AND" > INSTALLDATE >= '[value] 00:00:00'</value-->
     </values>
     </expression>
    </expressions>
and attached is a picture of my widget.
see how it is auto filling in the data?  i would think they would need to start out blank??  I dont understand what i have done wrong here.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Marie,

   Go get Version 3.3.1 (posted a few minutes ago) it relsoves that issue.
0 Kudos
HudsonSmith
Emerging Contributor
I am having problems with getting my fixed datagrid widget to work in conjunction with my esearch widget. Any ideas? I followed the Enhanced Search Widget Fixed Datagrid Setup pdf. and my search results box is on my widget but when I perform an enhanced search no results popup in the datagrid?
0 Kudos
AngieAllison
Emerging Contributor
Thanks Robert i will try it.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Hudson,

   So are you saying that you see the fixed datagrid at the bottom of your app but that it does not get populated with your search results?..

   Following the Enhanced Search Widget Fixed Datagrid Setup pdf will get you going as far as adding the widget but you will have to configure which field go to the datagrid in the eSearchWidget.xml based on the guidance from the Enhanced Search Widget XML Configuration.pdf or looking at the examples in the default eSearchWidget.xml in the download.
0 Kudos
AngieAllison
Emerging Contributor
When i do the export to text it does not come out right so that i can Import into Excel.  It's like the seperators don't come out correctly or something?
attached is the text file, the csv fiel and a word doc showing excel.
i had to change the csv file to .doc to get it to upload.
0 Kudos