[mapguide-users] List Selected Features Problem
steve.golden at morganhill.ca.gov
Wed Apr 27 20:21:38 EDT 2011
This question may have been asked before but I searched through the forum and
couldn't find anything that specifically addressed this issue.
I am using the listselection.php file from the Developers Samples to create
a list of variables from selected features in a layer. I've manipulated it
a bit to display the variables in a table in a new window. I thought all
was well until I was showing it off and noticed that if I have any null
values in the features selected, it will cause the 'while' loop statement to
fail/end. Example, if I select 20 features, it seems to display the first 7
feature variables and then ends (doesn't display anyting past the 7th
selected feature). If the first feature selected has null values, it
doesn't display anything. In both cases it give me an error:
Value for 'variable' property is null
Is there something in the code that I can add to "skip" the features with
null variable and/or display a message saying "Incomplete Information" for
the variable in that feature?
I suppose I could add a "-" or similar character to all of the null entries
and perhaps that would take care of it (those with more database experience
can tell me if this is a proper thing to do or not). Any suggestions or
sample code would be appreciated.
View this message in context: http://osgeo-org.1803224.n2.nabble.com/List-Selected-Features-Problem-tp6311623p6311623.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users