Hi Gordon,

What is error/exception that you got?

Steve.

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of GordonL
Sent: Wednesday, February 17, 2010 1:50 PM
To: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to