Select to view content in your preferred language

eSearch Widget Related Records

1404
8
Jump to solution
02-22-2012 07:14 AM
JasonNielsen
Regular Contributor
My question is this:

I have several layers in my searchwidget.xml that have relates. I would like to change the icon for each layer that has a relate to be a different icon rather than the default i_relate.png icon.

An example is: 1 relate goes to a Sales icon and the other could go to an icon of Maintenance records. It appears that in the xml you can call out 1 icon for everything that is in the searchwidget.xml.

I was hoping there is a way to call out a different icon for each relate within the searchwidget.xml? Just wondered if anybody else has wanted to do this or ideas on where to start to get this to work.

thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jason,

  The new version with your enhancement request is now available.

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:

View solution in original post

0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Are you talking about a different icon in the Choose Relates dialog that pops up once you do the search and click on the relates icon in the results?
0 Kudos
JasonNielsen
Regular Contributor
I have several relates that go to different layers in my searchwidget.xml. In the XML file there is an option to set the relate icon and that sets it for all relates that are in that SearchWidget.xml, the default is the i_relate.png. What i want to do is i have 1 layer that is parcels and it is related to the sales tables. So for that relate i would like to use the SalesIcon.png i have. In the same XML file i have another relate that goes to Stormwater Structures and it is related to the maintenance records for each feature. I would like to use a different Icon say the MaintenanceIcon.png for this relate. Currently everything within this XML file that has a relate gets the same icon in the search results.

I was think along the idea of the Links in the eSearch widget you can call out each link to have a different icon. Sort of like my example below.

            <relates>
                <relate id="1" label="Sales" enableexport="true">
                    <fields all="false">
                        <field name="PARCELID" alias="PARCELID"/>
                        <field name="SALE_DATE" alias="SALE DATE" dateformat="MM/DD/YYYY" useutc="true"/>
                        <field name="OWNER" alias="OWNER"/>
                    </fields>

                    
                    <iconprefix></iconprefix>
                    <iconfield></iconfield>
                    <iconsuffix>http://server1/SalesIcon.png</iconsuffix>

                </relate>

                <relate id="1" label="Maintenance Records" enableexport="true">
                    <fields all="false">
                        <field name="FACILITY_ID" alias="FACILITYID"/>
                        <field name="INSPECTION_DATE" alias="INSPECTION DATE" dateformat="MM/DD/YYYY" useutc="true"/>
                        <field name="FIELD_INSPECTOR" alias="FIELD INSPECTOR"/>
                    </fields>

                    
                    <iconprefix></iconprefix>
                    <iconfield></iconfield>
                    <iconsuffix>http://server1/MaintenanceIcon.png</iconsuffix>

                </relate>
            </relates>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Here is what I am imagining for the next version:

            <relates>
                <relate id="0" label="ABIMS Bridge" enableexport="true" icon="assets/images/i_lego.png">
                    <fields all="true" />
                </relate>
                <relate id="1" label="Average Daily Traffic" enableexport="true">
                    <fields all="false">
                        <field name="Date_" dateformat="MM/DD/YYYY" />
                        <field name="Road_Name" />
                        <field name="Road_ID" />
                        <field name="Location" />
                        <field name="ADT" sum="true" sumlabel="ADT Total Count: " />
                        <field name="Percent_Tr" />
                    </fields>
                </relate>
                <relate id="2" label="Railroad Crossings" enableexport="true" icon="assets/images/i_flag.png">
                    <fields all="false">
                        <field name="Gate" />
                        <field name="Lights" />
                        <field name="Active" />
                        <field name="At_Grade" />
                        <field name="Clearance" />
                        <field name="Control_Mark" />
                    </fields>
                </relate>
                <relate id="3" label="Signs" enableexport="false" icon="assets/images/i_clock.png">
                    <fields all="false">
                        <field name="Type" />
                        <field name="Road_ID" />
                        <field name="Condition" />
                        <field name="P_Hyper" />
                        <field name="Image_" hyperlinkgridfield="true"
                            hyperlinkaliastext="Get Sign Image" linksuffix="" linkprefix="" />
                        <field name="post" />
                    </fields>
                </relate>
                <relate id="4" label="Guardrails" enableexport="true">
                    <fields all="false">
                        <field name="Type" />
                        <field name="ID" />
                        <field name="Date_P" dateformat="MM/DD/YYYY" />
                        <field name="Date_R" dateformat="MM/DD/YYYY" />
                        <field name="Type_end_a" />
                        <field name="Type_start_a" />
                        <field name="Comments" />
                    </fields>
                </relate>
            </relates>


The main
<relateicon>widgets/eSearch/assets/images/i_relate.png</relateicon>

will stay the same as there is always going to be the need for on general relate icon that will display in the results as show in the figure label #1

[ATTACH=CONFIG]12132[/ATTACH]

#2 in the image is what will change.

Is this close to what you are after?
0 Kudos
JasonNielsen
Regular Contributor
Jason,

   Here is what I am imagining for the next version:

            <relates>
                <relate id="0" label="ABIMS Bridge" enableexport="true" icon="assets/images/i_lego.png">
                    <fields all="true" />
                </relate>
                <relate id="1" label="Average Daily Traffic" enableexport="true">
                    <fields all="false">
                        <field name="Date_" dateformat="MM/DD/YYYY" />
                        <field name="Road_Name" />
                        <field name="Road_ID" />
                        <field name="Location" />
                        <field name="ADT" sum="true" sumlabel="ADT Total Count: " />
                        <field name="Percent_Tr" />
                    </fields>
                </relate>
                <relate id="2" label="Railroad Crossings" enableexport="true" icon="assets/images/i_flag.png">
                    <fields all="false">
                        <field name="Gate" />
                        <field name="Lights" />
                        <field name="Active" />
                        <field name="At_Grade" />
                        <field name="Clearance" />
                        <field name="Control_Mark" />
                    </fields>
                </relate>
                <relate id="3" label="Signs" enableexport="false" icon="assets/images/i_clock.png">
                    <fields all="false">
                        <field name="Type" />
                        <field name="Road_ID" />
                        <field name="Condition" />
                        <field name="P_Hyper" />
                        <field name="Image_" hyperlinkgridfield="true"
                            hyperlinkaliastext="Get Sign Image" linksuffix="" linkprefix="" />
                        <field name="post" />
                    </fields>
                </relate>
                <relate id="4" label="Guardrails" enableexport="true">
                    <fields all="false">
                        <field name="Type" />
                        <field name="ID" />
                        <field name="Date_P" dateformat="MM/DD/YYYY" />
                        <field name="Date_R" dateformat="MM/DD/YYYY" />
                        <field name="Type_end_a" />
                        <field name="Type_start_a" />
                        <field name="Comments" />
                    </fields>
                </relate>
            </relates>


The main
<relateicon>widgets/eSearch/assets/images/i_relate.png</relateicon>

will stay the same as there is always going to be the need for on general relate icon that will display in the results as show in the figure label #1

[ATTACH=CONFIG]12132[/ATTACH]

#2 in the image is what will change.

Is this close to what you are after?




I never get the "Choose your Relate" window to show up but i think that is because i have only 1 relate for that layer.

It looks like what you have coming up is pretty much what i'm looking for. Do you know when that version will be coming out?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   So if you only have one relate per layer than you would need the #1 icon to be different for each layer than, right?
0 Kudos
JasonNielsen
Regular Contributor
That is correct.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

  The new version with your enhancement request is now available.

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
JasonNielsen
Regular Contributor
As always, Thank you for your help on the the forums Robert. I've marked it as answered.
0 Kudos