12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- /****************************************************************************************************************************
- 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.
- *****************************************************************************************************************************/
- function C_QanLogDoc( sLogText )
- {
- this.m_sLogText = sLogText;
- }
- C_QanLogDoc.prototype.F_SetId = function(iId)
- {
- this.m_iId = iId;
- }
- C_QanLogDoc.prototype.F_GetId = function()
- {
- return this.m_iId;
- }
- C_QanLogDoc.prototype.F_GetHtmlId = function()
- {
- return "log" + this.m_iId;
- }
- C_QanLogDoc.prototype.F_Init = function()
- {
- this.m_docXML = U_XML.F_LoadString( D_XmlError, this.m_sLogText );
- this.m_sLogText = ""; // release the string
- }
- C_QanLogDoc.prototype.F_GetAsXMLDoc = function()
- {
- return this.m_docXML;
- }
- C_QanLogDoc.prototype.F_GetAsString = function()
- {
- if( this.m_docXML )
- return this.m_docXML.xml;
-
- return this.m_sLogText;
- }
- C_QanLogDoc.prototype.F_GetRootQRDNames = function()
- {
- var v_nlQRDs = this.F_GetAsXMLDoc().selectNodes( "./QFSScript/QFSSession[@method='DoRequest' or @method='DoRequest1' or @method='DoRequest2']/parm[@type='input']/*/*[querySet]/retrieveDataset" );
- if( v_nlQRDs.length == 0 )
- return "";
-
- var v_sQRDNames = v_nlQRDs[0].getAttribute("value");
- for( var i = 1; i < v_nlQRDs.length; ++i )
- {
- v_sQRDNames += ", " + v_nlQRDs[0].getAttribute("value");
- }
-
- return v_sQRDNames;
- }
|