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

1058
9
05-02-2011 07:39 AM
PaulMcBride
New Contributor III
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
Occasional 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
New Contributor III
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
Occasional Contributor
im wanting to do this inside a popup as well. did you ever have any luck?
0 Kudos
KC
by
Occasional 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
Occasional Contributor II
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
Occasional Contributor II
Ok.

Damn:(
0 Kudos
RichardDiaz
New Contributor III
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
Occasional Contributor
Thank you!

This works very well
0 Kudos