SlideShare a Scribd company logo
Siebel Open UI Debugging 
Presented by TechOneStop 
Techonestop.com 
In a vision to make TECHNOLOGY simple for u 
1 Techonestop.com
Objectives 
1) How to debug Siebel Open UI JavaScript using 
- SiebelJS.log () 
- Debugger 
2) Recommendations before JavaScript file deployment 
2 techonestop.com
Suggestions for debugging JavaScript 
If JavaScript is not running properly in Siebel Open UI 
1. Use browser’s developer tools (Inspect Element) to verify 
that the respective JavaScript file is downloaded properly 
on runtime 
2. Use browser’s developer tools to verify that the JavaScript is 
running correctly 
3. Use SiebelJS.Log() function to log messages 
4. Use debugger statement to add breakpoint inside script 
3 techonestop.com
Browser Developer Tools 
Almost all modern browsers like Google Chrome, Mozilla Firefox, 
Internet Explorer 8 or higher version have built-in developer 
tools that 
- Provide an inspector to verify JavaScript and CSS files have 
been downloaded properly or not 
- Allow inline modification of HTML and CSS rules to see how 
changes affect look and feel of webpage elements 
- Debugger to set breakpoints in JavaScript code 
- Verify variables values 
4 techonestop.com
Invoke Browser Developer Tools 
To open developer tools, right click on any browser and click on ‘Inspect 
Element’. Except right click, each browser has different set of shortcut 
keys also to open Inspect Element window like for Google Chrome: F12 , 
Mozilla Firefox : Shift+Ctrl+Q 
5 techonestop.com
Verify JavaScript file was downloaded properly 
If your code does not appear to be working, very first step is to 
verify JS files have been downloaded to the client properly. To check 
it , go to ‘Source’ tab under Inspect Element and search for files. You 
may use error icon to check JavaScript errors. 
6 techonestop.com
Reasons behind failure to download 
There may be several reasons behind such failure 
- JS file is not properly defined in Manifest Administration 
- Errors in JS file itself 
> Inspector will show you all JavaScript errors and warnings 
7 techonestop.com
Verify Class is properly loaded 
To verify JavaScript Class is properly downloaded to client, go to 
Inspector Console and type SiebelAppFacede.<First few letters of 
class name> 
- If class is properly loaded, auto complete feature of the console will 
recognize the class 
- If not, then verify Class is properly registered in the namespace of 
your JavaScript file or not 
8 techonestop.com
Use SiebelJS.Log() 
Use SiebelJS.Log() to print variable values or any log message on 
inspector console 
- Use val() to get values of elements in Physical Renderer JS file 
- Use GetFieldValue() to get values of controls in Presentation 
Model JS file 
9 techonestop.com
Output of SiebelJS.Log() 
Go to Inspector Console to see the output of the log message 
- Output from all log statements appear in execution order 
- If you have used log statement in multiple places, then add file 
name or any differentiator among log messages so that you could 
understand which log message is coming from which file 
10 techonestop.com
Debugger Statement 
- All modern browser developer tools provide breakpoint, even 
you could add expression on breakpoint 
11 techonestop.com
Debugger Statement (Cont) 
- If your developer tool does not provide breakpoint functionality 
or you want to set breakpoints explicitly, then use ‘debugger’ to 
add breakpoints in your script 
- It behaves same way as browser breakpoint, code execution will 
stop at that point 
12 techonestop.com
Few Recommendations 
- Use JavaScript code quality checking tools before deployment, 
for example JSHint (http://www.jshint.com/), JSLint 
(http://www.jslint.com/) 
- Remove debugger and SiebelJS.log() from script before moving 
to production 
- Try to avoid using alert() to print variable values, it may be 
missed when going from development to production 
> While debugger and SiebelJS.log() are invisible to end users, 
alert() throws an alert message to users 
- Test with all browser and device combinations before moving 
the script to production 
13 techonestop.com
Highlights 
- Use Browser’s Inspector to verify that the JavaScript files have 
been downloaded or not 
- Use SiebelJS.Log() to print variable values or to decide that 
the code execution has reached certain point 
- Use debugger to add breakpoints 
14 techonestop.com
Do you have any questions / Doubts ? 
Write us 
or 
Follow ‘TechOneStop’ on Facebook / Twitter / LinkedIn 
15 techonestop.com
Thank You!!! 
For more information, visit ‘www.techonestop.com’ 
eMail id: admin@techonestop.com 
16 techonestop.com

More Related Content

PPTX
the Concept of Object-Oriented Programming
PPTX
Classes and Objects in C#
PDF
Java 8 Lambda Expressions
PPT
Composite pattern
PPTX
Polymorphism in java
PDF
Answers siebel-set-i
PPT
Object Oriented Programming with Java
PPTX
Files and streams In Java
the Concept of Object-Oriented Programming
Classes and Objects in C#
Java 8 Lambda Expressions
Composite pattern
Polymorphism in java
Answers siebel-set-i
Object Oriented Programming with Java
Files and streams In Java

What's hot (20)

PDF
Javapolymorphism
PPTX
Siebel Open UI Presentation
PPTX
PPTX
ASP.NET State management
PDF
JAVA PROGRAMMING - The Collections Framework
PDF
Oracle ADF 11g Skinning Tutorial
PPTX
Reflection power pointpresentation ppt
PPS
Class method
PPTX
Encapsulation
PPTX
Abstraction and Encapsulation
PPT
Object oriented vs. object based programming
PPTX
Builder pattern
PPT
E learning excel vba programming lesson 1
PPTX
Object oriented programming
PPTX
PPTX
Unit ii java script and xhtml documents and dynamic documents with javascript
PPTX
COLLECTIONS.pptx
PPT
Object and class
PPTX
Composite design pattern
PPT
Mobile Application Development,J2ME,UNIT-4-JNTU
Javapolymorphism
Siebel Open UI Presentation
ASP.NET State management
JAVA PROGRAMMING - The Collections Framework
Oracle ADF 11g Skinning Tutorial
Reflection power pointpresentation ppt
Class method
Encapsulation
Abstraction and Encapsulation
Object oriented vs. object based programming
Builder pattern
E learning excel vba programming lesson 1
Object oriented programming
Unit ii java script and xhtml documents and dynamic documents with javascript
COLLECTIONS.pptx
Object and class
Composite design pattern
Mobile Application Development,J2ME,UNIT-4-JNTU
Ad

Similar to Siebel Open UI Debugging (Siebel Open UI Training, Part 7) (19)

PPTX
How to crack java script certification
KEY
Debugging Your Ext JS Code
PDF
Performance Optimization and JavaScript Best Practices
PDF
Stop (de)bugging me!
PPT
9781305078444 ppt ch04
PPTX
Javascript best practices
ODP
Javascript debugging
PPT
Javascript Debugging
PPT
Chapter 14 - Web Design
PPT
Chapter14
PPT
Chelberg ptcuser 2010
PDF
Ajax Performance Tuning and Best Practices
PPTX
Beyond the Basics, Debugging with Firebug and Web Inspector
PDF
Front-End Engineering 101
PDF
Quo vadis, JavaScript? Devday.pl keynote
PPT
JavaScript Misunderstood
PPTX
MTA understanding java script and coding essentials
PDF
Getting started with dev tools (atl)
PPTX
Webinar–Reviewing Modern JavaScript Applications
How to crack java script certification
Debugging Your Ext JS Code
Performance Optimization and JavaScript Best Practices
Stop (de)bugging me!
9781305078444 ppt ch04
Javascript best practices
Javascript debugging
Javascript Debugging
Chapter 14 - Web Design
Chapter14
Chelberg ptcuser 2010
Ajax Performance Tuning and Best Practices
Beyond the Basics, Debugging with Firebug and Web Inspector
Front-End Engineering 101
Quo vadis, JavaScript? Devday.pl keynote
JavaScript Misunderstood
MTA understanding java script and coding essentials
Getting started with dev tools (atl)
Webinar–Reviewing Modern JavaScript Applications
Ad

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
KodekX | Application Modernization Development
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation theory and applications.pdf
Electronic commerce courselecture one. Pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
NewMind AI Monthly Chronicles - July 2025
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Modernizing your data center with Dell and AMD
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Per capita expenditure prediction using model stacking based on satellite ima...
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
KodekX | Application Modernization Development
Big Data Technologies - Introduction.pptx
Encapsulation theory and applications.pdf

Siebel Open UI Debugging (Siebel Open UI Training, Part 7)

  • 1. Siebel Open UI Debugging Presented by TechOneStop Techonestop.com In a vision to make TECHNOLOGY simple for u 1 Techonestop.com
  • 2. Objectives 1) How to debug Siebel Open UI JavaScript using - SiebelJS.log () - Debugger 2) Recommendations before JavaScript file deployment 2 techonestop.com
  • 3. Suggestions for debugging JavaScript If JavaScript is not running properly in Siebel Open UI 1. Use browser’s developer tools (Inspect Element) to verify that the respective JavaScript file is downloaded properly on runtime 2. Use browser’s developer tools to verify that the JavaScript is running correctly 3. Use SiebelJS.Log() function to log messages 4. Use debugger statement to add breakpoint inside script 3 techonestop.com
  • 4. Browser Developer Tools Almost all modern browsers like Google Chrome, Mozilla Firefox, Internet Explorer 8 or higher version have built-in developer tools that - Provide an inspector to verify JavaScript and CSS files have been downloaded properly or not - Allow inline modification of HTML and CSS rules to see how changes affect look and feel of webpage elements - Debugger to set breakpoints in JavaScript code - Verify variables values 4 techonestop.com
  • 5. Invoke Browser Developer Tools To open developer tools, right click on any browser and click on ‘Inspect Element’. Except right click, each browser has different set of shortcut keys also to open Inspect Element window like for Google Chrome: F12 , Mozilla Firefox : Shift+Ctrl+Q 5 techonestop.com
  • 6. Verify JavaScript file was downloaded properly If your code does not appear to be working, very first step is to verify JS files have been downloaded to the client properly. To check it , go to ‘Source’ tab under Inspect Element and search for files. You may use error icon to check JavaScript errors. 6 techonestop.com
  • 7. Reasons behind failure to download There may be several reasons behind such failure - JS file is not properly defined in Manifest Administration - Errors in JS file itself > Inspector will show you all JavaScript errors and warnings 7 techonestop.com
  • 8. Verify Class is properly loaded To verify JavaScript Class is properly downloaded to client, go to Inspector Console and type SiebelAppFacede.<First few letters of class name> - If class is properly loaded, auto complete feature of the console will recognize the class - If not, then verify Class is properly registered in the namespace of your JavaScript file or not 8 techonestop.com
  • 9. Use SiebelJS.Log() Use SiebelJS.Log() to print variable values or any log message on inspector console - Use val() to get values of elements in Physical Renderer JS file - Use GetFieldValue() to get values of controls in Presentation Model JS file 9 techonestop.com
  • 10. Output of SiebelJS.Log() Go to Inspector Console to see the output of the log message - Output from all log statements appear in execution order - If you have used log statement in multiple places, then add file name or any differentiator among log messages so that you could understand which log message is coming from which file 10 techonestop.com
  • 11. Debugger Statement - All modern browser developer tools provide breakpoint, even you could add expression on breakpoint 11 techonestop.com
  • 12. Debugger Statement (Cont) - If your developer tool does not provide breakpoint functionality or you want to set breakpoints explicitly, then use ‘debugger’ to add breakpoints in your script - It behaves same way as browser breakpoint, code execution will stop at that point 12 techonestop.com
  • 13. Few Recommendations - Use JavaScript code quality checking tools before deployment, for example JSHint (http://www.jshint.com/), JSLint (http://www.jslint.com/) - Remove debugger and SiebelJS.log() from script before moving to production - Try to avoid using alert() to print variable values, it may be missed when going from development to production > While debugger and SiebelJS.log() are invisible to end users, alert() throws an alert message to users - Test with all browser and device combinations before moving the script to production 13 techonestop.com
  • 14. Highlights - Use Browser’s Inspector to verify that the JavaScript files have been downloaded or not - Use SiebelJS.Log() to print variable values or to decide that the code execution has reached certain point - Use debugger to add breakpoints 14 techonestop.com
  • 15. Do you have any questions / Doubts ? Write us or Follow ‘TechOneStop’ on Facebook / Twitter / LinkedIn 15 techonestop.com
  • 16. Thank You!!! For more information, visit ‘www.techonestop.com’ eMail id: admin@techonestop.com 16 techonestop.com