<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>CRM Architect</title>
	<atom:link href="http://crmarchitect.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://crmarchitect.wordpress.com</link>
	<description>Pivotal CRM &#38; .NET Development</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:43:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='crmarchitect.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>CRM Architect</title>
		<link>http://crmarchitect.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://crmarchitect.wordpress.com/osd.xml" title="CRM Architect" />
	<atom:link rel='hub' href='http://crmarchitect.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A tool to shutdown Sedna PBS</title>
		<link>http://crmarchitect.wordpress.com/2008/06/06/a-tool-to-shutdown-sedna-pbs/</link>
		<comments>http://crmarchitect.wordpress.com/2008/06/06/a-tool-to-shutdown-sedna-pbs/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 14:59:58 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Pivotal Utility]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2008/06/06/a-tool-to-shutdown-sedna-pbs/</guid>
		<description><![CDATA[We all know Pivotal changed the LCS component name and the the little tool that we use to shutdown PBS is no longer compatible. I recompiled the code to be compatible with Sedna. Download the file below and rename it to clearcache.zip. clearcachesedna.zip<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=36&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We all know Pivotal changed the LCS component name and the the little tool that we use to shutdown PBS is no longer compatible. I recompiled the code to be compatible with Sedna. Download the file below and rename it to clearcache.zip.</p>
<p><a href="http://crmarchitect.files.wordpress.com/2008/06/clearcachesedna.doc">clearcachesedna.zip</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=36&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2008/06/06/a-tool-to-shutdown-sedna-pbs/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Default Global Search to &quot;Companies&quot;</title>
		<link>http://crmarchitect.wordpress.com/2008/05/12/how-to-default-global-search-to-companies/</link>
		<comments>http://crmarchitect.wordpress.com/2008/05/12/how-to-default-global-search-to-companies/#comments</comments>
		<pubDate>Mon, 12 May 2008 21:05:47 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Client Script]]></category>
		<category><![CDATA[Pivotal Rich Client]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2008/05/12/how-to-default-global-search-to-companies/</guid>
		<description><![CDATA[This is the sample code on how to default the Global Search to certain Business Object such as Companies. &#160; '*************************************************** ' Name: OnPortalLoaded ' -&#62; Default the Global Search to "Companies" BO '*************************************************** Sub OnPortalLoaded(ParameterList) Dim objInput Set objInput = UIMaster.documentMenu. _ body.getElementsByTagName("INPUT") objInput(0).Value = "Companies" .... .... .... End Sub '*************************************************** ' Name: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=35&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the sample code on how to default the Global Search to certain Business Object such as Companies.</p>
<p><a href="http://crmarchitect.files.wordpress.com/2008/05/screenshot005.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="114" alt="ScreenShot005" src="http://crmarchitect.files.wordpress.com/2008/05/screenshot005-thumb.jpg?w=138&#038;h=114" width="138" border="0"></a>&nbsp;</p>
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#008000;">'***************************************************</span>
<span style="color:#008000;">' Name:     OnPortalLoaded</span>
<span style="color:#008000;">' -&gt; Default the Global Search to "Companies" BO</span>
<span style="color:#008000;">'***************************************************</span>
<span style="color:#0000ff;">Sub</span> OnPortalLoaded(ParameterList)
    <span style="color:#0000ff;">Dim</span> objInput
    <span style="color:#0000ff;">Set</span> objInput = UIMaster.documentMenu. _
        body.getElementsByTagName(<span style="color:#006080;">"INPUT"</span>)
    objInput(0).Value = <span style="color:#006080;">"Companies"</span> 

    ....
    ....
    ....
<span style="color:#0000ff;">End</span> <span style="color:#0000ff;">Sub</span>

<span style="color:#008000;">'***************************************************</span>
<span style="color:#008000;">' Name:     OnGlobalQuickSearchLoaded</span>
<span style="color:#008000;">' -&gt; Handle the Companies Global Search to run</span>
<span style="color:#008000;">' Company Quick Search</span>
<span style="color:#008000;">'***************************************************</span>
<span style="color:#0000ff;">Function</span> OnGlobalQuickSearchLoaded(vntParameters)
    <span style="color:#0000ff;">Dim</span> objInput
    <span style="color:#0000ff;">Dim</span> strSearchText
    <span style="color:#0000ff;">Dim</span> objSearchFactory

    <span style="color:#0000ff;">On</span> <span style="color:#0000ff;">Error</span> <span style="color:#0000ff;">Resume</span> <span style="color:#0000ff;">Next</span>

    <span style="color:#0000ff;">Set</span> objInput = UIMaster.documentMenu._
        body.getElementsByTagName(<span style="color:#006080;">"INPUT"</span>)

    <span style="color:#0000ff;">If</span> objInput(0).Value = <span style="color:#006080;">"Companies"</span> <span style="color:#0000ff;">Then</span>
        strSearchText = objInput(1).Value
        <span style="color:#0000ff;">Set</span> objSearchFactory = _
      UIMaster.CreateCenterReference(<span style="color:#006080;">"quicksearch"</span>)
        <span style="color:#0000ff;">With</span> objSearchFactory
            .SearchType = 1 <span style="color:#008000;">'A non-global quick search.</span>
            <span style="color:#0000ff;">Set</span> .Table = _
        UIMaster.RSysClient.GetTable(<span style="color:#006080;">"Company"</span>)
            .SearchText = strSearchText
        <span style="color:#0000ff;">End</span> <span style="color:#0000ff;">With</span>
        UIMaster.ShowCenterReference _
    actionAskUser, objSearchFactory, Null
    <span style="color:#0000ff;">End</span> <span style="color:#0000ff;">If</span>

    OnGlobalQuickSearchLoaded = <span style="color:#0000ff;">True</span>
<span style="color:#0000ff;">End</span> Function</pre>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=35&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2008/05/12/how-to-default-global-search-to-companies/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>

		<media:content url="http://crmarchitect.files.wordpress.com/2008/05/screenshot005-thumb.jpg" medium="image">
			<media:title type="html">ScreenShot005</media:title>
		</media:content>
	</item>
		<item>
		<title>Rename Tab Title</title>
		<link>http://crmarchitect.wordpress.com/2007/10/20/rename-tab-title/</link>
		<comments>http://crmarchitect.wordpress.com/2007/10/20/rename-tab-title/#comments</comments>
		<pubDate>Sat, 20 Oct 2007 19:47:03 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Client Script]]></category>
		<category><![CDATA[Pivotal Rich Client]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/10/20/rename-tab-title/</guid>
		<description><![CDATA[&#160; '********************************************** ' Name : ChangeTabTitle ' Purpose : Use DHTML to Change the Tab Title '********************************************** Sub ChangeTabTitle(sTabName, sNewTabTitle) Dim sTabId sTabId = "Tab_" + _ CStr((UIMaster.RUICenter.Form.Tabs(sTabName). _ Ordinal - 2)) UIMaster.documentCenter. _ GetElementById(sTabId).innerText = sNewTabTitle End Sub<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=31&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>&nbsp;</div>
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#008000;">'**********************************************</span>
<span style="color:#008000;">' Name    : ChangeTabTitle</span>
<span style="color:#008000;">' Purpose : Use DHTML to Change the Tab Title</span>
<span style="color:#008000;">'**********************************************</span>
<span style="color:#0000ff;">Sub</span> ChangeTabTitle(sTabName, sNewTabTitle)
    <span style="color:#0000ff;">Dim</span> sTabId
    sTabId = <span style="color:#006080;">"Tab_"</span> + _
    <span style="color:#0000ff;">CStr</span>((UIMaster.RUICenter.Form.Tabs(sTabName). _
    Ordinal - 2))

    UIMaster.documentCenter. _
    GetElementById(sTabId).innerText = sNewTabTitle 

<span style="color:#0000ff;">End</span> Sub</pre>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=31&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/10/20/rename-tab-title/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get the deleted rows from SaveFormData</title>
		<link>http://crmarchitect.wordpress.com/2007/09/10/how-to-get-the-deleted-rows-from-saveformdata/</link>
		<comments>http://crmarchitect.wordpress.com/2007/09/10/how-to-get-the-deleted-rows-from-saveformdata/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 23:35:44 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Appserver Rule]]></category>
		<category><![CDATA[Pivotal Rich Client]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/09/10/how-to-get-the-deleted-rows-from-saveformdata/</guid>
		<description><![CDATA[&#160; IRRecordset2 rstDeleted; rstDeleted = (IRRecordset2) pForm.SecondaryFromVariantArray( Recordsets, “Assistants”); foreach (object deletedId in rstDeleted.DeletedRecordIds) { //Do Something with your id here }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=30&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="font-size:8pt;background:white;color:black;font-family:courier new;">
<pre style="margin:0;">&nbsp;</pre>
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">IRRecordset2 rstDeleted;
rstDeleted = (IRRecordset2) pForm.SecondaryFromVariantArray(
                                    Recordsets, “Assistants”);

<span style="color:#0000ff;">foreach</span> (<span style="color:#0000ff;">object</span> deletedId <span style="color:#0000ff;">in</span> rstDeleted.DeletedRecordIds)
{
    <span style="color:#008000;">//Do Something with your id here</span>
}</pre>
</div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=30&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/09/10/how-to-get-the-deleted-rows-from-saveformdata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide Foreign Key Field</title>
		<link>http://crmarchitect.wordpress.com/2007/09/10/hide-foreign-key-field/</link>
		<comments>http://crmarchitect.wordpress.com/2007/09/10/hide-foreign-key-field/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 12:25:04 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Client Script]]></category>
		<category><![CDATA[Pivotal Rich Client]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/09/10/hide-foreign-key-field/</guid>
		<description><![CDATA[&#160; '********************************************************************** ' Name : HideForeignFieldEx ' Purpose : To Hide FK Field using DHTML '********************************************************************** ' Inputs: ' sTabName : tab name ' sSegmentName : segment name ' sFieldName : field name ' Returns: ' N/A '********************************************************************** Sub HideForeignFieldEx(sTabName, sSegmentName, sFieldName) Dim oField Set oField = UIMaster.RUICenter.GetForeignFieldEx(sTabName, _ sSegmentName, sFieldName) Dim oTDs Dim oTD [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=29&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>&nbsp;</div>
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#008000;">'**********************************************************************</span>
<span style="color:#008000;">' Name    : HideForeignFieldEx</span>
<span style="color:#008000;">' Purpose : To Hide FK Field using DHTML</span>
<span style="color:#008000;">'**********************************************************************</span>
<span style="color:#008000;">' Inputs:</span>
<span style="color:#008000;">'   sTabName : tab name   </span>
<span style="color:#008000;">'   sSegmentName : segment name       </span>
<span style="color:#008000;">'   sFieldName : field name</span>
<span style="color:#008000;">' Returns:</span>
<span style="color:#008000;">'   N/A</span>
<span style="color:#008000;">'**********************************************************************</span>
<span style="color:#0000ff;">Sub</span> HideForeignFieldEx(sTabName, sSegmentName, sFieldName) 

    <span style="color:#0000ff;">Dim</span> oField
    <span style="color:#0000ff;">Set</span> oField = UIMaster.RUICenter.GetForeignFieldEx(sTabName, _
                                    sSegmentName, sFieldName)
    <span style="color:#0000ff;">Dim</span> oTDs
    <span style="color:#0000ff;">Dim</span> oTD

    <span style="color:#008000;">'Hide the label</span>
    UIMaster.RUICenter.GetFieldLabelEx(sTabName, _
                       sSegmentName, sFieldName).style.display = <span style="color:#006080;">"none"</span>
    <span style="color:#008000;">'Hide the Input</span>
    oField.InputElement.style.display = <span style="color:#006080;">"none"</span>
    <span style="color:#0000ff;">Set</span> oTDs = oField.ParentElement.GetElementsByTagName(<span style="color:#006080;">"TD"</span>)
    <span style="color:#0000ff;">For</span> <span style="color:#0000ff;">Each</span> oTD <span style="color:#0000ff;">In</span> oTDs
        oTD.style.display = <span style="color:#006080;">"none"</span>
    <span style="color:#0000ff;">Next</span>
<span style="color:#0000ff;">End</span> Sub</pre>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=29&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/09/10/hide-foreign-key-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>Hide Business Object From Menu</title>
		<link>http://crmarchitect.wordpress.com/2007/08/20/hide-business-object-from-menu/</link>
		<comments>http://crmarchitect.wordpress.com/2007/08/20/hide-business-object-from-menu/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 17:31:45 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Client Script]]></category>
		<category><![CDATA[Pivotal Rich Client]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/08/20/hide-business-object-from-menu/</guid>
		<description><![CDATA[Below is the function to hide business object from the left hand menu. '********************************************** ' Name: HideBusinessObject ' Purpose: To Hide Business Object ' from Left Hand Navigation ' Info: To be called from OnMainWindowOpen '********************************************** ' 1.0 8/20/2007 JM '********************************************** Sub HideBusinessObject(strBusinessObjectName) Dim objHTMLDoc For Each objHTMLDoc in _ UIMaster.documentMenu.all If objHTMLDoc.tagName = "DIV" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=28&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is the function to hide business object from the left hand menu.</p>
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#008000;">'**********************************************</span>
<span style="color:#008000;">' Name:    HideBusinessObject</span>
<span style="color:#008000;">' Purpose: To Hide Business Object </span>
<span style="color:#008000;">'        from Left Hand Navigation</span>
<span style="color:#008000;">' Info:    To be called from OnMainWindowOpen </span>
<span style="color:#008000;">'**********************************************</span>
<span style="color:#008000;">' 1.0            8/20/2007     JM        </span>
<span style="color:#008000;">'**********************************************</span>
<span style="color:#0000ff;">Sub</span> HideBusinessObject(strBusinessObjectName)
    <span style="color:#0000ff;">Dim</span> objHTMLDoc
    <span style="color:#0000ff;">For</span> <span style="color:#0000ff;">Each</span> objHTMLDoc <span style="color:#0000ff;">in</span> _
        UIMaster.documentMenu.all
        <span style="color:#0000ff;">If</span> objHTMLDoc.tagName = <span style="color:#006080;">"DIV"</span> _
            <span style="color:#0000ff;">and</span> UCase(objHTMLDoc.title) = _
        UCase(strBusinessObjectName) <span style="color:#0000ff;">Then</span>
            objHTMLDoc.parentElement.parentElement. _
                parentElement.parentElement. _
        parentElement.parentElement. _
        style.display=<span style="color:#006080;">"none"</span>
        <span style="color:#0000ff;">End</span> <span style="color:#0000ff;">If</span>
    <span style="color:#0000ff;">Next</span>
<span style="color:#0000ff;">End</span> Sub</pre>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=28&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/08/20/hide-business-object-from-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>Better than a napkin: Track your BM changes</title>
		<link>http://crmarchitect.wordpress.com/2007/05/28/better-than-a-napkin-track-your-changes/</link>
		<comments>http://crmarchitect.wordpress.com/2007/05/28/better-than-a-napkin-track-your-changes/#comments</comments>
		<pubDate>Mon, 28 May 2007 14:04:17 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Pivotal Tips]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/05/28/better-than-a-napkin-track-your-changes/</guid>
		<description><![CDATA[As Pivotal Customizers, we all love the feature of Transporter that allows us to easily transport changes at the element level from one BM to another. Even for some of us, building a transporter file is part of their day to day life. When creating a transporter file, first, we need to know which elements [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=22&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As Pivotal Customizers, we all love the feature of Transporter that allows us to easily transport changes at the element level from one BM to another. Even for some of us, building a transporter file is part of their day to day life.  </p>
<p>When creating a transporter file, first, we need to know which elements to be included to the transporter file and make sure we are not missing anything. Some people keep track their changes on a napkin or their journal, just use their memory to remember, or run the script below to get all the changes automatically. The choice is yours. </p>
<p>Here is the script to keep track the changes since certain date &#8211; it&#8217;s not not complete, however I found it is good enough for Active Access Development.</p>
<p><a href='http://crmarchitect.files.wordpress.com/2007/05/bmchangessince.doc' title='BMChangesSince'>BMChangesSince</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=22&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/05/28/better-than-a-napkin-track-your-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>Using client script to host xml configuration</title>
		<link>http://crmarchitect.wordpress.com/2007/05/16/using-client-script-to-host-xml-configuration/</link>
		<comments>http://crmarchitect.wordpress.com/2007/05/16/using-client-script-to-host-xml-configuration/#comments</comments>
		<pubDate>Wed, 16 May 2007 20:44:43 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Pivotal Tips]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/05/16/using-client-script-to-host-xml-configuration/</guid>
		<description><![CDATA[To make an appserver rule configurable, we often need to store some parameters as a separate xml file. The only problem with this approach is that we have to remember to copy the xml file to the (production) server. In Pivotal, the more practical way to store the configuration is to host the xml string [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=13&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To make an appserver rule configurable, we often need to store some parameters as a separate xml file. The only problem with this approach is that we have to remember to copy the xml file to the (production) server. </p>
<p>In Pivotal, the more practical way to store the configuration is to host the xml string inside a client script. Since the client script is part of the BM, it will always be available and there is no special deployment required.</p>
<p>Below is the example on how to retrieve xml configuration from a client script. </p>
<div style="font-family:Courier New;font-size:8pt;color:black;background:white;">
<pre style="margin:0;"><span style="color:blue;">&lt;?</span><span style="color:maroon;">xml</span><span style="color:blue;"> </span><span style="color:red;">version</span><span style="color:blue;">=</span>"<span style="color:blue;">1.0</span>"<span style="color:blue;"> </span><span style="color:red;">encoding</span><span style="color:blue;">=</span>"<span style="color:blue;">utf-8</span>"<span style="color:blue;">?&gt;</span></pre>
<pre style="margin:0;"><span style="color:blue;">&lt;</span><span style="color:maroon;">config</span><span style="color:blue;">&gt;</span></pre>
<pre style="margin:0;"><span style="color:blue;">&nbsp; &lt;</span><span style="color:maroon;">logging</span><span style="color:blue;"> </span><span style="color:red;">logFile</span><span style="color:blue;"> = </span>"<span style="color:blue;">D:\PivotalLog.txt</span>"<span style="color:blue;"> </span><span style="color:red;">logLevel</span><span style="color:blue;"> = </span>"<span style="color:blue;">2</span>"<span style="color:blue;">&gt;</span></pre>
<pre style="margin:0;"><span style="color:blue;">&nbsp; &lt;/</span><span style="color:maroon;">logging</span><span style="color:blue;">&gt;</span></pre>
<pre style="margin:0;"><span style="color:blue;">&lt;/</span><span style="color:maroon;">config</span><span style="color:blue;">&gt;</span></pre>
</div>
<p><em>Fig. Sample of XML Configuration hosted as a client script</em></p>
<div style="font-family:Courier New;font-size:8pt;color:black;background:white;">
<pre style="margin:0;"><span style="color:blue;">string</span> ClientScriptMapping = <span style="color:maroon;">"CMS_Config"</span>;</pre>
<pre style="margin:0;"><span style="color:blue;">string</span> mapping = </pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; m_pivotalSystem.ClientScripts[ClientScriptMapping].Text;</pre>
<pre style="margin:0;"><span style="color:blue;">string</span> logSettingString = </pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; <span style="color:blue;">string</span>.Empty;</pre>
<pre style="margin:0;">&nbsp;</pre>
<pre style="margin:0;"><span style="color:blue;">try</span></pre>
<pre style="margin:0;">{</pre>
<pre style="margin:0;">&nbsp;</pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; <span style="color:teal;">XmlDocument</span> xd = <span style="color:blue;">new</span> <span style="color:teal;">XmlDocument</span>();</pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; xd.LoadXml(mapping);</pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; <span style="color:blue;">string</span> xPathString = <span style="color:maroon;">"/config/logging"</span>;</pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; <span style="color:teal;">XmlNode</span> xNode = xd.SelectSingleNode(xPathString);</pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; logFile = xNode.Attributes[<span style="color:maroon;">"logFile"</span>].Value;</pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; logSettingString = xNode.Attributes[<span style="color:maroon;">"logLevel"</span>].Value;</pre>
<pre style="margin:0;">&nbsp;&nbsp;&nbsp; logSetting = (<span style="color:teal;">LogLevel</span>)<span style="color:teal;">Convert</span>.ToUInt16(logSettingString);</pre>
<pre style="margin:0;">}</pre>
</div>
<p><em>Fig. .NET ASR to retrieve xml string a client script</em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=13&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/05/16/using-client-script-to-host-xml-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>Migration: Using rsp_tablename_update_formulas</title>
		<link>http://crmarchitect.wordpress.com/2007/04/13/migration-calculate-formula-fields-using-rsp_tablename_update_formulas/</link>
		<comments>http://crmarchitect.wordpress.com/2007/04/13/migration-calculate-formula-fields-using-rsp_tablename_update_formulas/#comments</comments>
		<pubDate>Fri, 13 Apr 2007 16:56:14 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Migration]]></category>
		<category><![CDATA[Pivotal Tips]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/04/13/migration-calculate-formula-fields-using-rsp_tablename_update_formulas/</guid>
		<description><![CDATA[One thing we are missing when doing migration with direct sql approach is that all table level formulas will not be automatically calculated. In the past we must reproduce the code inside our migration script to handle all formulas manually. To help the performance, Pivotal automatically generates a bunch of stored procedures inside the ED [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=12&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One thing we are missing when doing migration with direct sql approach is that all table level formulas will not be automatically calculated. In the past we must reproduce the code inside our migration script to handle all formulas manually.</p>
<p>To help the performance, Pivotal automatically generates a bunch of stored procedures inside the ED with the following format <em>rsp_tablename_update_formulas</em>. Most of them have only three parameters:</p>
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">@recordId <span style="color:#0000ff;">binary</span> (8)
@CurrentUserId <span style="color:#0000ff;">binary</span>(8)
@CurrentUserName <span style="color:#0000ff;">varchar</span>(255) </pre>
</div>
<p>These stored procedures, we can use it out-of-the-box by calling it inside our migration script.</p>
<p>Unfortunately, for more complex formulas such as the ones with date related, soundex etc, Pivotal platform decided to do the calculation at the application level and pass the calculated values the stored procedures as additional parameters such as @P1, @P2, etc.</p>
<p>The beauty with this approach is, we only need to re-code the application level formulas and leave most of the calculation to the Pivotal auto generated stored procedures.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=12&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/04/13/migration-calculate-formula-fields-using-rsp_tablename_update_formulas/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
		<item>
		<title>Migration: Generate Pivotal ID in SQL 2005</title>
		<link>http://crmarchitect.wordpress.com/2007/04/11/migration-generate-pivotal-id-in-sql-2005/</link>
		<comments>http://crmarchitect.wordpress.com/2007/04/11/migration-generate-pivotal-id-in-sql-2005/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 13:37:49 +0000</pubDate>
		<dc:creator>judam</dc:creator>
				<category><![CDATA[Migration]]></category>
		<category><![CDATA[Pivotal Tips]]></category>

		<guid isPermaLink="false">http://crmarchitect.wordpress.com/2007/04/11/migration-generate-pivotal-id-in-sql-2005/</guid>
		<description><![CDATA[Below is the sample code on how to generate Pivotal ID using the new ROW_NUMBER() feature in SQL 2005. USE AdventureWorksLT GO DECLARE @Last_Id AS BINARY(8) SELECT @Last_Id = Last_Id_Value FROM CMS59_ED.dbo.RSys_Last_Id WHERE Table_Name = 'Contact' SELECT CAST( CONVERT(bigint, @Last_Id) + ROW_NUMBER() OVER(ORDER BY CustomerID) AS Binary(8)) AS Contact_Id, * FROM SalesLT.Customer<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=11&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Below is the sample code on how to generate Pivotal ID using the new ROW_NUMBER() feature in SQL 2005.</p>
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">
<div>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">USE</span> AdventureWorksLT
<span style="color:#0000ff;">GO</span>
<span style="color:#0000ff;">DECLARE</span> @Last_Id <span style="color:#0000ff;">AS</span> <span style="color:#0000ff;">BINARY</span>(8)

<span style="color:#0000ff;">SELECT</span>
    @Last_Id = Last_Id_Value
<span style="color:#0000ff;">FROM</span> CMS59_ED.dbo.RSys_Last_Id
<span style="color:#0000ff;">WHERE</span> Table_Name = <span style="color:#006080;">'Contact'</span>

<span style="color:#0000ff;">SELECT</span>
    <span style="color:#0000ff;">CAST</span>(
    <span style="color:#0000ff;">CONVERT</span>(bigint, @Last_Id) + ROW_NUMBER()
    <span style="color:#0000ff;">OVER</span>(<span style="color:#0000ff;">ORDER</span> <span style="color:#0000ff;">BY</span> CustomerID)
    <span style="color:#0000ff;">AS</span> <span style="color:#0000ff;">Binary</span>(8)) <span style="color:#0000ff;">AS</span> Contact_Id,
    *
<span style="color:#0000ff;">FROM</span> SalesLT.Customer</pre>
</div>
</pre>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/crmarchitect.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/crmarchitect.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/crmarchitect.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/crmarchitect.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/crmarchitect.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/crmarchitect.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/crmarchitect.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/crmarchitect.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/crmarchitect.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/crmarchitect.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/crmarchitect.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/crmarchitect.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/crmarchitect.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/crmarchitect.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/crmarchitect.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/crmarchitect.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=crmarchitect.wordpress.com&amp;blog=973113&amp;post=11&amp;subd=crmarchitect&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://crmarchitect.wordpress.com/2007/04/11/migration-generate-pivotal-id-in-sql-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8cbec8868aeefedbb59d5229faee90f6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">judam</media:title>
		</media:content>
	</item>
	</channel>
</rss>
