Opened 10 years ago

Closed 8 years ago

#796 closed defect (invalid)

Expression Functions(If,Lookup,Range) are not working

Reported by: mgluobin Owned by:
Priority: high Milestone:
Component: General Version: 2.0.1
Severity: blocker Keywords:
Cc: External ID:


When i execute the code in PHP with the sample data,such as : $resourceName = "Library://Samples/Sheboygan/Data/RoadCenterLines.FeatureSource"; $resId = new MgResourceIdentifier?($resourceName); $aggregateOptions = new MgFeatureAggregateOptions?(); $aggregateOptions->AddComputedProperty?("rangeTest", "Range(Autogenerated_SDF_ID, 4.0, 1, 100, 6.0, 100, 200, 8.0)"); $dataReader = $featureService->SelectAggregate?($resId, 'SHP_Schema:RoadCenterLines', $aggregateOptions);

There are such errors:An exception occurred in FDO component. Item 'RANGE' not found in collection An exception occurred in FDO component. Item 'RANGE' not found in collection Exception occurred in method MgServerSelectFeatures?.SelectFeatures? at line 249 in file f:\mapguide\2.3.1\mgdev\server\src\services\feature\ServerSelectFeatures?.cpp

Change History (5)

comment:1 Changed 10 years ago by mgluobin

Component: Feature ServiceGeneral

comment:2 Changed 10 years ago by zspitzer

Does range need to be in single quotes?

Please always post to the mailing list before filing bugs

comment:3 Changed 10 years ago by mgluobin

when i add the quotes,there is the same erros. Can anyone give me the directions of Expression Functions(If,Lookup,Range).thanks.

comment:4 Changed 9 years ago by waltweltonlair

Syntax for these functions and examples can be found at

comment:5 Changed 8 years ago by jbirch

Resolution: invalid
Status: newclosed

Sounds like syntax was incorrect, rather than a bug? Closing as invalid.

Note: See TracTickets for help on using tickets.