Select to view content in your preferred language

esearch widget 3.4 (flex viewer) relate help needed

752
2
Jump to solution
08-22-2013 10:18 AM
by Anonymous User
Not applicable
Original User: yasharkorkmaz

I am trying to relate a layer with two tables using esearch widget. the relates work just fine in ArcMAP and also using Query Related Records in the ArcGIS Rest services directory but it keeps hanging in the web page. Could anyone give me a clue about this?

I am atatching my config.xml and the esearch.xml.

Thank you

Yas(h)ar
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Yasar,


  I am not sure if this is your whole problem but you definetly have your xml off.

      <relates>         <relate id="0" label="Related Sales Info" enableexport="true" enableprintgrid="true" icon="widgets/eSearch/assets/images/i_relate.png" printitle="Related Sales Info Print Title">           <fields all="true"></fields>         </relate>         <relate id="1" label="Sample data" enableexport="true" enableprintgrid="true" icon="widgets/eSearch/assets/images/i_relate.png" printitle="Related Sample print title">           <fields all="true"></fields>           <field name="NBRHD_CD" alias="Neighborhood" gridfield="true" />         </relate>       </relates>

The field element is suppose to be a child element of the fields parent element. You have the fields element set to all="true" and then you close that element, and yet you attempt to define a specific field called NBRHD_CD. Also there is no need to set the gridfield attribute on a relate field as then only place this field will show is in the datagrid. This is what I should look like:

      <relates>         <relate id="0"  label="Related Sales Info" enableexport="true" enableprintgrid="true"  icon="widgets/eSearch/assets/images/i_relate.png" printitle="Related  Sales Info Print Title">           <fields all="true"></fields>         </relate>          <relate id="1" label="Sample data" enableexport="true"  enableprintgrid="true" icon="widgets/eSearch/assets/images/i_relate.png"  printitle="Related Sample print title">           <fields all="false">               <field name="NBRHD_CD" alias="Neighborhood" />           </fields>         </relate>       </relates>

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Yasar,


  I am not sure if this is your whole problem but you definetly have your xml off.

      <relates>         <relate id="0" label="Related Sales Info" enableexport="true" enableprintgrid="true" icon="widgets/eSearch/assets/images/i_relate.png" printitle="Related Sales Info Print Title">           <fields all="true"></fields>         </relate>         <relate id="1" label="Sample data" enableexport="true" enableprintgrid="true" icon="widgets/eSearch/assets/images/i_relate.png" printitle="Related Sample print title">           <fields all="true"></fields>           <field name="NBRHD_CD" alias="Neighborhood" gridfield="true" />         </relate>       </relates>

The field element is suppose to be a child element of the fields parent element. You have the fields element set to all="true" and then you close that element, and yet you attempt to define a specific field called NBRHD_CD. Also there is no need to set the gridfield attribute on a relate field as then only place this field will show is in the datagrid. This is what I should look like:

      <relates>         <relate id="0"  label="Related Sales Info" enableexport="true" enableprintgrid="true"  icon="widgets/eSearch/assets/images/i_relate.png" printitle="Related  Sales Info Print Title">           <fields all="true"></fields>         </relate>          <relate id="1" label="Sample data" enableexport="true"  enableprintgrid="true" icon="widgets/eSearch/assets/images/i_relate.png"  printitle="Related Sample print title">           <fields all="false">               <field name="NBRHD_CD" alias="Neighborhood" />           </fields>         </relate>       </relates>
0 Kudos
by Anonymous User
Not applicable
Original User: yasharkorkmaz

Thank you Robert. You were right, it was not my only problem but it helped to fix it. For some reason for the relates that have fields/all = true it seems to hang up, and I had that part of one relate wrong in the xml. I changed both relates fields/all = false and then fixed the issue you caught for both relates. It works now 🙂
Thanks again,
Yashar
0 Kudos