[mapguide-users] How I can have the selection whith flexible layout?

alba a.penitente at gepaspa.com
Wed Jun 10 12:15:12 EDT 2009


hi all,
I use mapguide 2.1, win 2003, IIS, fusion
I must extract the data  the object selected
How I can have the selection?

function submitRequest(pageUrl){
         var mapWidgetId = 'Map';
         var Fusion = window.top.Fusion;
         var mapWidget = Fusion.getWidgetById(mapWidgetId);


         Sel = mapWidget.getSelection();???????????????

         if(Sel=='') alert("Selezionare oggetto");
	 else{
         mapScale = mapWidget.getScale();
         mapHeight = 600;
         mapWidth = 600;
         mapCenter = mapWidget.getCurrentCenter();
         sessione=mapWidget.getSessionID();
         mappa=mapWidget.getMapName();

        var params = [];
        params.push('SESSION='+sessione);
        params.push('MAPNAME='+mappa);
        params.push('SCALE='+mapScale);
        params.push('HEIGHT='+mapHeight);
        params.push('WIDTH='+mapWidth);
        params.push('CENTERX='+mapCenter.x);
        params.push('CENTERY='+mapCenter.y);
        params.push('SELECTION='+Sel);
        params = params.concat(this.additionalParameters);

        if (pageUrl.indexOf('?') < 0) {
            pageUrl += '?';
        } else if (pageUrl.slice(-1) != '&') {
            pageUrl += '&';
        }
        pageUrl += params.join('&');
        window.open(pageUrl, "_blank",
"toolbar=no,status=no,width=500,height=500,resizable,scrollbars");
      }// fine else

}
thank for help
Alba
-- 
View this message in context: http://n2.nabble.com/How-I-can-have-the-selection-whith-flexible-layout--tp3056763p3056763.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list