Sie sind auf Seite 1von 3

Siebel eScript

10 months ago

• Email
• Favorite
• Download
• Embed
• More…
×
Like this presentation?
0 comments
Top of Form

Embed Video Subscribe to comments


Post Comment
Bottom of Form

Speaker Notes on slide 14


no notes for slide #14
Siebel eScript - Presentation Transcript
1. Siebel eScript
2. Agenda
○ What’s Siebel E-Script
○ Why to use
○ Where to use
○ When to use
○ How to use
○ Tips and Tricks
3. What’s Siebel E-Script
○ A scripting language
○ The core language is javascript
○ Siebel eScript provides access to local system calls through two objects, Clib and
SElib,
4. Siebel Script --outlying
○ Types of Scripts: There are two types of scripting available:
 Server Scripts (eScript or SiebelVB)
 Execute on the server for web clients or on the client machine for
mobile or dedicated web clients
 Browser Scripts (JavaScript)
 Downloaded to the client and are executed within the browser
5.
6.
7. Where to Use
○ Siebel Tools
○ Web
8. When to use
 Data Validation: Complex and business object/component data
relationship rules can be written
 User Interaction: Specific messages to users based on specific inputs –
string concatenation is supported
 Integration: Transfer the data to and from the external system ,uses include
calling a business service, workflow, etc
9. When to use
10. How to Use
○ Siebel eScript Guidelines
○ Siebel eScript Commands
11. Siebel eScript Guidelines
○ Declare your variables
○ Consider case sensitivity
○ Use parentheses () with functions
○ Use four-digit years in dates
○ Use the this object reference
○ …
12. Siebel eScript Commands
○ Applet Object Methods
○ Application Object Methods
○ Business Component Objects
○ …
13. Tips and Tricks
○ Scripts are always interpreted (all text in the script is parsed), use compact
notation where possible (for example):
 if(foo == bar)
 doSomething();
 Instead of
 if(foo == bar)
 {
 doSomething();
 }
 Use “ elimination ” code to short circuit functions when not needed:
 if(isInDoItList(myval)) {
 longChunkOfCode();
 }
14. Tips and Tricks
 When querying for a business component, activate all fields via the
ActivateField() method prior to executing the query (this is well
documented in Siebel Bookshelf).
 When querying for BCs try to use a “ForwardOnly” flag in the
ExecuteQuery() method, this forces Siebel to create a forward only cursor
which is more efficient than a bi-directional cursor.
 Be very careful with using “SetFieldValue” within a “PreSetFieldValue”
event due to possible undesired recursion.
 You can’t throw an error message during the “OnLoad” logic of an applet,
(the error goes nowhere).

Das könnte Ihnen auch gefallen