An Internet
Script, also called an iScript, is a specialized PeopleCode function that
generates dynamic web content. iScripts interact with web clients (browsers)
using a request-response paradigm based on the behavior of the Hypertext
Transfer Protocol.
iScripts
work with PeopleSoft Pure Internet Architecture. You must have PeopleSoft Pure
Internet Architecture set up correctly before you can run an iScript. iScripts
allow the developer to intercept the HTML Request and do the processing
on their own, without having to worry about (or receiving any of the benefits
of) the PeopleTools page processor.
·
This
allows the programmer much more control over creating the Response HTML.
·
The
rule is “If you can create it in App Designer as a normal page, then do it”.
Creating IScript
·
iScripts
must be placed on a record that begins with WEBLIB….
(This is usually a Derived/Work record)
·
While
they may be placed on any field, using ISCRIPT1
and ISCRIPT2 is the standard.
·
iScripts
are placed in the FieldFormula code on the record/field.
·
iScript
functions MUST begin with iScript_
·
iScript
functions cannot take or return any parameters (but can pass/receive header
variables)
·
iScripts
can be called from PeopleCode
GenerateScriptContentURL
peoplecode (and related)
·
iScripts
can be referred to in HTML Scripts
<IClientComponent
Name="UniversalNavigation">
<Source Node="LOCAL_NODE" href="s/WEBLIB_PORTAL.PORTAL_HEADER.FieldFormula.
IScript_<name>" />
</IClientComponent>
·
iScripts
can be accessed directly (HTML)
http://<webserver>/psp/<sitename>/EMPLOYEE/HRMS/s/WEBLIB_<name>.ISCRIPT1.FieldFormula.IScript_<name>
·
iScripts
can be used for Pages and Pagelets
·
Add
new WebLibrary for Permission List
iScript Development
·
Developer
need to have a CREF that gathers some information and directs the user to an
outside source
·
Developer
need to include an html Form or several Forms
·
The
normal PS page look and feel just isn’t what is needed for the particular
project
iScript Usage
iScripts
can be called from PeopleCode
iScripts
have full access to all PeopleSoft technology (PeopleCode, App Engines, etc)
iScripts
can be used as destinations for Content References (ie links)
iScripts
can be used for Pagelet Content
iScripts
can be used for Related Content
PeopleSoft uses iScripts to create
the HTML for
·
Navigation
Panes
·
Page
Headers
·
Pop-ups
·
Timeout
Warning Page
·
Pagelet
Content
·
Interfacing
with External Entities
·
Producing
XML output for Queries, etc.
Several
PeopleSoft iScripts are critical to the functionality of the project. For instance:
WEBLIB_TIMEOUT -
·
PT_TIMEOUTWARNING.FieldFormula
·
IScript_TIMEOUTWARNING
This
iScript generates the “You are about to be timed out” Warning page. If a user does not have access to this the
timeout warning page will not appear properly.
Where you can use IScript
·
Single-Signon
to External Applications
·
Integration
with External Applications
·
Related
Content