I have a problem with a customizied pop-up-widget in flex-viewer version 3.6.
If I use the "Key value"-interface for the pop-up, there is no problem to format a number field. The syntax in the pop-up-xml-file ends up like this:
| <field name="LokalitetID" alias="LokalitetID"/> |
| <format usethousandsseparator="false"/> |
But I want to use a customized pop-up, where I create i URL based on a fixed syntax combined with an attribute from the dataset. I have done this using the "customized" interface in the configure pop-up-dialog.
The syntax is like this:
<a href="http://www.kulturminnesok.no/content/search?search={LokalitetID}&searchtype=0&county=&municipality=&culture_environment=0&man_em_dating=0&category=&em_art1=&em_category=&em_date=&conservation=&em_old_function=&ext=1&submit=S%C3%B8k">Faktaark Kulturminnesøk</a>
The attribute is {LokalitetID}.
The syntax works, the only problem is that the link gets a thousand-separator that corrupts the URL.
Example of incorrect URL:
"http://www.kulturminnesok.no/content/search?search=134,686&searchtype=0&county=&municipality=&cultu...
I have have highlighted the problem, the "LokalitetID"-attribute is shown with a thousand separator, then the URL fails. If I remove the thousand separator, the URL works perfect!
I have tried to add some formatting in to the URL, but I cant get it to work.
Any suggestions?`Is this possible?
Regards
Sveinung Bertnes Råheim
GIS-consultant
County governor of Nordland
Norway