Ad Code

Siebel open UI - Physical Renderer sample code with functions

Siebel physical renderer file example

Please find a sample Physical Renderer/PR code for your reference

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

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

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

    SiebelJS.Extend(SamplePR, SiebelAppFacade.PhysicalRenderer);

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

    SamplePR.prototype.ShowUI = function () {
     // ShowUI is called when the object is initially laid out.
     // Add code here that should happen before default processing
     SiebelAppFacade.SamplePR.superclass.ShowUI.apply(this, arguments);
     // Add code here that should happen after default processing
    }

    SamplePR.prototype.BindData = function (bRefresh) {
     // BindData is called each time the data set changes.
     // This is where you'll bind that data to user interface elements you might have created in ShowUI
     // Add code here that should happen before default processing
     SiebelAppFacade.SamplePR.superclass.BindData.apply(this, arguments);
     // Add code here that should happen after default processing
    }

    SamplePR.prototype.BindEvents = function () {
     // BindEvents is where we add UI event processing.
     // Add code here that should happen before default processing
     SiebelAppFacade.SamplePR.superclass.BindEvents.apply(this, arguments);
     // Add code here that should happen after default processing
    }

    SamplePR.prototype.EndLife = function () {
     // EndLife is where we perform any required cleanup.
     // Add code here that should happen before default processing
     SiebelAppFacade.SamplePR.superclass.EndLife.apply(this, arguments);
     // Add code here that should happen after default processing
    }

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

Source


Post your comments/feedback/queries in the below comments section. Subscribe to my Youtube channel and get updated with salesforce tutorials - click here

Post a Comment

0 Comments