Select to view content in your preferred language

eSearch Widget- use a field for the hyperlinkaliastext and get Error #1090

1296
10
07-17-2013 08:44 AM
AllisonKampbell
Regular Contributor
Hi:  I would like to use field values to show up in the data grid instead of the URL.  I have a field (PLATIMAGE) that I would like users to click and links them to open up a plat image.  Instead of the URL, the text I would like to use is the plat name, which comes from another field, PLAT_NAME.  I am using version 3.3 and in the help PDF it says: 

"The hyperlinkaliastext attribute is the text or a {field} to show instead of the url in the data grid If you
want to use a field for the hyperlinkaliastext then just specify the name of the field in curly braces (i.e.
{DESCRIPTION}). So if you have a long url or just don't want the url to show in the data grid then you specify
the alias that you do want to appear in the data grid using this attribute."

Here is my config file:
<field name="PLATIMAGE" alias="Plat" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext={PLAT_NAME} hyperlinkgridfieldonly="true"/>

I however get the following error when I try to launch the eSearch Widet:
"A problem occurred while parsing the configuration file widgets/eSearch/eSearchWidget_Layers.xml
Error #1090"

Is there something wrong with my xml file that I am missing?

Thanks!

Allison
Tags (2)
0 Kudos
10 Replies
GISDev1
Deactivated User
Hi:  I would like to use field values to show up in the data grid instead of the URL.  I have a field (PLATIMAGE) that I would like users to click and links them to open up a plat image.  Instead of the URL, the text I would like to use is the plat name, which comes from another field, PLAT_NAME.  I am using version 3.3 and in the help PDF it says: 

"The hyperlinkaliastext attribute is the text or a {field} to show instead of the url in the data grid If you
want to use a field for the hyperlinkaliastext then just specify the name of the field in curly braces (i.e.
{DESCRIPTION}). So if you have a long url or just don't want the url to show in the data grid then you specify
the alias that you do want to appear in the data grid using this attribute."

Here is my config file:
<field name="PLATIMAGE" alias="Plat" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext={PLAT_NAME} hyperlinkgridfieldonly="true"/>

I however get the following error when I try to launch the eSearch Widet:
"A problem occurred while parsing the configuration file widgets/eSearch/eSearchWidget_Layers.xml
Error #1090"

Is there something wrong with my xml file that I am missing?

Thanks!

Allison


Just a guess but did you try 
hyperlinkaliastext="{PLAT_NAME}"


with the double quotes around the field?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Allison,

     GIS Dev    is correct all xml attributes have to be enclosed in quotes.
0 Kudos
AllisonKampbell
Regular Contributor
Yes, I did.  Here is my config file now, just so that the widget will work:

<field name="PLATIMAGE" alias="Plat" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="{PLAT_NAME}" hyperlinkgridfieldonly="true"/>

However, in my grid, it shows up as a link with the text PLAT_NAME.  I have attached a photo, hopefully it is readable. 

Thanks!

[ATTACH=CONFIG]26015[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Allison,

   So can I see the rest of your eSearchWidget.xml for this layer and can you be sure that "PLAT_NAME" is the exact name of your field CaSe and all, as Flex is CaSe sensitive.
0 Kudos
AllisonKampbell
Regular Contributor
I did verify the field name and it is PLAT_NAME.  Here is some more of my config file:

<fields all="false">
                <field name="PID" gridfield="true" alias="PID"/>
    <field name="TAX_NAME" gridfield="true" alias="Taxpayer Name"/>
    <field name="TAX_ADD_L1" gridfield="true" alias="Taxpayer Address" gridfieldonly="true"/>
    <field name="TAX_ADD_L2" gridfield="true" alias="Taxpayer City-State-Zip" gridfieldonly="true"/>
                <field name="SITEADD" gridfield="true" alias="Property Address"/>
    <field name="CITY" gridfield="true" alias="Property City" gridfieldonly="true"/>
                <field name="ZONECLASS" gridfield="true" alias="Zoning Code" gridfieldonly="true"/>
    <field name="ACRES_POLY" gridfield="true" alias="GIS Acres" gridfieldonly="true"/>
    <field name="LargePhoto" alias="Property Photo" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="Get Property Photo" hyperlinkgridfieldonly="true"/>
    <field name="Property_ReportCard" alias="Property Report Card" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="Get Property Report Card" hyperlinkgridfieldonly="true"/>
    <field name="PLATIMAGE" alias="Plat" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="{PLAT_NAME}" hyperlinkgridfieldonly="true"/>
    <field name="BLOCK" gridfield="true" alias="Block" gridfieldonly="true"/>
    <field name="LOT" gridfield="true" alias="Lot" gridfieldonly="true"/>
    <field name="Sale_Date" gridfield="true" alias="Sale Date" dateformat="MM/DD/YYYY" gridfieldonly="true"/>
    <field name="Sale_Value" gridfield="true" alias="Sale Price" currencyformat="$|2|,|." gridfieldonly="true"/>
    <field name="EMV_LAND" gridfield="true" alias="2013 Est Land Value" currencyformat="$|2|,|." gridfieldonly="true"/>
    <field name="EMV_BLDG" gridfield="true" alias="2013 Est Building Value" currencyformat="$|2|,|." gridfieldonly="true"/>
    <field name="EMV_TOTAL" gridfield="true" alias="2013 Est Total Value" currencyformat="$|2|,|." gridfieldonly="true"/>
    <field name="SPEC_ASSES" gridfield="true" alias="2013 Special Assessment" currencyformat="$|2|,|." gridfieldonly="true"/>
    <field name="TOTAL_TAX" gridfield="true" alias="2013 Total Tax" currencyformat="$|2|,|." gridfieldonly="true"/>
    <field name="Homestead" gridfield="true" alias="Homestead Status" gridfieldonly="true"/>
    <field name="TAX_EXEMPT" gridfield="true" alias="Tax Exempt" gridfieldonly="true"/>
            </fields>


Do I need to include my PLAT_NAME field in the list of fields?  My goal would be to have the Plat Name, for example, BRAND LAKE VILLA 2ND ADDITION, show up as the hyperlink text, users click on text and the link opens up the Plat Image. 

Thanks for looking into this!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Allison,

  I guess I should have this explained in my documentation... If you are going to use a field for the hyperlinaliastext then it has to be a field that is already included in your fields list. I will look at changing this in the next version.
0 Kudos
MichaelVolz
Esteemed Contributor
Allison:

You are trying to open an image from the FlexViewer application?  If so, what program is used to open the image?  Where is the program to open the image defined?  Is it the default image viewer application that is installed on the client machine, something like Paint?
0 Kudos
AllisonKampbell
Regular Contributor
Robert, That did work.  I added PLAT_NAME to the field list, here is my updated config:

<field name="PLAT_NAME" visible="false" gridfield="true" gridfieldonly="true" hyperlinkgridfieldonly="true"/>
<field name="PLATIMAGE" alias="Plat Name" gridfieldonly="true" hyperlinkgridfield="true" hyperlinkaliastext="{PLAT_NAME}" hyperlinkgridfieldonly="true"/>

However, the field name runs into the other fields to the right in the data grid.  I have attached a photo.  It seems like the field width is formatting to the text "PLAT_NAME" and not the text of the actual Plat Name.  I may just need to separate out the two.  Have one field with Plat Name and the 2nd field with "Get Plat Image", which is fine. 

Thanks again,
Allison

[ATTACH=CONFIG]26018[/ATTACH]
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Allison,

  Hmm... I have never seen that issue before... I will look into it but it will likely require come code change to fix, so your alternate plan is what you should do in the meantime. I will attempt to address this in the 3.4 release.
0 Kudos