Select to view content in your preferred language

PopUp 2.3 - Add a hyperlink to outside url based on identified feature

1236
9
05-02-2011 07:39 AM
PaulMcBride
Occasional Contributor
What I am wanting to do is bind a attribute from the identified feature to the end of a url.  I have a parcel database that has a State_PIN field which needs placed on the end of this...
"http://www.go2gov.net/madison/tax/showPropertyInfo.do?account="
Any suggestions?
Tags (2)
0 Kudos
9 Replies
AlexSanders
Frequent Contributor
Paul,

Are you using Robert's Identify Widget?  If so insert the URL in the <linkprefix> area then put the field that contains the number you want to pass in the <linkfield> area.  Attached is the code from one of our Identify.xml pages
0 Kudos
PaulMcBride
Occasional Contributor
I'm actually trying to do all of this within the popup window.  I will use his identify widget until I get this figured out though.  Thanks for the information!
0 Kudos
GeraldLee__GISP
Frequent Contributor
im wanting to do this inside a popup as well. did you ever have any luck?
0 Kudos
KC
by
Regular Contributor
Does this work for  you?
<?xml version="1.0" ?>
<configuration>
    <title>{APN}</title>
    <description>
        <![CDATA[<a href="http://www.go2gov.net/madison/tax/showPropertyInfo.do?account={STATE_PIN}">View Property</a>]]>
    </description>
    <fields>
        <field name="APN"/>
 <field name="STATE_PIN"/> 
    </fields>
</configuration>
0 Kudos
HalilSiddique
Frequent Contributor
Does this work for you?
<?xml version="1.0" ?>
<configuration>
    <title>{APN}</title>
    <description>
        <![CDATA[<a href="http://www.go2gov.net/madison/tax/showPropertyInfo.do?account={STATE_PIN}">View Property</a>]]>
    </description>
    <fields>
        <field name="APN"/>
    <field name="STATE_PIN"/>    
    </fields>
</configuration>


I've tried the above and got it to work, but now it only shows the URL not any fields from the fields tag.

Anyone else had this problem? or know how to fix this?

Cheers
Halil
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Halil,

   You can't use the description and have the fields display as well it is one or the other.
0 Kudos
HalilSiddique
Frequent Contributor
Ok.

Damn:(
0 Kudos
RichardDiaz
Regular Contributor
Try this out:

<?xml version="1.0" ?>
<configuration>
    <title>{APN}</title>
    <description>
        <![CDATA[<a href="http://www.go2gov.net/madison/tax/showPropertyInfo.do?account={STATE_PIN}">View Property</a><br>    <li>APN: {APN}</li><li>STATE_PIN: {STATE_PIN}</li>]]>
    </description>
</configuration>


See this link for more information on the htmlText property in Flex.
0 Kudos
DanielMunoz
Regular Contributor
Thank you!

This works very well
0 Kudos