Ad Code

Siebel open UI - Presentation Model sample code with functions

Please find the sample Presentation Model/PM code for your reference

if (typeof(SiebelAppFacade.SamplePM) === "undefined") {

 SiebelJS.Namespace("SiebelAppFacade.SamplePM");
 define("siebel/custom/SamplePM", ["siebel/pmodel"],
  function () {
   SiebelAppFacade.SamplePM = (function () {

    function SamplePM(pm) {
     SiebelAppFacade.SamplePM.superclass.constructor.apply(this, arguments);
    }

    SiebelJS.Extend(SamplePM, SiebelAppFacade.PresentationModel);

    SamplePM.prototype.Init = function () {
     // Init is called each time the object is initialised.
     // Add code here that should happen before default processing
     SiebelAppFacade.SamplePM.superclass.Init.apply(this, arguments);
     // Add code here that should happen after default processing
    }

    SamplePM.prototype.Setup = function (propSet) {
     // Setup is called each time the object is initialised.
     // Add code here that should happen before default processing
     SiebelAppFacade.SamplePM.superclass.Setup.apply(this, arguments);
     // Add code here that should happen after default processing
    }

    return SamplePM;
   }()
  );
  return "SiebelAppFacade.SamplePM";
 })
}

Source

Post your comments/feedback/queries in the comments section below. 


Post a Comment

0 Comments