<?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>Cogniza &#187; BusinessObjects-SDK</title>
	<atom:link href="http://cogniza.com/wordpress/tag/businessobjects-sdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://cogniza.com/wordpress</link>
	<description>Business-Intelligence Specialists</description>
	<lastBuildDate>Sat, 30 Apr 2011 13:22:21 +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>BusinessObjects SDK: Change a Universe&#039;s Data Connection</title>
		<link>http://cogniza.com/wordpress/2009/11/12/businessobjects-sdk-change-a-universes-data-connection/</link>
		<comments>http://cogniza.com/wordpress/2009/11/12/businessobjects-sdk-change-a-universes-data-connection/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:47:11 +0000</pubDate>
		<dc:creator>Craig Buchanan</dc:creator>
				<category><![CDATA[Business Objects Enterprise]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[BusinessObjects-SDK]]></category>

		<guid isPermaLink="false">http://www.cogniza.com/blog/?p=128</guid>
		<description><![CDATA[Change a Universe&#8217;s Data Connection without using the Universe COM SDK.

'get the Universe infoObjects
Dim universeInfoObject As InfoObject = infoStore.Query("SELECT SI_ID, SI_NAME, SI_DATACONNECTION FROM CI_APPOBJECTS WHERE SI_ID=" &#038; )(1)
'cast InfoObject into a Universe
Dim universe As BusinessObjects.Enterprise.Desktop.Universe = CType(universeInfoObject, Universe)
With universe
    'clear all data connections
    .DataConnections.Clear()
    'add new [...]]]></description>
			<content:encoded><![CDATA[<p>Change a Universe&#8217;s Data Connection without using the Universe COM SDK.<span id="more-128"></span></p>
<p><code><br />
'get the Universe infoObjects<br />
Dim universeInfoObject As InfoObject = infoStore.Query("SELECT SI_ID, SI_NAME, SI_DATACONNECTION FROM CI_APPOBJECTS WHERE SI_ID=" &#038; <info Object Id>)(1)</p>
<p>'cast InfoObject into a Universe<br />
Dim universe As BusinessObjects.Enterprise.Desktop.Universe = CType(universeInfoObject, Universe)</p>
<p>With universe<br />
    'clear all data connections<br />
    .DataConnections.Clear()</p>
<p>    'add new data connection<br />
    .DataConnections.Add(<data Connection Id>)</p>
<p>    'save to repository<br />
    .Save()<br />
End With</p>
<p></data></info></code></p>
]]></content:encoded>
			<wfw:commentRss>http://cogniza.com/wordpress/2009/11/12/businessobjects-sdk-change-a-universes-data-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BusinessObjects SDK: Copy one InfoObject&#039;s File to Another InfoObject</title>
		<link>http://cogniza.com/wordpress/2009/11/12/businessobjects-sdk-copy-one-infoobjects-file-to-another-infoobject/</link>
		<comments>http://cogniza.com/wordpress/2009/11/12/businessobjects-sdk-copy-one-infoobjects-file-to-another-infoobject/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:32:55 +0000</pubDate>
		<dc:creator>Craig Buchanan</dc:creator>
				<category><![CDATA[Business Objects Enterprise]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[BusinessObjects-SDK]]></category>

		<guid isPermaLink="false">http://www.cogniza.com/blog/?p=123</guid>
		<description><![CDATA[Use the BusinessObjects SDK to copy files between two InfoObjects.  This is useful when the source is a 'template' object (e.g. Crystal Report) that will be deployed to one or more targets.]]></description>
			<content:encoded><![CDATA[<p>Use the BusinessObjects SDK to copy files between two InfoObjects.  This is useful when the source is a &#8216;template&#8217; object (e.g. Crystal Report) that will be deployed to one or more targets.<span id="more-123"></span></p>
<p><code><br />
'get the source and target infoObjects<br />
Dim sourceInfoObject As InfoObject = infoStore.Query("SELECT SI_ID, SI_NAME, SI_FILES FROM CI_INFOOBJECTS WHERE SI_ID=" &#038; sourceId)(1)</p>
<p>Dim targetInfoObject As InfoObject =  infoStore.Query("SELECT SI_ID, SI_NAME, SI_FILES FROM CI_INFOOBJECTS WHERE SI_ID=" &#038; targetId)(1)</p>
<p>'get the desired file from FRS<br />
Dim sourceFile As File = sourceInfoObject.Files(1)</p>
<p>'create buffer and size appropriately<br />
Dim buffer As Byte() = new Byte(sourceFile.Size) {}</p>
<p>'copy file to buffer<br />
sourceFile.CopyTo(buffer)</p>
<p>'get the target file from the FRS, using the same index as the source<br />
Dim targetFile As File = targetInfoObject.Files(sourceFile.NthFile)</p>
<p>'copy buffer to target file<br />
targetFile.Overwrite(buffer)</p>
<p>'save to repository<br />
targetInfoObject.Save<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cogniza.com/wordpress/2009/11/12/businessobjects-sdk-copy-one-infoobjects-file-to-another-infoobject/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

