[Geoserver-users] app-schema - ClientProperty - would like to display attribute only if it has a value

Hi,

i’m using app-schema with WFS 2.0

the behavior i would like to have is (remolve nilReason attribute if null):

if toto (column in my table) is specified then i would get
au:technicalStatustoto</au:technicalStatus>

if toto is null or empty :
<au:technicalStatus nilReason=“unknown” />

I was just able to do this :

au:technicalStatus technicalstatus nilReason if_then_else(isNull(technicalstatus), 'unknown', '')

thats gives me :
<au:technicalStatus nilReason=“”>toto</au:technicalStatus>
or <au:technicalStatus nilReason=“”/>

do you know a way to do it ?

thks


Florent Gravin
CampToCamp - Chambéry
0479444492