Hello everybody,
In xCP 2.1 P05, we have created an application page which has iFrames [Using a value display, HTML type]. We need to provide an option to the user to print the contents of the iFrame only. For this we can use below core statement:
document.getElementById(frameID).contentWindow.print();
We have tried to create a custom javascript function, through a library, but this function is not getting listed in the widget's functions.
.js contents:
----------------------------------
Ext.namespace ('ntt.functions');
ntt.functions.mgcPrintIFrame = function (iFrameID) {
document.getElementById(frameID).contentWindow.print()
};
---------------------------------
Attached is the custom library created for this.
Appreciate feedback/findings.
Thank you.
Raghu.