[mapguide-trac] #3: MapTips fail when properties have null values

MapGuide Open Source trac_mapguide at osgeo.org
Tue Apr 10 21:09:59 EDT 2007


#3: MapTips fail when properties have null values
-------------------------+--------------------------------------------------
 Reporter:  pagameba     |         Owner:  anonymous
     Type:  defect       |        Status:  assigned 
 Priority:  medium       |     Milestone:  1.2      
Component:  AJAX Viewer  |       Version:  1.1.0    
 Severity:  major        |    Resolution:           
 Keywords:               |   External_id:  911516   
-------------------------+--------------------------------------------------
Comment (by pagameba):

 Hi Traian, unfortunately this won't work because the use case I was given
 includes several fields, some or all of which may have null values, across
 many layers.  There are just too many combinations to manage.

 I believe the issue is primarily for string fields, but you raise a good
 point.  Since the intention is to create an output string anyway, perhaps
 it is sufficient to put an empty string for all types?

 Another option would be to introduce an IFNULL conditional operator of
 some kind that would allow the user to provide the default value if the
 attribute is null?  But empty strings would at least prevent things from
 failing.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/3#comment:4>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list