Transcript IScripts

IScript, Therefore I Am
Using IScripts in PeopleTools 8.4x
Agenda





Background.
What is an IScript?
How do you create one?
Why would I want to?
A real-world example.
PeopleSoft Internet Architecture
Windows/Web
Client
Web Tier
Application Tier
Integration
Gateway
Tuxedo/Jolt
Database
PeopleSoft
Services
Messaging
H
T
T
P
PIA
HTTP/Web
Server
Servlets
Report
Repository
Manage
Presentation
Users
Component Processor
Service
PeopleCode
Communications
Cobol
Batch Server
PeopleSoft
Services
AppEngine
SQR,
Crystal,
Etc.
Typical Web Conversation
Web
Client
Two Main Flavors
Post
Request
Response
HTTP/Web
Server
Get
Form data will appear within a
message body.
Form data is encoded by the
browser into a URL.
More functionality: retrieves, stores,
updates data, makes modifications
to databases, and so on.
Best used for retrieving data.
Not cacheable.
Cacheable
Can handle large number size of
data
Limited in length
Considered more secure
Considered Less Secure
What is an IScript?
…the Big Picture
Windows/Web
Client
Application Server
HTML
Definitions
Request Object
PIA
HTTP/Web
Server
Interal Servlet
PSP/PSC
Response Object
PeopleCode
Regular URL vs. IScript URL
Scheme
Servlet
Server(port)
SiteName
PortalName
NodeName
https://eiswbup.admin.unt.edu:7202/psc/lsdv89/EMPLOYEE/HRMS
Content Type (Component)
Content ID (Menu_Component_Market)
/c/GBUT_DEVELOPER.GBUT_ISCRIPT_DEMO.GBL
Content Type (Iscript)
Content ID (Record.Field.Event.Function)
/s/WEBLIB_IS_DEMO.FUNCLIB.FieldFormula.Iscript_ShowBrowser
How do I create one?




Create the PeopleCode in a Weblib
Add Security for your IScript
Create the link for your IScript
Test (oh yes, you heard me correctly!)
Create the PeoplCode in a Weblib



Weblib’s are like Funclibs. They should be
Derived Work Records. Usually a single field
(Funclib) is enough.
Place your code in the FieldFormula Event
Each Iscript Function must begin with the
string Iscript_ (i.e. Iscript_HellowWorld)
Add The Security



Access to Weblibs is granted via Permission
Lists
Special Weblib tab on the Permission List tab
Access is granular to the Iscript (Function)
level
Create the Link





Where am I accessing the weblib from?
If from PeopleCode/Page use Button
HyperLink type field of at least 254 length!
Set as External Link, Dynamic URL
Use deleivered functions to set field value.
(i.e. GenerateScriptContentURL)
Or you can use a Content Reference.
A Walk-through
Why would I want to use an IScript?




IScripts give the developer complete control over the HTML sent
to the browser
If the page being developed cannot be built using PeopleSoft
Application Designer. An example of this is a page that requires
more than one HTML form.
If the page being developed never accesses the database. Using a
page and Component Processor for this type of page incurs
unnecessary processing overhead.
Some examples
 Viewing Files
 Response to 3rd party
 When you are Will Senn…
Resources

Peoplebooks API reference


See Internet Classes (Iscript)
GBUT_ISCRIPT_DEMO (LSDV89)