Coming Soon: Task Based UI @ Siebel 7.8 | Next Tip »Home
Home » Oracle MetaLink

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

20 May 2008 297 views One Comment
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 :)

  • Share/Bookmark

Related Posts

One Comment »

  • Praveen Reddy V MonsterID Icon Praveen Reddy V said:

    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(“…”);

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.