Generating Browser Script

February 28th, 2007

When I first needed to add some funky client-side functionality in Siebel 7.5 I was hit with a problem: how to get hold of the browser scripts for testing?

SupportWeb Alert 365 covers using the genbscript utility to build the scripts from the repository using the following format:

genbscript <config_file> <destination_dir> <language_code>

This is all well and good and works fine - I’d recommend the method outlined for migrating browser scripts up to a server.

What the alert fails to mention, though, is that the officially ‘deprecated’ method of letting Tools generate the scripts for you still works. When you compile an object in Tools, any associated browser scripts are generated in the default directory tools_root\public\language_code\srf_timestamp\. This srf_timestamp directory is the same one produced by genbscript - except it only includes scripts for objects you’ve compiled.

For local debugging and unit testing this avoids an extra step. The destination directory for browser scripts can be changed by going to View > Options > Scripting and changing the ‘Browser script compilation folder’. You’ll want to set this to your Mobile Client’s public directory (e.g. Siebel\7.8\client\PUBLIC\enu) .

Then if you also have the usual parameters on the Debug tab pointing at your mobile client, and the location of the Siebel Repository File on the Compile dialog correctly set, then unit testing of browser scripts is a simple Ctrl+F7 > Enter > F5 away…

Entry Filed under: Migration, Scripting, Siebel

3 Comments Add your own

  • 1. mohamed  |  July 19th, 2007 at 6:59 am

    what is the use of scripting in siebel . how it use full and explain the process of scripting.

    explain with example

  • 2. stuandgravy  |  July 19th, 2007 at 8:40 am

    Mohamed,

    I think that might be rather large a topic for a blog comment!! I’d suggest you start with Siebel Bookshelf -> Object Interfaces Reference. Beyond that, look at http://education.oracle.com for courses in Siebel Tools.

  • 3. Jonathan Gaston  |  June 20th, 2008 at 1:53 pm

    Hi,
    I have a problem with browser scripting. I am using siebel 7.7. I created a browser script in an applet, put it in ChangeFieldValue method. What the script does is to popout a confirmation message box every time value “Cancelled” is selected from the Status Field.
    I think I was able to create the correct script, but the problem is why it does not work. I mean there is no evidence that this browser script is working or even existing when I am in UI. Please help me on this

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

February 2007
M T W T F S S
« Sep   Mar »
 1234
567891011
12131415161718
19202122232425
262728  

Most Recent Posts