<?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: Siebel &#8211; Fetch Active view properties</title>
	<atom:link href="http://geeksbloggingat.com/2009/07/22/siebel-fetch-active-view-properties/feed/" rel="self" type="application/rss+xml" />
	<link>http://geeksbloggingat.com/2009/07/22/siebel-fetch-active-view-properties/</link>
	<description>Let&#039;s share...</description>
	<lastBuildDate>Tue, 20 Jul 2010 19:37:26 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nitin Jain</title>
		<link>http://geeksbloggingat.com/2009/07/22/siebel-fetch-active-view-properties/comment-page-1/#comment-652</link>
		<dc:creator>Nitin Jain</dc:creator>
		<pubDate>Sat, 08 Aug 2009 08:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://geeksbloggingat.com/?p=656#comment-652</guid>
		<description>I understand. Nice tip, Denis!

This problem would come up when you are trying to access a BO different from the one defined on Workflow Definition. I generally used a different kind of solution in this case. Let&#039;s sum it all up:

1) Use this.BusObject() in script in this case, as suggested by Denis.
2) Use a sub-process within the workflow if you want to work on a different BO. You can avoid scripting this way.
3) Don&#039;t use a BO on the Workflow Definition at all, unless absolutely necessary. This works just as well. :-)

Thanks for sharing, Denis. Cheers!</description>
		<content:encoded><![CDATA[<p>I understand. Nice tip, Denis!</p>
<p>This problem would come up when you are trying to access a BO different from the one defined on Workflow Definition. I generally used a different kind of solution in this case. Let&#8217;s sum it all up:</p>
<p>1) Use this.BusObject() in script in this case, as suggested by Denis.<br />
2) Use a sub-process within the workflow if you want to work on a different BO. You can avoid scripting this way.<br />
3) Don&#8217;t use a BO on the Workflow Definition at all, unless absolutely necessary. This works just as well. <img src='http://geeksbloggingat.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Thanks for sharing, Denis. Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denis Mittakarin</title>
		<link>http://geeksbloggingat.com/2009/07/22/siebel-fetch-active-view-properties/comment-page-1/#comment-641</link>
		<dc:creator>Denis Mittakarin</dc:creator>
		<pubDate>Fri, 07 Aug 2009 15:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://geeksbloggingat.com/?p=656#comment-641</guid>
		<description>One thing I&#039;d like to add here is a note about Integration.  
We had a requirement to refresh (ExecuteQuery()) a bc after a record was written.  Lets call this BC-A.  Initially we simply had some code in the WriteRecord() event using ActiveBusObject().
We also had an integration piece that was accessing BC-A using workflow.  As we all know, when defining a workflow we define a Business Object.  
What happened is that when the workflow ran, the business object defined did not include all of the bcs that were defined on BC-A&#039;s script.  So what we had to do is first determine if we were on the correct view.  For this we used ActiveViewName().  But then what we used to determine the correct BO was to use this.BusObject() which will determine the bc&#039;s BO.
This approach made sure we were accessing the BC&#039;s business object and not the Workflow&#039;s business object.

Hope I was clear and not too confusing.  The gist is that you may need to use this.BusObject() in some cases as I did.</description>
		<content:encoded><![CDATA[<p>One thing I&#8217;d like to add here is a note about Integration.<br />
We had a requirement to refresh (ExecuteQuery()) a bc after a record was written.  Lets call this BC-A.  Initially we simply had some code in the WriteRecord() event using ActiveBusObject().<br />
We also had an integration piece that was accessing BC-A using workflow.  As we all know, when defining a workflow we define a Business Object.<br />
What happened is that when the workflow ran, the business object defined did not include all of the bcs that were defined on BC-A&#8217;s script.  So what we had to do is first determine if we were on the correct view.  For this we used ActiveViewName().  But then what we used to determine the correct BO was to use this.BusObject() which will determine the bc&#8217;s BO.<br />
This approach made sure we were accessing the BC&#8217;s business object and not the Workflow&#8217;s business object.</p>
<p>Hope I was clear and not too confusing.  The gist is that you may need to use this.BusObject() in some cases as I did.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
