screipt

Upload: ismail-shaik

Post on 09-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 screipt

    1/3

    Siebel eScript10 months ago

    Email Favorite

    Download

    Embed

    More

    Like this presentation?

    0 comments

    Top of Form

    EmbedVideo Subscribe to commentsPost Comment

    Bottom of Form

    SpeakerNotes on slide 14no notes for slide #14

    Siebel eScript - Presentation Transcript1. Siebel eScript

    2. Agenda

    Whats Siebel E-Script

    Why to use

    Where to use

    When to use

    How to use

    Tips and Tricks

    3. Whats Siebel E-Script

    A scripting language

    The core language is javascript

    http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/signup?from=favorite&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/signup?from=favorite&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/signup?from=favorite&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/signup?from=download&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200/download&download_id=2687200-1dffcd51cb76e01852e43b8d041330bd5473e0c1-slideshowhttp://www.slideshare.net/signup?from=download&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200/download&download_id=2687200-1dffcd51cb76e01852e43b8d041330bd5473e0c1-slideshowhttp://www.slideshare.net/signup?from=download&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200/download&download_id=2687200-1dffcd51cb76e01852e43b8d041330bd5473e0c1-slideshowhttp://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/signup?from=AddToCommunity&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/signup?from=AddToCommunity&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/signup?from=comments&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/signup?from=favorite&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/signup?from=download&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200/download&download_id=2687200-1dffcd51cb76e01852e43b8d041330bd5473e0c1-slideshowhttp://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/signup?from=AddToCommunity&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/signup?from=comments&from_source=http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&subtype=1&type=suggest_downloadhttp://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1http://www.slideshare.net/janslee/siebel-escript-2687200?from=email&type=suggest_download&subtype=1
  • 8/8/2019 screipt

    2/3

    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 datarelationship 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 includecalling 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

  • 8/8/2019 screipt

    3/3

    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 theActivateField() method prior to executing the query (this is welldocumented in Siebel Bookshelf).

    When querying for BCs try to use a ForwardOnly flag in theExecuteQuery() method, this forces Siebel to create a forward only cursorwhich is more efficient than a bi-directional cursor.

    Be very careful with using SetFieldValue within a PreSetFieldValueevent due to possible undesired recursion.

    You cant throw an error message during the OnLoad logic of an applet, (the error goes nowhere).