SiebelUnleashed Forum is up and running.. Check out the new forum. | Next Tip »Home

What Is the Scope of the “this” Object in Browser Script?

OkAvarageGoodVery GoodExcellent (1 votes, average: 2.00 out of 5)
Loading ... Loading ...

A nice informative document telling about scope of variables declared in “declarations section” of Browser Scripts.

A post at Notes on Siebel: demonstrating about its practical implementation.

Enjoy :)

Related Posts


Article by neel

Authors bio is coming up shortly. neel tagged this post with: Read 417 articles by neel
  • Praveen Reddy V

    Unforunately this object is not available in general functions in Siebel browser scripts. Not just this none of the Siebel methods are available in general functions on the browser side.
    For eg: theApplication().GetProfileAttr(“”) doesn’t work.

    There are two ways of getting the objects in general functions one is the way that is mentioned in the document declare general variables and on applet load assign them the objects.

    On load of applet
    appplet = this;
    application = theApplication();
    this would need a general variable declaration. if you dont want to use that approach you can use the following method.

    theApplication() is a top level method and is available as
    top.theApplication() through out the browser script.
    You can directly use top.theApplication().GetProfileattr(“…”);
    If you need to get the applet instance just declare a local variable
    var applet = top.theApplication().FindApplet(“…”);

  • Praveen Reddy V

    Unforunately this object is not available in general functions in Siebel browser scripts. Not just this none of the Siebel methods are available in general functions on the browser side.
    For eg: theApplication().GetProfileAttr(“”) doesn’t work.

    There are two ways of getting the objects in general functions one is the way that is mentioned in the document declare general variables and on applet load assign them the objects.

    On load of applet
    appplet = this;
    application = theApplication();
    this would need a general variable declaration. if you dont want to use that approach you can use the following method.

    theApplication() is a top level method and is available as
    top.theApplication() through out the browser script.
    You can directly use top.theApplication().GetProfileattr(“…”);
    If you need to get the applet instance just declare a local variable
    var applet = top.theApplication().FindApplet(“…”);

blog comments powered by Disqus

Polls

Do you know how to use replace function?

View Results

Loading ... Loading ...