wiki:MapGuideRfc50

Version 4 (modified by brucedechant, 16 years ago) ( diff )

--

MapGuide RFC 50 - Enhance expression engine concat function

This page contains a change request (RFC) for the MapGuide Open Source project. More MapGuide RFCs can be found on the RFCs page.

Status

RFC Template Version(1.0)
Submission Date June 25, 2008
Last Modified Bruce Dechant Timestamp
AuthorBruce Dechant
RFC Statusdraft
Implementation Statusdraft
Proposed Milestone2.1
Assigned PSC guide(s)Bruce Dechant
Voting History
+1
+0
-0
-1

Overview

Motivation

The existing concat text function is difficult to work with when multiple concatenations need to be done. Example:

concat('Parcel ID: ', concat( PID , concat('\nOwner Name: ', concat(NullValue ( OWNER_NAME , ) , concat('\nAddress: ', SITE_ADDR )))))

Proposed Solution

The proposed solution is to add support for an additional syntax to the concat operator.

Old syntax:

 concat('Parcel ID: ', concat( PID , concat('\nOwner Name: ', concat(NullValue (  OWNER_NAME , '' ) , concat('\nAddress: ',  SITE_ADDR )))))

New syntax:

 concat('Parcel ID: ', PID , '\nOwner Name: ', NullValue (  OWNER_NAME , '' ) , '\nAddress: ', SITE_ADDR )

Implications

Test Plan

Funding/Resources

Note: See TracWiki for help on using the wiki.