Professional Documents
Culture Documents
17 BPA Scripts
17 BPA Scripts
17 BPA Scripts
User
Favorite
Scripts
Script
Favorite
Scripts
Script
• With the advent of version 2, the need to use the BPA menu to invoke
scripts is greatly reduced
• This is because version 2 allows designers to place HL's and icons
that execute BPA scripts in more easily accessible places on the UI:
• A menu item can invoke a BPA script (you just did this)
• A context menu item can invoke a BPA script
• An entry in the Favorite Links dashboard zone can invoke a BPA script
• A hyperlink in an explorer zone can invoke a BPA script
• A zone header can contain a hyperlink that invokes a BPA script
• Buttons on display-only UI maps can invoke BPA scripts
• Context sensitive zones can contains buttons and hyperlinks to invoke
BPA scripts
• Selecting a To Do entry can kick off a BPA script
• Etc.
The action bar contains buttons that allow you to update the
database and navigate to transactions
These 4 elements
The menu bar allows you to
appear onDisplay
Object
navigate to other pages
every Area
page
This area contains the portal /The maintenance objectzones
dashboard contains
(note, the Dashboard can be turned off
/ query that you’vethat allow you to perform common
requested
by setting up user preferences
tasks and navigate to other
accordingly (or by clicking its "bar"))
transactions
This area is rarely used in modern BPA scripts except for debugging and
displaying termination errors
Remember, UI
maps have
UI Map schemas just like
everything else that
appears below
Service
Script
Script
(BPA)
Data Area BO
<taxpayerId mapField="PER_ID"/>
<email mapField=“EMAILID"/>
BO
Data Area <socialSecurityNumber mapField="PER_ID_NBR">
<row mapChild=“CI_PER_ID">
<ID_TYPE_CD is="SSN"/>
</row>
• “Taxpayer” BO: Human <socialSecurityNumber/>
• “Spouse” BO: Human
• “Depend1” BO: Human <homePhone mapField="PHONE" >
<row mapChild="CI_PER_PHONE">
• “Depend2” BO: Human <PHONE_TYPE_CD is="HOME" />
</row>
</homePhone>
<Spouse type=“group”>
Service <includeBO name=“Human"/>
Data Area Script <Spouse/>
<Depend1 type=“group”>
<includeBO name=“Human"/>
<Depend1/>
• “Family” SS: Human <Depend2 type=“group”>
<includeBO name=“Human"/>
<Depend2/>
Valid Values:
• You'll recognize some step types • Move data
Script
from server scripts • Conditional branch
• Label
• These are shown in gray • Go to a step
• The remainder fit into 3 categories: • Edit data
Step • Invoke business object
• Still available, but rarely used • Invoke business service
– Scripts have undergone an evolution • Invoke service script
• Terminate
with the advent of V2 and some step
• Prompt user
types are rarely used Step Type • Input data
• Control the UI • Set focus to a field
• Mathematical operation
• Structured programming techniques • Invoke function
• In other words, you just have to learn • Invoke map
• Height
7 new step types to write BPA scripts • Navigate to a page
(the red and the green) • Press a button
• Display text
• Perform script
• Transfer control
Navigation
Option
HTML Schema
<includeBO name=“C1-ConsProg"/>
<tr>
<td oraLabel="conservationProgram/description"></td>
<td><input type="text"
oraField="conservationProgram/description" />
</td>
</tr>
<tr>
<td oraLabel="conservationProgram/generalInfo/startDate"></td> Notice in this example
<td><input type="text" that we’ve just “included”
oraField="conservationProgram/generalInfo/startDate" />
the schema of a BO (so if
</td>
</tr> you change this BO, you
don’t have to change the
map’s schema, but you’d
This HTML is more interesting than the HTML in the need to change the HTML
map zones as it can capture element values if the change is displayed)
Drop Downs
• The base-package UI
map functionality
supports several
different ways to
populate a drop down
without the need for
Java Script (this is
from the tips)
• Notice all the different
ways to easily populate
a drop down
User Navigation
Option
Navigation options that
appear on a user's favorite
links can reference a BPA
script
User /
Favorite
Script
Link Transaction Script
(BPA)
Menu
Navigation
Option
Menu Line Navigation options that
appear on menus can
reference a BPA script
Menu Item
Script
Transaction Script
(BPA)
You can put these navigation The script must be “user invokable”
options on the menu bars
and on context menus
Navigation
Option
Context
Menu Item
Script
Transaction Script
(BPA)
This is optional
BPA and
Plug-In
Service
Script