I have a requirement to show a confirmation with ok and cancel button when user clicks a check box o
I have this code on the PM : -
//run the code only if class does not exist
if(typeof(SiebelAppFacade.QuoteFormAppletPM) === "undefined")
{
SiebelJS.Namespace("SiebelAppFacade.QuoteFormAppletPM"); // Add class to the name space
define("siebel/custom/QuoteFormAppletPM", ["siebel/pmodel"], function(){
//Class Constructor function
SiebelAppFacade.QuoteFormAppletPM = ( function()
{
function QuoteFormAppletPM(p) //call super class constructor
{
SiebelAppFacade.QuoteFormAppletPM.superclass.constructor.call(this,p);
}
//extend the standerd framework (Usually Presentation Model or Physical Renderer)
SiebelJS.Extend(QuoteFormAppletPM,SiebelAppFacade.PresentationModel);
//init function for Presentation Model
QuoteFormAppletPM.prototype.Init = function()
{
SiebelAppFacade.QuoteFormAppletPM.superclass.Init.call(this); //Call super class Init function first
this.AddMethod("InvokeMethod",MarkedForDelete,{sequence:true, scope:this});