Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
On May 18th at 10AM EDT we will answer your QlikView questions live. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem regarding maps

Hi,
This is regarding map reports. We have used fusion maps for map reports. In that java script has been used.

The problem is that when I press resize button in the report, the frame of the report is being maximised, instead I want the map to be resized with out maximising the frame of it.
Pls Can any one help me regarding this.

The scirpt is like this.

function ResizeMap() {


//x = document.body.innerHTML;
//document.body.innerText = x;

var MC = document.getElementById('MainContainer');
var MD = document.getElementById('mapdiv');

while (MD.parentNode != MC)
{
MD = MD.parentNode;

}
//alert(MD);


    Qva.Resize.Frame = MD;
    var objectMgr = Qva.Resize.Frame.AvqMgr;

    if (objectMgr) {        objectMgr.Set(Qva.Resize.Frame.ObjectId, "resize", 'br:750:380', true);    }
    else {
          var binder = Qva.GetBinder(Qva.Resize.Frame.binderid);     binder.Set   (Qva.Resize.Frame.Name, "resize", 'br:750:380', true);   
  }   
    Qva.Resize.Frame = true;   
   Qva.Select.Active = true;


}


function MaximiseMap() {


//x = document.body.innerHTML;
//document.body.innerText = x;

var MC = document.getElementById('MainContainer');
var MD = document.getElementById('mapdiv');

while (MD.parentNode != MC)
{
MD = MD.parentNode;

}
//alert(MD);


    Qva.Resize.Frame = MD;
    var objectMgr = Qva.Resize.Frame.AvqMgr;

    if (objectMgr) {        objectMgr.Set(Qva.Resize.Frame.ObjectId, "resize", 'br:750:480', true);    }
    else {
          var binder = Qva.GetBinder(Qva.Resize.Frame.binderid);     binder.Set   (Qva.Resize.Frame.Name, "resize", 'br:750:480', true);   
  }   
    Qva.Resize.Frame = true;   
   Qva.Select.Active = true;
}

Many Thanks
Surendra

1 Reply
Not applicable
Author

Has any one encountered similar type of problem?

Please help me!!