Thanks Jackie. It worked. For some reason, the function is accepting both with and without parameter. As soon as i remove the paramter everything worked. -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html