<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: What Is the Scope of the &#8220;this&#8221; Object in Browser Script?</title>
	<atom:link href="http://siebelunleashed.com/scope-object-in-browser-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://siebelunleashed.com/scope-object-in-browser-script/</link>
	<description>Making Siebel Simple</description>
	<lastBuildDate>Mon, 08 Mar 2010 10:05:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: <img class="monsterid" src="http://siebelunleashed.com/wp-content/plugins/wp-monsterid/monsterid/3cb51d10a00621a.png" alt="Praveen Reddy V MonsterID Icon" height="65" width="65"/> Praveen Reddy V</title>
		<link>http://siebelunleashed.com/scope-object-in-browser-script/#comment-1163</link>
		<dc:creator><img class="monsterid" src="http://siebelunleashed.com/wp-content/plugins/wp-monsterid/monsterid/3cb51d10a00621a.png" alt="Praveen Reddy V MonsterID Icon" height="65" width="65"/> Praveen Reddy V</dc:creator>
		<pubDate>Thu, 22 May 2008 04:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://siebelunleashed.com/?p=325#comment-1163</guid>
		<description>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(&quot;&quot;) doesn&#039;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(&quot;...&quot;);
If you need to get the applet instance just declare a local variable
var applet = top.theApplication().FindApplet(&quot;...&quot;);</description>
		<content:encoded><![CDATA[<p>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.<br />
For eg: theApplication().GetProfileAttr(&#8220;&#8221;) doesn&#8217;t work.</p>
<p>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.</p>
<p>On load of applet<br />
appplet = this;<br />
application = theApplication();<br />
this would need a general variable declaration. if you dont want to use that approach you can use the following method.</p>
<p>theApplication() is a top level method and is available as<br />
top.theApplication() through out the browser script.<br />
You can directly use top.theApplication().GetProfileattr(&#8220;&#8230;&#8221;);<br />
If you need to get the applet instance just declare a local variable<br />
var applet = top.theApplication().FindApplet(&#8220;&#8230;&#8221;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
