Opened 15 years ago

Closed 14 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:

Description

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 by mgluobin, 15 years ago

Component: Feature ServiceGeneral

comment:2 by zspitzer, 15 years ago

Does range need to be in single quotes?

Please always post to the mailing list before filing bugs

comment:3 by mgluobin, 15 years ago

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 by waltweltonlair, 15 years ago

Syntax for these functions and examples can be found at https://trac.osgeo.org/mapguide/wiki/MapGuideRfc32

comment:5 by jbirch, 14 years ago

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.