Applet Custom Method on button click is not invoking PM function
Hi All,
I have an issue is calling a custom method define in Applet button click from code in PM file.
I could see the pm is getting loaded in browser console but cod eis not getting executed on button click.
Below is the sample code, Pls review and let me know if anything wrong in the code causing issue.
if (typeof(SiebelAppFacade.TestAppletPM) === "undefined")
{
SiebelJS.Namespce("SiebelAppFacade.TestAppletPM");
define("siebel/custom/TestAppletPM",["siebel/pmodel"], function (){
SiebelAppFacade.TestAppletPM= (function ()
{
function TestAppletPM(pm)
{
SiebelAppFacade.TestAppletPM.superclass.constructor.apply(this, arguments);
}
SiebelJS.Extend(TestAppletPM, SiebelAppFacade.PresentationModel);
TestAppletPM.prototype.Init = function ()
{
SiebelAppFacade.TestAppletPM.superclass.Init.call(this);