Browser scripts are indispensable part of Siebel scripting. Browser scripts are nothing but java scripts that are executed on client side. Mostly when the requirement is to show a prompt (YES/NO OR OK/CANCEL) we write browser script for that. When you write a browser script on an object a .js file is created in the browser script folder for that object. That file contains the JavaScript code.
Browser scripts are located in Siebel installation\web client\public\enu.
When you compile the object on which you have written browser scripts the .js files are automatically generated in the path specified above. But sometime there is need to generate browser scripts manually as sometimes due to some patches or some reason browser scripts are not properly generated. Siebel has provided us with a utility called genbscript which allows to manually generate browser scripts. This utility is located in Siebel installation\web client\Bin\genbscript.exe
You have to run that utility from command prompt. Follow the steps given below to generate browsers scripts manually using genbscript utility. For the sake of simplicity we are assuming that Siebel is installed in C Drive you can change the path according to your installation
Open command prompt (in Run command field type CMD or command)
cd c:\program files\siebel\7.8\web client\bin
genbscript “C:\Program Files\Siebel\7.8\Web Client\BIN\ENU\uagent.cfg” “C:\Program Files\Siebel\7.8\Web Client\PUBLIC\ENU”
don’t append “\“ after ENU you will get an error. “\” is automatically appended by Siebel when you run that utility.
genbscript has the following syntax:
genbscript “your path to cfg file” “path where browser script should be generated”.