In order to initialize a new object from sapbi_PageClass class that refers to the iFrame, I use the following constructor function which i found in the sapbi_070_pageclass.js. The constructor accept a window object as parameter.
var zsapbi_cmtpage = new sapbi_PageClass( window.frames["commentFrame"].window );
I use the following command to add a new command sequence. The example below is to hide document item. Note that the function zbicmd_changeVisible() is a customized function. This is already proven to work elsewhere.
var zcmdSeq = new sapbi_CommandSequence(); zcmdSeq.addCommand(zbicmd_changeVisible("SINGLE_DOCUMENT_ITEM","SINGLE_DOCUMENT_ITEM_1",0));
I found this method in sapbi_070_pageclass.js to send command over to other frames.
The above script doesnt work as the method formSendParameterList2TargetFrame() failed on line 85 of sapbi_050_commandform.js - this.m_pFormElement.appendChild( paramField );
Thanks & Regards,