Ticket #796 (closed defect: invalid)

Opened 4 years ago

Last modified 3 years ago

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

Changed 4 years ago by mgluobin

  • component changed from Feature Service to General

Changed 4 years ago by zspitzer

Does range need to be in single quotes?

Please always post to the mailing list before filing bugs

Changed 4 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.

Changed 4 years ago by waltweltonlair

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

Changed 3 years ago by jbirch

  • status changed from new to closed
  • resolution set to invalid

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

Note: See TracTickets for help on using tickets.