Gavin,

the content of the <value> tag is a bare CQL expression without any other XML expressions. Please try this:

<ClientProperty>
    <name>codeListValue</name>
    <value>country</value>
</ClientProperty>

If you need to manipulate the string, you can use CQL. Literal strings need to be in CQL form, that is, surrounded by single quotes (').

Kind regards,
Ben.

On 21/10/17 04:17, Gavin Medley wrote:
Hi all,

I’m sure this is possible but I can’t figure out the syntax to put in my
mapping file. I need to map a field in my database, country to be an
attribute value codeListValue I think my <ClientProperty> should be
something like the following but the attribute just doesn’t appear at all
in my WFS requests.

<ClientProperty>
     <name>codeListValue</name>
     <value>
         <sourceExpression><OCQL>country</OCQL></sourceExpression>
     </value>
</ClientProperty>

Thanks for the help!

-Gavin
​



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to