Your SlideShare is downloading. ×
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Siebel eScript
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Siebel eScript

1,901

Published on

The slides is intented to introduce how to use siebel eScript

The slides is intented to introduce how to use siebel eScript

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,901
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
91
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Declarative alternative strong typing Support strong type and typeless variable Strong type –- compile time  performance Typeless -- runtime
  • ECMA-262 Edition 4 You should regard coding as a last resort. Siebel Tools provides many ways to configure your Siebel application without coding, and these methods should be exhausted before you attempt to write your own code, for the following reasons: ■ Using Siebel Tools is easier than writing code. ■ More important, your code may not survive an upgrade. Customizations created directly in Siebel Tools are upgraded automatically when you upgrade your Siebel application, but code is not touched, and it may need to be reviewed following an upgrade. ■ Finally, declarative configuration through Siebel Tools results in better performance than implementing the same functionality through code.
  • 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).

    ×