How I can have the selection whith flexible layout?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How I can have the selection whith flexible layout?

alba
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