Commit 22a9d439 authored by dkasliwal's avatar dkasliwal

add parent id parameter in outerdiv function


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103935 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4b2b45bc
...@@ -60,7 +60,7 @@ function createFusionChart(jsonObj, containerId, chartContainer,width,height,ima ...@@ -60,7 +60,7 @@ function createFusionChart(jsonObj, containerId, chartContainer,width,height,ima
//var userID ="E31810"; //var userID ="E31810";
/* Add 3 function for create dyanamic div for compliance Dashboard By Dhanendra On 28MAy2015 */ /* Add 3 function for create dyanamic div for compliance Dashboard By Dhanendra On 28MAy2015 */
function outerDiv(outerDivId,type, cssName) function outerDiv(outerDivId,type, cssName,parentId)
{ {
/*added code to remove frame container if exists on change of view by SWATI on 09 May 2016*/ /*added code to remove frame container if exists on change of view by SWATI on 09 May 2016*/
var elem = document.getElementById("frameContainerDiv"); var elem = document.getElementById("frameContainerDiv");
...@@ -94,7 +94,8 @@ function outerDiv(outerDivId,type, cssName) ...@@ -94,7 +94,8 @@ function outerDiv(outerDivId,type, cssName)
iDiv.appendChild(headDiv); iDiv.appendChild(headDiv);
outerDiv.appendChild(iDiv); outerDiv.appendChild(iDiv);
document.getElementById('chartContainer').appendChild(outerDiv); //document.getElementById('chartContainer').appendChild(outerDiv);
document.getElementById(parentId).appendChild(outerDiv);
} }
function innerDiv(innerDivId,groupName) function innerDiv(innerDivId,groupName)
{ {
...@@ -221,3 +222,22 @@ function createGridFrameContainer() ...@@ -221,3 +222,22 @@ function createGridFrameContainer()
document.getElementById('chartContainer').appendChild(outerDiv); document.getElementById('chartContainer').appendChild(outerDiv);
} }
/*Ended code to remove frame container if exists on click of card view by Chetan on 17 June 2016*/ /*Ended code to remove frame container if exists on click of card view by Chetan on 17 June 2016*/
/*Add function for remove drill-down container by Dhanendra on date 19-08-2016*/
function clearDivOnCloseButton(containerId)
{
document.getElementById(containerId).remove();
}
function focusOnDivJSNI(focusDivID)
{
document.getElementById(focusDivID).scrollIntoView(); //Added by Chetan Mahajan [For show currently draw report on click of parent report] req id:S16EBAS003 on 13-SEP-2016
}
/*End function for remove drill-down container by Dhanendra on date 19-08-2016*/
function linkFunction(metadataName, cellValue, propertyStr, urlStr, parameterListString, xPlotVal,status,iFrameHeight)
{
//alert("iFrameHeight :"+iFrameHeight);
createFrameContainer();
document.getElementById('frameContainer').innerHTML = "<iframe scrolling='no' id='frame1' width='99%' height="+iFrameHeight+" frameborder='0' src='/ibase/dwh/GwtDashboardPage.html?metadataname="+metadataName+propertyStr+"&"+parameterListString+"&CELL_VAL="+cellValue.trim()+"&FLAG=N'></iframe>";
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment