Re: [mapguide-users] Python user scripts for MapGuide Maestro 5.0

2014-06-06 Thread Jackie Ng
Try something like this:

def UpdateLayerTooltips(conn, folder, tooltip):

Updates the tooltip of all Layer Definitions under the specified folder

resList = conn.ResourceService.GetRepositoryResources(folder,
LayerDefinition)
for child in resList.Children:
ldf = conn.ResourceService.GetResource(child.ResourceId)
print Updating: %s % (child.ResourceId)
ldf.SubLayer.ToolTip = tooltip
# Save the changes back
conn.ResourceService.SaveResource(ldf)
print Updated tooltip in: %s % (child.ResourceId)

Usage:

conn = app.GetConnection(app.GetConnectionNames()[0])
UpdateLayerTooltips(conn, Library://Path/To/My/Layers/,
MyNewTooltipExpression)



- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Python-user-scripts-for-MapGuide-Maestro-5-0-tp5067941p5144349.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Force TaskPane to open when starting QuickPlot

2014-06-06 Thread torrini
Hi list,

I got a simple fusion weblayout with the taskpane opened by default. When
the taskpane is closed, it should open again when starting the widget
QuickPlot (because there are the information about the PDF-layout).
Can I control this?

MapGuide 2.5 (ready for 2.6)


Thanks in advance,
-torrini



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Force-TaskPane-to-open-when-starting-QuickPlot-tp5144386.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users