Delivered JavaScript
PeopleTools includes an HTML definition, PT_PAGESCRIPT_FMODE, which serves as the master list referencing other definitions containing the actual JavaScript function definitions. These JavaScript functions control a wide range of page behavior, including (but not limited to):
-
Scrolling for group boxes.
-
Accordion widget.
-
Toggle widget.
-
Grouplet.
-
Drag and drop group boxes.
-
Grid lazy scroll.
-
Carousel – (used only for scroll areas).
-
Transfer animations.
-
File attachments.
-
Search page and NavBar.
-
Related action menu.
-
Side page tabs.
-
New action buttons – Back, Home, Logout
-
Search side page.
Use the AddOnLoadScript PeopleCode built-in function to invoke delivered JavaScript functions. The following example illustrates two invocations of AddOnLoadScript:
If (IsGroupletRequest()) Then;
AddOnLoadScript("DoRowAction(" | &nRow | ");");
End-If;
AddOnLoadScript("SetSideTopTitle('" | EscapeHTML("My M/D Component's Title") | "');");Related Topics