8/04/2010

Browser Scripts

                Hello today! Today I will try to explain about Browser Scripts. I already talked about Scripting in general, but Browser Scripts are so hard to understand so I think about making whole post about it.
                So first of all in Browser Scripts you can script only in eScript, no VBScript. You can’t do a query in browser script and you can work only with values from fields that are seen on UI (they are on applet). With Browser Script you can interact with user input (make warning windows like “Do you want to continue?” with two buttons “Yes!” and “No!”). And biggest I think problem what makes Browser Scripts so painful is that they can not be debugged. So you need always double check your syntax to find errors. Second is Browser Script generation. For Browser Script to work it is needed to generate it. It generate JavaScript file that application uses.
                So step by step. All in all in Siebel Tools we use and create Browser Scripts just like Server Scripts – just right mouse button click on object and select Edit Browser Script. You can put it on Applet, Business Component and Business Service. It has similar methods like Server Script. One important thing to remember it that flow that Siebel engage is Applets Browser Script – Applets Server Script – Business Components Browser Script – Business Components Server Script. It means that it is flow that Siebel do if methods in flow doesn’t call some other method. And you can’t call Browser Script Method from Server Script, you can only return from Server Script to Browser Script (like if you called Business Service from Browser Script and when Business Service ended flow returned to Browser Script).
                Sorry don’t have so mush time today. Tomorrow will try to explain about Browser Script Generation.

No comments:

Post a Comment