Programming Component Interfaces in PeopleCode

Programming Component Interfaces in PeopleCode

• Understand PeopleCode behavior and limitations.
• Generate a PeopleCode runtime code template.
• Use and understand the PeopeSoft runtime code template.

Understanding PeopleCode Behavior and Limitations
This section discusses some behavior and limitations of PeopleCode for component interfaces.
Be aware of this when you write PeopleCode for a component interface.
PeopleCode Event and Function Behavior
PeopleCode events and functions that relate exclusively to GUI and online processing cannot
be used by component interfaces. These include:

• Search dialog processing.
When you run a component interface, the SearchInit, SearchSave, and RowSelect events
don’t fire. This means that any PeopleCode associated with these events will not run. The
first event to run is RowInit.

• Menu PeopleCode and pop-up menus.
The ItemSelected and PrePopup PeopleCode events are not supported. In addition, the
CheckMenuItem, DisableMenuItem, EnableMenuItem, HideMenuItem, and
UncheckMenuItem functions aren’t available.

• Transfers between components, including modal transfers.
The TransferPage, DoModalPageGroup, and IsModalPageGroup functions cannot be
used.

• Dynamic tree controls.


Functions related to this control, such as GetSelectedTreeNode, GetTreeNodeParent,
GetTreeRecordName, RefreshTree and TreeDetailInNode cannot be used.
• ActiveX controls.
The PSControlInit and PSLostFocus events are not supported, and the GetControl
function cannot be used.
• DoSave() and DoSaveNow().
The DoSave() and DoSaveNow() pcode functions are not supported. You should use the
component interface Save() method and wrap the DoSave() and DoSaveNow() functions
so they don’t execute when called from a component interface.
• Functions that are ignored in a component interface call.
Some PeopleCode functions are ignored if they are called through a component interface.
These functions are:
􀀃 WinMessage
􀀃 CheckMenuItem
􀀃DisableMenuItem
􀀃 EnableMenuItem
􀀃 HideMenuItem
􀀃UncheckMenuItem
􀀃 SetCursorPos
􀀃 TransferPanel
􀀃 TransferPage
􀀃 DoModalComponent
􀀃 IsModalComponent
􀀃DoModalPanelGroup
􀀃 IsModalPanelGroup
􀀃GetSelectedTreeNode
􀀃 GetTreeNodeParent
􀀃 RefreshTree
􀀃 TreeDetailInNode
􀀃 GetControl
􀀃 DoSave
􀂃 DoSaveNow