SlideShare a Scribd company logo
Siebel eScript
Agenda What’s Siebel E-Script Why to use Where to use When to use How to use Tips and Tricks
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,
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
 
 
Where to Use Siebel Tools Web
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
When to use
How to Use Siebel eScript Guidelines Siebel eScript Commands
Siebel eScript Guidelines Declare your variables Consider case sensitivity Use parentheses () with functions Use four-digit years in dates Use the  this  object reference …
Siebel eScript Commands Applet Object Methods Application Object Methods Business Component Objects …
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(); }
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).

More Related Content

PPTX
Introduction to JSX
PDF
Willian Martins - Back to the future of JS: the next features and amazing pro...
PPTX
Asp.net c# mvc Training-Day-5 of Day-9
PPTX
Asp.net c# MVC-5 Training-Day-2 of Day-9
PDF
Lecture 3 - ES6 Script Advanced for React-Native
PPTX
Asp.net c# mvc Training: Day-3 of Day-9
PDF
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor
Introduction to JSX
Willian Martins - Back to the future of JS: the next features and amazing pro...
Asp.net c# mvc Training-Day-5 of Day-9
Asp.net c# MVC-5 Training-Day-2 of Day-9
Lecture 3 - ES6 Script Advanced for React-Native
Asp.net c# mvc Training: Day-3 of Day-9
Why UI Developers Love GraphQL - Sashko Stubailo, Apollo/Meteor

What's hot (11)

PPT
Ajax basic intro
PDF
Autospoting - an automated EC2 spot market bidder
PPT
08. session 08 intoduction to javascript
PPTX
Into to GraphQL
PPTX
Dynamic visualforce components in Salesforce
PPTX
iOS App Development with F# and Xamarin
PDF
EclipseCon 08 - Agile RCP
PDF
Modular GraphQL with Schema Stitching
PPTX
LINQ in C#
PDF
You Used To Inject Me In Your Constructor
PDF
C# 8 and .NET Core 3
Ajax basic intro
Autospoting - an automated EC2 spot market bidder
08. session 08 intoduction to javascript
Into to GraphQL
Dynamic visualforce components in Salesforce
iOS App Development with F# and Xamarin
EclipseCon 08 - Agile RCP
Modular GraphQL with Schema Stitching
LINQ in C#
You Used To Inject Me In Your Constructor
C# 8 and .NET Core 3
Ad

Similar to Siebel eScript (20)

PPT
Siebel best practices
PPTX
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
PPTX
Eclipse 40 and Eclipse e4
PDF
Lezione 03 Introduzione a react
PPTX
Abstract #236765 advanced essbase java api tips and tricks
PDF
Ruby On Rails
PDF
WebNet Conference 2012 - Designing complex applications using html5 and knock...
PPTX
Eclipse e4 on Java Forum Stuttgart 2010
PPT
Ruby On Rails Tutorial
PPTX
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra
PDF
The Evolution of Async-Programming on .NET Platform (.Net China, C#)
PPTX
Entity Framework v1 and v2
PPT
Entity Framework 4 In Microsoft Visual Studio 2010
PPTX
O365 Saturday - Deepdive SharePoint Client Side Rendering
PPTX
Siebel Open UI Presentation
PDF
Lecture17 ie321 dr_atifshahzad_js
PPTX
Customizing the Presentation Model and Physical Renderer in Siebel Open UI
PDF
Advanced Model Inferencing leveraging Kubeflow Serving, KNative and Istio
PDF
Eclipse 40 - Eclipse Summit Europe 2010
Siebel best practices
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
Eclipse 40 and Eclipse e4
Lezione 03 Introduzione a react
Abstract #236765 advanced essbase java api tips and tricks
Ruby On Rails
WebNet Conference 2012 - Designing complex applications using html5 and knock...
Eclipse e4 on Java Forum Stuttgart 2010
Ruby On Rails Tutorial
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra
The Evolution of Async-Programming on .NET Platform (.Net China, C#)
Entity Framework v1 and v2
Entity Framework 4 In Microsoft Visual Studio 2010
O365 Saturday - Deepdive SharePoint Client Side Rendering
Siebel Open UI Presentation
Lecture17 ie321 dr_atifshahzad_js
Customizing the Presentation Model and Physical Renderer in Siebel Open UI
Advanced Model Inferencing leveraging Kubeflow Serving, KNative and Istio
Eclipse 40 - Eclipse Summit Europe 2010
Ad

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
cuic standard and advanced reporting.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Big Data Technologies - Introduction.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Network Security Unit 5.pdf for BCA BBA.
Cloud computing and distributed systems.
NewMind AI Weekly Chronicles - August'25 Week I
cuic standard and advanced reporting.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Per capita expenditure prediction using model stacking based on satellite ima...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation_ Review paper, used for researhc scholars
The AUB Centre for AI in Media Proposal.docx
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

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
  • 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).

Editor's Notes

  • #2: Declarative alternative strong typing Support strong type and typeless variable Strong type –- compile time  performance Typeless -- runtime
  • #4: 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.