[mapguide-users] Syntax of MgResourceIdentifier

Steve Dang steve.dang at autodesk.com
Wed Feb 17 15:58:06 EST 2010


Hi Gordon,

What is error/exception that you got?

Steve.

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of GordonL
Sent: Wednesday, February 17, 2010 1:50 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Syntax of MgResourceIdentifier


Hi, I have a new temporary layer I want to add, but I can't name it
dynamically.  For example:

$layerName = "DQN20042";
$tempID = "Session:" . $mgSessionId . '//' . $layerName .
".LayerDefinition";
$tempLayerResId = new MgResourceIdentifier($tempID);

does not work, but...

$tempID = "Session:" . $mgSessionId . "//test.LayerDefinition";
$tempLayerResId = new MgResourceIdentifier($tempID);

Does work.

Any ideas?  
gordon

-- 
View this message in context: http://n2.nabble.com/Syntax-of-MgResourceIdentifier-tp4588434p4588434.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list