Enhanced-Search-Widget-for-FlexViewer Part III

116298
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
Julie,

  Can you provide a screenshot(s) of the RSET service directory for that layer?
0 Kudos
JulieWilliams1
New Contributor
Hi Robert!

I am kind of new at this - is this what you need?

Layer: DIMP Main Risk Total (ID: 1)
Name: DIMP Main Risk Total

Display Field: DIMP_Risk_TotalM

Type: Feature Layer

Geometry Type: esriGeometryPolyline

Description:

Definition Expression:

Copyright Text:

Default Visibility: false

MaxRecordCount: 1000

Supported Query Formats: JSON, AMF

Min Scale: 200000

Max Scale: 0

Supports Advanced Queries: true

Supports Statistics: true

Has Labels: false

Can Modify Layer: false

Can Scale Symbols: false

Extent:
XMin: 847998.3831069246
YMin: 1.3449008955802359E7
XMax: 2571571.339169342
YMax: 1.5469996786522023E7
Spatial Reference: PROJCS["WGS_1984_UTM_Zone_12N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",1640416.666666667],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-111.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Foot_US",0.3048006096012192]]



Drawing Info:
Renderer:
Class Breaks Renderer:
Field: DIMP_Risk_TotalM
Min. Value: 0.0
ClassBreakInfos:
Class Maximum Value: 909616
Label: 0 - 909616
Description:
Symbol:
Style: esriSLSSolid
Color: [56, 168, 0, 255]
Width: 4
Class Maximum Value: 1819232
Label: 909617 - 1819232
Description:
Symbol:
Style: esriSLSSolid
Color: [139, 209, 0, 255]
Width: 4
Class Maximum Value: 2728848
Label: 1819233 - 2728848
Description:
Symbol:
Style: esriSLSSolid
Color: [255, 255, 0, 255]
Width: 4
Class Maximum Value: 3638464
Label: 2728849 - 3638464
Description:
Symbol:
Style: esriSLSSolid
Color: [255, 128, 0, 255]
Width: 4
Class Maximum Value: 4548080
Label: 3638465 - 4548080
Description:
Symbol:
Style: esriSLSSolid
Color: [255, 0, 0, 255]
Width: 4
Transparency: 0
Labeling Info:

HasZ: false

HasM: false

Has Attachments: false

HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText

Type ID Field: MaterialType

Fields:
DIMP_Risk_TotalM ( type: esriFieldTypeInteger , alias: DIMP Main Risk Total )
DIMP_Risk_TotalM_NoExcavation ( type: esriFieldTypeInteger , alias: DIMP Main Risk Total (No Excavation) )
MJ ( type: esriFieldTypeInteger , alias: MJ )
PROJECTID ( type: esriFieldTypeInteger , alias: Project ID )
ORIGINSTDATE ( type: esriFieldTypeDate , alias: Original Install Date , length: 8 )
INSERVICEDATE ( type: esriFieldTypeDate , alias: In Service Date , length: 8 )
NOMINALDIAMETER ( type: esriFieldTypeSmallInteger , alias: Diameter , Coded Values: [-1: Unknown Verified] , [0: Unknown] , [1: 1] , ...10 more... )
MATERIALTYPE ( type: esriFieldTypeInteger , alias: Material )
GRADE ( type: esriFieldTypeString , alias: Grade , length: 20 , Coded Values: [2306: 2306] , [2406: 2406] , [2708: 2708] )
COATINGTYPE ( type: esriFieldTypeSmallInteger , alias: Coating )
CATHSYSID ( type: esriFieldTypeString , alias: Cathodic System ID , length: 12 )
RECONDITIONED ( type: esriFieldTypeSmallInteger , alias: Reconditioned , Coded Values: [4: N/A] )
BELTLINEINDICATOR ( type: esriFieldTypeSmallInteger , alias: Beltline Indicator , Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: YES] , ...2 more... )
COUNTYNAME ( type: esriFieldTypeString , alias: County , length: 50 )
STATENAME ( type: esriFieldTypeSmallInteger , alias: State )
CITYNAME ( type: esriFieldTypeString , alias: City , length: 50 )
OPAREA ( type: esriFieldTypeString , alias: Operation Area , length: 8 )
REGIONOFFICENAME ( type: esriFieldTypeString , alias: Region Office , length: 50 )
REGIONOFFICECODE ( type: esriFieldTypeString , alias: Region Office Code , length: 20 )
REGIONNAME ( type: esriFieldTypeString , alias: Region , length: 50 )
ConsequencesM ( type: esriFieldTypeInteger , alias: Consequence Total )
Risk_Factor_TotalM ( type: esriFieldTypeInteger , alias: Risk Category Total )
Risk_Factor_TotalM_NoExcavation ( type: esriFieldTypeInteger , alias: Risk Category Total (No Excavation) )
Risk_CorrosionM ( type: esriFieldTypeInteger , alias: Corrosion Risk )
Risk_EquipmentFailureM ( type: esriFieldTypeInteger , alias: Equipment Failure Risk )
Risk_ExcavationDamageM ( type: esriFieldTypeInteger , alias: Excavation Damage Risk )
Risk_IncorrectOperationM ( type: esriFieldTypeInteger , alias: Incorrect Operation Risk )
Risk_MaterialM ( type: esriFieldTypeInteger , alias: Material Risk )
Risk_NaturalForcesM ( type: esriFieldTypeInteger , alias: Natural Force Risk )
Risk_OtherOutsideForcesM ( type: esriFieldTypeInteger , alias: Other Outside Force Risk )
Risk_WeldJointFailureM ( type: esriFieldTypeInteger , alias: Weld Joint Failure Risk )
TopSystemScoresM ( type: esriFieldTypeString , alias: Top System Scores , length: 5 )
TopSystemScoresMNoExc ( type: esriFieldTypeString , alias: Top System Scores (No Excavation) , length: 5 )
TopSystemScoresMNoBelt ( type: esriFieldTypeString , alias: Top System Scores (No Beltline) , length: 5 )
TopSystemScoresMNoExcNoBelt ( type: esriFieldTypeString , alias: Top System Scores (No Exc) (No Belt) , length: 5 )
TopRegionOfficeScoresM ( type: esriFieldTypeInteger , alias: Top Region Office Scores )
TopRegionOfficeScoresMNoExc ( type: esriFieldTypeInteger , alias: Top Region Office Scores (No Excavation) )
TopRegionOfficeScoresMNoBelt ( type: esriFieldTypeInteger , alias: Top Region Office Scores (No Beltline) )
TopRegionOfficeScoresMNoExcNoBelt ( type: esriFieldTypeInteger , alias: Top Region Office Scores (No Exc) (No Belt) )
Shape ( type: esriFieldTypeGeometry , alias: Shape )
OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )
Types:
ID: 4
Name: PTR Plastic
Domains:
COATINGTYPE:
Coded Values: [13: N/A]
NOMINALDIAMETER:
Inherited
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Inherited
GRADE:
Inherited

--------------------------------------------------------------------------------
ID: 3
Name: Thin Wall Rocket Tubing
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: 2] , ...4 more...
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 2
Name: Cast Iron
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [4: 4] , ...2 more...
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 1
Name: Steel
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [1: 1] , ...20 more...
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 6
Name: Unverified
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown]
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 5
Name: PAL Plastic
Domains:
COATINGTYPE:
Coded Values: [13: N/A]
NOMINALDIAMETER:
Inherited
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Inherited
GRADE:
Inherited

--------------------------------------------------------------------------------


Supported Operations:   Query   Generate Renderer   Return Updates



Thanks!
Julie Williams
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Julie,

   So notice that COATINGTYPE field does not list a domain like some of the others? This is why it is not working in the widget. I have no way of knowing about the domain if there is no info listed there.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

New version available:

Version 3.5.2 - 10/11/2013
* Fixed issue hyper link grid fields and version 3.5.1.
* Added ability to text qualify userlists that contain comma in their values.
0 Kudos
JulieWilliams1
New Contributor
Hi Robert!
Sorry I have not been able to reply to your last post until now - got pulled away to work on some other things. Thank you, so much, for getting back to me! Before I contacted you, I had changed some of the defaults on the 'Coating' field to see if it made a difference and I think that's why nothing was showing up for the 'Coating' field.  Below is a copy of what it should look like.  This feature is sub-typed and domains are assigned by sub-type. Do you think that could be part of why it's not recognizing the domains correctly?  The feature itself has the sub-type defaulted to our PTR Plastic main type and the coating for our plastic main subtype is defaulted to '13', which is the only value showing up.  Just wondering if possibly removing all of the defaults might make a difference or if you have ever seen problems with sub-typed features having multiple domains for one field, cause problems.....

Layer: DIMP Main Risk Total (ID: 1)
Name: DIMP Main Risk Total

Display Field: DIMP_Risk_TotalM

Type: Feature Layer

Geometry Type: esriGeometryPolyline

Description:

Definition Expression:

Copyright Text:

Default Visibility: false

MaxRecordCount: 1000

Supported Query Formats: JSON, AMF

Min Scale: 200000

Max Scale: 0

Supports Advanced Queries: true

Supports Statistics: true

Has Labels: false

Can Modify Layer: false

Can Scale Symbols: false

Extent:
XMin: 847998.3831069246
YMin: 1.3449008955802359E7
XMax: 2571571.339169342
YMax: 1.5469996786522023E7
Spatial Reference: PROJCS["WGS_1984_UTM_Zone_12N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",1640416.666666667],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-111.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Foot_US",0.3048006096012192]]



Drawing Info:
Renderer:
Class Breaks Renderer:
Field: DIMP_Risk_TotalM
Min. Value: 0.0
ClassBreakInfos:
Class Maximum Value: 909616
Label: 0 - 909616
Description:
Symbol:
Style: esriSLSSolid
Color: [56, 168, 0, 255]
Width: 4
Class Maximum Value: 1819232
Label: 909617 - 1819232
Description:
Symbol:
Style: esriSLSSolid
Color: [139, 209, 0, 255]
Width: 4
Class Maximum Value: 2728848
Label: 1819233 - 2728848
Description:
Symbol:
Style: esriSLSSolid
Color: [255, 255, 0, 255]
Width: 4
Class Maximum Value: 3638464
Label: 2728849 - 3638464
Description:
Symbol:
Style: esriSLSSolid
Color: [255, 128, 0, 255]
Width: 4
Class Maximum Value: 4548080
Label: 3638465 - 4548080
Description:
Symbol:
Style: esriSLSSolid
Color: [255, 0, 0, 255]
Width: 4
Transparency: 0
Labeling Info:

HasZ: false

HasM: false

Has Attachments: false

HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText

Type ID Field: MaterialType

Fields:
DIMP_Risk_TotalM ( type: esriFieldTypeInteger , alias: DIMP Main Risk Total )
DIMP_Risk_TotalM_NoExcavation ( type: esriFieldTypeInteger , alias: DIMP Main Risk Total (No Excavation) )
MJ ( type: esriFieldTypeInteger , alias: MJ )
PROJECTID ( type: esriFieldTypeInteger , alias: Project ID )
ORIGINSTDATE ( type: esriFieldTypeDate , alias: Original Install Date , length: 8 )
INSERVICEDATE ( type: esriFieldTypeDate , alias: In Service Date , length: 8 )
NOMINALDIAMETER ( type: esriFieldTypeSmallInteger , alias: Diameter , Coded Values: [-1: Unknown Verified] , [0: Unknown] , [1: 1] , ...10 more... )
MATERIALTYPE ( type: esriFieldTypeInteger , alias: Material )
GRADE ( type: esriFieldTypeString , alias: Grade , length: 20 , Coded Values: [2306: 2306] , [2406: 2406] , [2708: 2708] )
COATINGTYPE ( type: esriFieldTypeSmallInteger , alias: Coating , Coded Values: [13: N/A] )
CATHSYSID ( type: esriFieldTypeString , alias: Cathodic System ID , length: 12 )
RECONDITIONED ( type: esriFieldTypeSmallInteger , alias: Reconditioned , Coded Values: [4: N/A] )
BELTLINEINDICATOR ( type: esriFieldTypeSmallInteger , alias: Beltline Indicator , Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: YES] , ...2 more... )
COUNTYNAME ( type: esriFieldTypeString , alias: County , length: 50 )
STATENAME ( type: esriFieldTypeSmallInteger , alias: State )
CITYNAME ( type: esriFieldTypeString , alias: City , length: 50 )
OPAREA ( type: esriFieldTypeString , alias: Operation Area , length: 8 )
REGIONOFFICENAME ( type: esriFieldTypeString , alias: Region Office , length: 50 )
REGIONOFFICECODE ( type: esriFieldTypeString , alias: Region Office Code , length: 20 )
REGIONNAME ( type: esriFieldTypeString , alias: Region , length: 50 )
ConsequencesM ( type: esriFieldTypeInteger , alias: Consequence Total )
Risk_Factor_TotalM ( type: esriFieldTypeInteger , alias: Risk Category Total )
Risk_Factor_TotalM_NoExcavation ( type: esriFieldTypeInteger , alias: Risk Category Total (No Excavation) )
Risk_CorrosionM ( type: esriFieldTypeInteger , alias: Corrosion Risk )
Risk_EquipmentFailureM ( type: esriFieldTypeInteger , alias: Equipment Failure Risk )
Risk_ExcavationDamageM ( type: esriFieldTypeInteger , alias: Excavation Damage Risk )
Risk_IncorrectOperationM ( type: esriFieldTypeInteger , alias: Incorrect Operation Risk )
Risk_MaterialM ( type: esriFieldTypeInteger , alias: Material Risk )
Risk_NaturalForcesM ( type: esriFieldTypeInteger , alias: Natural Force Risk )
Risk_OtherOutsideForcesM ( type: esriFieldTypeInteger , alias: Other Outside Force Risk )
Risk_WeldJointFailureM ( type: esriFieldTypeInteger , alias: Weld Joint Failure Risk )
TopSystemScoresM ( type: esriFieldTypeString , alias: Top System Scores , length: 5 )
TopSystemScoresMNoExc ( type: esriFieldTypeString , alias: Top System Scores (No Excavation) , length: 5 )
TopSystemScoresMNoBelt ( type: esriFieldTypeString , alias: Top System Scores (No Beltline) , length: 5 )
TopSystemScoresMNoExcNoBelt ( type: esriFieldTypeString , alias: Top System Scores (No Exc) (No Belt) , length: 5 )
TopRegionOfficeScoresM ( type: esriFieldTypeInteger , alias: Top Region Office Scores )
TopRegionOfficeScoresMNoExc ( type: esriFieldTypeInteger , alias: Top Region Office Scores (No Excavation) )
TopRegionOfficeScoresMNoBelt ( type: esriFieldTypeInteger , alias: Top Region Office Scores (No Beltline) )
TopRegionOfficeScoresMNoExcNoBelt ( type: esriFieldTypeInteger , alias: Top Region Office Scores (No Exc) (No Belt) )
Shape ( type: esriFieldTypeGeometry , alias: Shape )
OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )
Types:
ID: 4
Name: PTR Plastic
Domains:
COATINGTYPE:
Inherited
NOMINALDIAMETER:
Inherited
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Inherited
GRADE:
Inherited

--------------------------------------------------------------------------------
ID: 3
Name: Thin Wall Rocket Tubing
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: 2] , ...4 more...
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 2
Name: Cast Iron
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [4: 4] , ...2 more...
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 1
Name: Steel
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [1: 1] , ...20 more...
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 6
Name: Unverified
Domains:
COATINGTYPE:
Coded Values: [-1: Unknown Verified] , [0: Unknown] , [2: Bare] , ...14 more...
NOMINALDIAMETER:
Coded Values: [-1: Unknown Verified] , [0: Unknown]
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Coded Values: [0: Unknown] , [2: Yes] , [3: No]
GRADE:
Coded Values: [N/A: N/A]

--------------------------------------------------------------------------------
ID: 5
Name: PAL Plastic
Domains:
COATINGTYPE:
Inherited
NOMINALDIAMETER:
Inherited
BELTLINEINDICATOR:
Inherited
RECONDITIONED:
Inherited
GRADE:
Inherited

--------------------------------------------------------------------------------
0 Kudos
DongxingMa
New Contributor II
Robert,

First of all, thank you for the great widget!

My strange problem is, the eSearch widget always gives me the "400" error: [RPF Fault faultString="Invalid or missing input parameters."faultCode="400" faultDetail=""] if the searched feature class has a subtype field.

For any of the layers in our map services, as long as subtype field is included (in map service REST: it shows: Type ID Field: Subtype),I never ever made eSearch work; but once I hide the subtype field, recreate the map service (then in REST it shows: Type ID Field: null), then the same query will work well for the layer. This happens even the search query doesn't tough subtype field at all. I checked online, looks nobody else has this same problem, could you please give me a clue, where should I go to find and fix the problem? I am using arcgis server 10.1, flash builder 4.7, and arcgis flex viewer/arcgis api for flex 3.5.

Thanks in advance for helping me out!

Dongxing
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Julie,

   Is it possible to provide this featureclass in a new File GeoDatabase zipped and attached to a post for more analysis on my end?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Dongxing,

Can you provide you configuration for the layer that is failing?
0 Kudos
JulieWilliams1
New Contributor
Yes - let me work on that and I'll attach it - thanks!!
0 Kudos
JulieWilliams1
New Contributor
Hi Robert,
Here you go - let me know if this doesn't work. This is a very small sub-set of data from the original feature class because the original feature class was too large to attach.   Thanks, so much!

Julie Williams
0 Kudos