/**************************************************************************************************************************** Licensed Materials - Property of IBM BI and PM: QFW © Copyright IBM Corp. 2005, 2010 US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *****************************************************************************************************************************/ var G_QanQueryExecution = {}; G_QanQueryExecution.F_GetReportEngineForm = function( recieverDocument ) { var v_elForm = recieverDocument.getElementById( "CCHL_formReportEngine" ); if ( !v_elForm ) { var v_sHTML = '
'; var div = recieverDocument.body.appendChild( recieverDocument.createElement( 'DIV' ) ); div.innerHTML = v_sHTML; v_elForm = recieverDocument.getElementById( "CCHL_formReportEngine" ); v_elForm.action = G_CCHL.M_sGatewayURL; } return v_elForm; }; G_QanQueryExecution.F_submitReportViewRequest = function( target, recieverDocument, v_sReportSpec ) { var v_elForm = this.F_GetReportEngineForm( recieverDocument ); this.f_applyFormFieldValues( G_QanApp.M_oParameters , v_elForm, v_sReportSpec ); v_elForm.target = target; v_elForm.submit(); }; G_QanQueryExecution.f_applyFormFieldValues = function( o, v_elForm, v_sReportSpec ) { for ( var s in o ) { if( !v_elForm[s] ) continue; v_elForm[s].value = o[s]; } v_elForm["cv.header"].value = "false"; v_elForm["cv.toolbar"].value = "true"; v_elForm["cv.navlinks"].value = "true"; v_elForm["cv.selection"].value = "true"; v_elForm["cv.drill"].value = "true"; v_elForm["cv.contextInfo"].value = "true"; v_elForm["cv.contextmenu"].value = "true"; v_elForm["ui.object"].value = v_elForm["modelPath"].value; if( v_sReportSpec ) v_elForm["ui.spec"].value = v_sReportSpec; };