Wednesday, December 4, 2013

Custom Component Interface Methods

Component Interfaces have four standard methods, Cancel, Find, Get and Save.  But PeopleSoft also gives you the ability to create custom methods to handle a scenarios where you might want to do more than just Save the component.  For Instance, we have a Custom Component Interface that we use to process inbound job transfers and rehires from our third party recruiting system BrassRing.  In the case of rehires we need to purge our bolt-on UMB Data that we store on a custom page that we added to the Job Data Component.  This is a perfect use for a Component Interface Method.


First Open up your Component Interface in PeopleTools and double click on the METHODS in the Component Interface Properties pane.


This will open a window where you can define your Custom Method.


Now you will need to add Security to you Custom Method.






Now you can access your Method in your CI Code

&JobDataCI.RESET_UMB_DATA();

Or if you are using my Excel to CI, you can use the Method Option.




Other Uses.

  1. Updating Sequence number like the Effective Date Sequence on Job or the Sequence number for the Paysheet upload.
  2. Creating a Custom Get Method for Components that like Job Code Table or Department Table that use description as a list item, to select one item from the collection.   (Since they all take you to the same place.)
  3.  Conditionally updating data based in the component buffer based.  This last one might seem curious, but if you utilize a utility like my Excel to CI tool, then it makes perfect sense.


1 comment:

  1. We used these CI Methods in automation processes to press buttons using a CI. The key is that the functionality of a FieldChange button event must be wrapped in a function or method call to work.

    ReplyDelete