Select to view content in your preferred language

Identify Widget 3.3.2

964
5
Jump to solution
07-02-2013 07:30 AM
EmmaAlterton1
Deactivated User
Hello

I have upgraded my Flexviewer/App Builder to version 3.3.

I have then upgraded my identify widget to version 3.3.2.

I've been making the changes detailed in the configuration instruction pdf and am struggling with using the actual field name in the field element as per the instructions
[INDENT]The field element name is now the actual field name and NOT the alias name of the field as it was in all previous versions.[/INDENT]


My map service layer has its fields defined as
Fields:
FID ( type: esriFieldTypeOID , alias: FID )
Shape ( type: esriFieldTypeGeometry , alias: Shape )
OBJECTID ( type: esriFieldTypeInteger , alias: OBJECT ID )
SHAPE_LENG ( type: esriFieldTypeDouble , alias: SHAPE_LENG )
SHAPE_AREA ( type: esriFieldTypeDouble , alias: SHAPE_AREA )
NAME_ ( type: esriFieldTypeString , alias: NAME , length: 50 )
MAIN_SWITC ( type: esriFieldTypeString , alias: MAIN NUMBER , length: 50 )
HYPERLINK ( type: esriFieldTypeString , alias: HYPERLINK , length: 100 )

In my identify xml I want to show data from the NAME_ and MAIN_SWITC fields

If I specify the alias names (see below) I get data back

<fields>
<field name="NAME" alias="Name"/>
<field name="MAIN NUMBER" alias="Main Number"/>
</fields>

If I follow the instructions and use the actual field name I get nothing.

Are the instructions wrong, is this a bug or have I not updated the widget correctly.

Thanks
Emma
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
EmmaAlterton1
Deactivated User
Hi

I followed your suggestion and built a new application to test with. The identify worked with the actual names as you stated in the instructions.

It just doesn't work with any existing applications that I created in a previous version and upgraded.

Luckily I only have a couple of existing applications so can create them afresh as this seems to get everything working correctly.

Thanks for your help


Emma

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Emma,

  So you would use this for the fields then:

<fields>
    <field name="NAME_" alias="Name"/>
    <field name="MAIN_SWITC" alias="Main Number"/>
   </fields>


As long as you followed the other directions about the url and id tags you should be fine.
0 Kudos
EmmaAlterton1
Deactivated User
The code you posted with the actual names in it does not work for me.

I went through and changed the fields to these originally following your instructions and no data was returned.

Yes I have the url to the mapserver and id tag correctly configured, including in the exclude layers.

I can get the correct data if I have the url, id tag and fields using the alias name!

Hence my confusion

Emma
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emma,

   Several people have mentioned issues with upgrading an existing Application Builder application. Can you try creating a new Application (just for testing)?
0 Kudos
EmmaAlterton1
Deactivated User
Hi

I followed your suggestion and built a new application to test with. The identify worked with the actual names as you stated in the instructions.

It just doesn't work with any existing applications that I created in a previous version and upgraded.

Luckily I only have a couple of existing applications so can create them afresh as this seems to get everything working correctly.

Thanks for your help


Emma
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emma,

  Glad that worked for you.

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos