Select to view content in your preferred language

Hyperlink in search result

2715
2
Jump to solution
03-12-2014 11:25 AM
RudieWatzig
Regular Contributor
Hello, I hope I am posting in the correct forum.

I am very very new to the FLEX api, and I have a very simple question.  Actually, there are about 3 things I need to figure out, but I will do one at a time.

I am using the Application Builder version 3.6.  I would like to get my search widget to display the result as a hyperlink, not just plain text.  See attached photo for example:
[ATTACH=CONFIG]32156[/ATTACH]

I imagine I Will have to change this option in my config file somehow?

            <textsearchlabel>Select by attribute</textsearchlabel>
            <titlefield>Name</titlefield>
            <fields>
                <field name="Name" alias="Name"/>
                <field name="Link" alias="Link"/>
            </fields>
            <orderbyfields>Name ASC</orderbyfields>
        </layer>
    </layers>
</configuration>


Thanks for your help.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor
Rudie,

You need to use the linkfield tag in your layers:

<linkfield alias="More Information">Link</linkfield>

See the help here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Search_widget_tags/01m300000023...

Regards

Anthony

View solution in original post

0 Kudos
2 Replies
AnthonyGiles
Honored Contributor
Rudie,

You need to use the linkfield tag in your layers:

<linkfield alias="More Information">Link</linkfield>

See the help here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Search_widget_tags/01m300000023...

Regards

Anthony
0 Kudos
RudieWatzig
Regular Contributor
Thank you.  Like I said, I'm just figuring this stuff out TODAY.  It worked.
0 Kudos