Text Copy of Code That Does a Partial Refresh for the Presentation

To get a copy of the partialrefreshpm.js file, see Article ID 1494998.1 on My Oracle Support. If you do not have access to this file on My Oracle Support, then you can open a JavaScript editor, create a new file named partialrefreshpm.js, copy the following code into this file, and then save your modifications:

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

  SiebelJS.Namespace("SiebelAppFacade.PartialRefreshPM");   
  define("siebel/custom/partialrefreshpm", [], function () {(   
  SiebelAppFacade.PartialRefreshPM = (function(){   
    function PartialRefreshPM(proxy){   
      SiebelAppFacade.PartialRefreshPM.superclass.constructor.call(this, proxy);   
    }   
    SiebelJS.Extend(PartialRefreshPM, SiebelAppFacade.PresentationModel);   
    PartialRefreshPM.prototype.Init = function(){   
      SiebelAppFacade.PartialRefreshPM.superclass.Init.call(this);   
      this.AddProperty("ShowJobTitleRelatedField", "");    
      this.AddMethod("ShowSelection", SelectionChange,{sequence : false, scope : 
this});   
      this.AddMethod("FieldChange", OnFieldChange,{sequence : false, scope: this});   
    };   
    function SelectionChange(){   
      var controls = this.Get("GetControls");   
      var control = controls[ "JobTitle" ];   
      var value = this.ExecuteMethod("GetFieldValue", control);   
      this.SetProperty("ShowJobTitleRelatedField", (value ? true: false));   
    }   
    function OnFieldChange(control, value){   
      if(control.GetName() === "JobTitle"){   
        this.SetProperty("ShowJobTitleRelatedField", (value ? true: false));   
      }   
    }   
    return PartialRefreshPM;   
  }());   
}