I am attempting to activate a URL with a mouse over feature control click for a layer. I have done this with simple URL constructs but I would like to be able to activate a choice of URLs based on a text field value.
In MG Studio I have used the Create/Modify Expressions editor on a layer with: If ( TextField = 'U1', http://URL1, http://URL2 ) When validated, I get an error 'Argument types for function 'If' are mismatched....Result types are mismatched: the validation operation expected 'Text' but expression returned 'Unknown' If I use the expression: If ( 'TextField = U1', http://URL1, http://URL2 ) it is valid but always returns the second URL. Can this be done using If or do I need to prepare a separate URL with logic to sort out the selection? Thanks for any advice. -- View this message in context: http://n2.nabble.com/Use-of-URL-on-layer-tp3835961p3835961.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
