<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Siebel Consultant &#187; Problem Solution</title>
	<atom:link href="http://siebelconsultant.net/category/problem-solution/feed/" rel="self" type="application/rss+xml" />
	<link>http://siebelconsultant.net</link>
	<description>Diary of a Siebel Consultant</description>
	<lastBuildDate>Wed, 27 Jan 2010 07:59:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hiding controls in query mode</title>
		<link>http://siebelconsultant.net/hiding-controls-in-query-mode/</link>
		<comments>http://siebelconsultant.net/hiding-controls-in-query-mode/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 20:12:15 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[Problem Solution]]></category>
		<category><![CDATA[controls]]></category>
		<category><![CDATA[eScript]]></category>
		<category><![CDATA[PreCanInvoke]]></category>
		<category><![CDATA[Query Mode]]></category>

		<guid isPermaLink="false">http://siebelconsultant.net/?p=120</guid>
		<description><![CDATA[This issue came up during a UAT phase when testers reported to see two buttons twice when they wanted to query. After investigating this issue, I found out that some controls stayed on the appled even when the applet was in Query Mode.
Problem:
This issue only occurs with controls that invoke a custom method.
Normally when you [...]]]></description>
			<content:encoded><![CDATA[<p>This issue came up during a UAT phase when testers reported to see two buttons twice when they wanted to query. After investigating this issue, I found out that some controls stayed on the appled even when the applet was in Query Mode.</p>
<p><strong>Problem:</strong></p>
<p>This issue only occurs with controls that invoke a custom method.</p>
<p>Normally when you query in Siebel, you only see the <em>Go</em>, <em>Cancel</em> and <em>Query Assistant</em> buttons but for some reason, buttons that invoke a custom method are also showing on the applet after pressing <em>Query</em>.</p>
<p>In our case this was causing confusion since our custom buttons had the same caption.</p>
<p><a href="http://siebelconsultant.net/media//2009/06/siebel-double-buttons.jpg" rel="lightbox[120]"><img class="alignnone size-full wp-image-119" title="Controls visible in Query Mode" src="http://siebelconsultant.net/media//2009/06/siebel-double-buttons.jpg" alt="Controls visible in Query Mode" width="501" height="67" /></a></p>
<p><strong>Solution:</strong></p>
<p>First I tried to find a solution on Metalink, but there I found the suggestion to use BrowserScripting to hide the buttons but that is like fighting fire with fire.</p>
<p>Then, I&#8217;ve noticed that the buttons are not showing in the Query Mode if they are disabled before you press the query button. So the solution is very simple. Set the CanInvoke for the method behind the button to <em>false</em> and the button will not show when you do a query.</p>
<p>To do so, start by setting a Profile Attribute to true on the WebApplet_PreInvokeMethode for the NewQuery method. This Profile Attribute has to be set back to <em>false</em> of course to avoid that you&#8217;re button stays disabled. The best place to do this is on the PreInvoke of the methods ExecuteQuery and CancelQuery.</p>
<blockquote><p>function WebApplet_PreInvokeMethod (MethodName)<br />
{<br />
switch(MethodName){<br />
case &#8220;NewQuery&#8221;:<br />
TheApplication().SetProfileAttr(&#8220;QueryMode&#8221;, &#8220;TRUE&#8221;);<br />
return (ContinueOperation);<br />
break;<br />
case &#8220;ExecuteQuery&#8221;:<br />
case &#8220;CancelQuery&#8221;:<br />
TheApplication().SetProfileAttr(&#8220;QueryModeBPG&#8221;, &#8220;FALSE&#8221;);<br />
return (ContinueOperation);<br />
break;<br />
}<br />
return (ContinueOperation);<br />
}</p></blockquote>
<p>Next, you test for this Profile Attribute in the WebApplet_PreCanInvokeMethod to set the CanInvoke for the method to <em>true </em>or <em>false</em>.</p>
<p>If the Profile Attribute is <em>true</em> the Query button is pressed and the button should become disabled so it&#8217;s not displayed on the applet. When the query is executed or cancelled, the Profile Attribute is false and the button can become enabled again if other conditions are met.</p>
<blockquote><p>case &#8216;StartActivity&#8217;:<br />
if( &#8230; ){<br />
CanInvoke = &#8216;FALSE&#8217;;<br />
}<br />
else{<br />
if(TheApplication().GetProfileAttr(&#8220;QueryMode&#8221;) == &#8220;TRUE&#8221;){<br />
CanInvoke = &#8220;FALSE&#8221;;<br />
return (CancelOperation);<br />
}<br />
else{<br />
CanInvoke = &#8216;TRUE&#8217;;<br />
return (CancelOperation);<br />
}<br />
}<br />
break;</p></blockquote>
<blockquote><p><span style="font-family: Arial; font-size: x-small;"><span class="424210412-10062009"><em> </em></span></span></p></blockquote>
<p>When you now query, you see that the buttons are no longer displayed.</p>
<p><a href="http://siebelconsultant.net/media//2009/06/siebel-double-buttons-solution.jpg" rel="lightbox[120]"><img class="alignnone size-full wp-image-125" title="Controls no longer visible in Query Mode" src="http://siebelconsultant.net/media//2009/06/siebel-double-buttons-solution.jpg" alt="Controls no longer visible in Query Mode" width="504" height="55" /></a></p>
<p>After running or canceling the query, the buttons are displayed again and will be enabled if they have to be.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://siebelconsultant.net/hiding-controls-in-query-mode/&amp;title=Hiding+controls+in+query+mode" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://siebelconsultant.net/hiding-controls-in-query-mode/&amp;title=Hiding+controls+in+query+mode" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://siebelconsultant.net/hiding-controls-in-query-mode/&amp;t=Hiding+controls+in+query+mode" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Hiding+controls+in+query+mode+-+http://tinyurl.com/mcskjt+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://siebelconsultant.net/hiding-controls-in-query-mode/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://siebelconsultant.net/hiding-controls-in-query-mode/&amp;title=Hiding+controls+in+query+mode" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Hiding%20controls%20in%20query%20mode%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22This%20issue%20came%20up%20during%20a%20UAT%20phase%20when%20testers%20reported%20to%20see%20two%20buttons%20twice%20when%20they%20wanted%20to%20query.%20After%20investigating%20this%20issue%2C%20I%20found%20out%20that%20some%20controls%20stayed%20on%20the%20appled%20even%20when%20the%20applet%20was%20in%20Query%20Mode.%0D%0A%0D%0AProblem%3A%0D%0A%0D%0AThis%20issue%20only%20occurs%20with%20controls%20that%20invoke%20%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://siebelconsultant.net/hiding-controls-in-query-mode/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://siebelconsultant.net/hiding-controls-in-query-mode/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Empty message boxes</title>
		<link>http://siebelconsultant.net/empty-message-boxes/</link>
		<comments>http://siebelconsultant.net/empty-message-boxes/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 06:14:13 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[Problem Solution]]></category>
		<category><![CDATA[empty message box]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[multilingual]]></category>

		<guid isPermaLink="false">http://siebelconsultant.net/?p=63</guid>
		<description><![CDATA[The following problem struck us during a production launch and I took us some time finding out what was going wrong and why.
Problem:
We noticed the problem first when trying to delete an activity using the Dutch application. Instead of the delete confirmation dialog box, we received an empty message box as shown below.

As we went [...]]]></description>
			<content:encoded><![CDATA[<p>The following problem struck us during a production launch and I took us some time finding out what was going wrong and why.</p>
<p><strong>Problem</strong>:</p>
<p>We noticed the problem first when trying to delete an activity using the Dutch application. Instead of the delete confirmation dialog box, we received an empty message box as shown below.</p>
<p><img class="alignnone size-full wp-image-109" title="Empty delete confirmation message" src="http://siebelconsultant.net/media//2009/06/siebel-empty-message-box.jpg" alt="Empty delete confirmation message" width="137" height="89" /></p>
<p>As we went further through the application we noticed some more empty message boxes where we didn&#8217;t expect them &#8211; do you ever expect an ampty message box I wonder?</p>
<p>It took some time to find out what was causing this issue.</p>
<p><strong>Solution:</strong></p>
<p>The solution to this problem is actually very easy. Go to the Siebel webserver and open the <em>Internet Information Services (IIS) Manager</em>. In the left hand pane go to Web Sites -&gt; Default website and select the url for the application where the issue is occuring. Rightclick and choose Properties.</p>
<p>The value for Local Path should be c:\SWEApp\PUBLIC\&lt;language&gt; where &lt;language&gt; is the language of your application. In our case it was pointing to the ENU directory while it was the NLD application.</p>
<p><img class="alignnone size-full wp-image-110" title="Incorrect setup in IIS" src="http://siebelconsultant.net/media//2009/06/siebel-iss-lang.jpg" alt="Incorrect setup in IIS" width="342" height="325" /></p>
<p>After changing the Local Path and performing an IIS reset, the problem was fixed and the messages were shown in Dutch.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://siebelconsultant.net/empty-message-boxes/&amp;title=Empty+message+boxes" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://siebelconsultant.net/empty-message-boxes/&amp;title=Empty+message+boxes" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://siebelconsultant.net/empty-message-boxes/&amp;t=Empty+message+boxes" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Empty+message+boxes+-+http://tinyurl.com/kkvnnd+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://siebelconsultant.net/empty-message-boxes/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://siebelconsultant.net/empty-message-boxes/&amp;title=Empty+message+boxes" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Empty%20message%20boxes%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22The%20following%20problem%20struck%20us%20during%20a%20production%20launch%20and%20I%20took%20us%20some%20time%20finding%20out%20what%20was%20going%20wrong%20and%20why.%0D%0A%0D%0AProblem%3A%0D%0A%0D%0AWe%20noticed%20the%20problem%20first%20when%20trying%20to%20delete%20an%20activity%20using%20the%20Dutch%20application.%20Instead%20of%20the%20delete%20confirmation%20dialog%20box%2C%20we%20received%20an%20empty%20%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://siebelconsultant.net/empty-message-boxes/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://siebelconsultant.net/empty-message-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Email client automation object not found</title>
		<link>http://siebelconsultant.net/email-client-automation-object-not-found/</link>
		<comments>http://siebelconsultant.net/email-client-automation-object-not-found/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 08:32:36 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[Problem Solution]]></category>
		<category><![CDATA[ActiveX]]></category>
		<category><![CDATA[cfg]]></category>
		<category><![CDATA[email client automation]]></category>

		<guid isPermaLink="false">http://siebelconsultant.net/?p=91</guid>
		<description><![CDATA[I faced this problem while working on an issue with the resending of an email linked to a Service Request. The template to resend this mail was an MS Outlook template.
Problem:
I was using the Siebel Dedicated Client because I wanted to test some eScript I wrote. When I tried to resend an email linked to [...]]]></description>
			<content:encoded><![CDATA[<p>I faced this problem while working on an issue with the resending of an email linked to a Service Request. The template to resend this mail was an MS Outlook template.</p>
<p><strong>Problem:</strong></p>
<p>I was using the Siebel Dedicated Client because I wanted to test some eScript I wrote. When I tried to resend an email linked to a Service Request I received this error message.</p>
<blockquote><p>The Siebel email client automation object is not found. Please check your browser setting to make sure downloading ActiveX control is enabled. If this does not solve your problem, please ask your system administrator to check the configuration.(SBL-CSR-00900)</p></blockquote>
<p><strong>Solution:</strong></p>
<p>To make sure the Email client automation object can be downloaded correctly, perform the steps below:</p>
<ul>
<li>Check the server to make sure that Automation object is enabled and your browser setting allows ActiveX objects to be downloaded.</li>
<li>Make sure that SWE properties are set<br />
In your .cfg file set the following parameters in the [SWE] section to TRUE:<br />
EnableWebClientAutomation = TRUE<br />
EnableEmailClientAutomation = TRUE</li>
<li>Downloading ActiveX controls<br />
If you suspect that a user does not have the correct ActiveX controls, clear the existing ActiveX controls from the user&#8217;s browser, and on the next login, the controls should be downloaded. Follow these steps to clear the existing control:</p>
<ol>
<li><span style="font-size: small;">Clear the browser and reload its ActiveX controls.</span></li>
<li><span style="font-size: small;">Exit out of browser.</span></li>
<li><span style="font-size: small;">Launch Internet Explorer and navigate to Tools &gt; Internet Options.</span></li>
<li><span style="font-size: small;">Select Delete Cookies button.</span></li>
<li><span style="font-size: small;">Select Delete Files button.</span></li>
<li><span style="font-size: small;">Select Clear History button.</span></li>
<li><span style="font-size: small;">Select the Settings button and select the View Objects button.</span></li>
<li><span style="font-size: small;">Delete all of the files in this window.</span></li>
<li><span style="font-size: small;">Login to the Siebel Application again<br />
</span></li>
</ol>
</li>
</ul>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://siebelconsultant.net/email-client-automation-object-not-found/&amp;title=Email+client+automation+object+not+found" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://siebelconsultant.net/email-client-automation-object-not-found/&amp;title=Email+client+automation+object+not+found" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://siebelconsultant.net/email-client-automation-object-not-found/&amp;t=Email+client+automation+object+not+found" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Email+client+automation+object+not+found+-+http://tinyurl.com/muener+" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://siebelconsultant.net/email-client-automation-object-not-found/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://siebelconsultant.net/email-client-automation-object-not-found/&amp;title=Email+client+automation+object+not+found" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-mail">
			<a href="mailto:?subject=%22Email%20client%20automation%20object%20not%20found%22&amp;body=I%20thought%20this%20article%20might%20interest%20you.%0A%0A%22I%20faced%20this%20problem%20while%20working%20on%20an%20issue%20with%20the%20resending%20of%20an%20email%20linked%20to%20a%20Service%20Request.%20The%20template%20to%20resend%20this%20mail%20was%20an%20MS%20Outlook%20template.%0D%0A%0D%0AProblem%3A%0D%0A%0D%0AI%20was%20using%20the%20Siebel%20Dedicated%20Client%20because%20I%20wanted%20to%20test%20some%20eScript%20I%20wrote.%20When%20I%20tried%20to%20resend%20an%20emai%22%0A%0AYou%20can%20read%20the%20full%20article%20here%3A%20http://siebelconsultant.net/email-client-automation-object-not-found/" rel="nofollow" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://siebelconsultant.net/email-client-automation-object-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
