i think it miss a right parenthesis in your expression and I think you must 
quote your expression like this,

I validate this with MapGuide 2.5.2

IF('NOT LIBELLE2 NULL',CONCAT (LIBELLE1, LIBELLE2),'Nothing') )

Rémy

De : lucvanlinden [via OSGeo.org] 
[mailto:ml-node+s1560n5180026...@n6.nabble.com]
Envoyé : lundi 5 janvier 2015 15:08
À : Rémy GOURRAT
Objet : MapGuide/Maestro IF function not recognised in Tooltip or Hyperlink 
expression editor

Hi

I wanted to evaluate a property for its null value. If not NULL then set a 
hyperlink using that value.

In the Maestro expression editor, the IF function can be used. However this is 
not recognized by mapguide and read literally.

for example

IF (myproperty NULL, 'Nothing', Concat('mylink', myproperty)

is not evaluated but used as

"IF (myproperty NULL, 'Nothing', Concat('mylink', myproperty)" .

Is there a way to conditionally set these properties?
Maybe in the resource XML itself?

tx

Luc

________________________________
If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/MapGuide-Maestro-IF-function-not-recognised-in-Tooltip-or-Hyperlink-expression-editor-tp5180026.html
To start a new topic under MapGuide Users, email 
ml-node+s1560n4182607...@n6.nabble.com<mailto:ml-node+s1560n4182607...@n6.nabble.com>
To unsubscribe from MapGuide Users, click 
here<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4182607&code=cmdvdXJyYXRAYWctY2FydG8uZnJ8NDE4MjYwN3w1MzYwNTE3NDA=>.
NAML<http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>

--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.




-----
AG-Carto - Bayonne
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Maestro-IF-function-not-recognised-in-Tooltip-or-Hyperlink-expression-editor-tp5180026p5180045.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to