<?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: Example Oracle Designer API script &#8211; query and update all Item prompts that end with a colon</title>
	<atom:link href="http://technology.amis.nl/2005/12/08/example-oracle-designer-api-script-query-and-update-all-item-prompts-that-end-with-a-colon/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2005/12/08/example-oracle-designer-api-script-query-and-update-all-item-prompts-that-end-with-a-colon/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=example-oracle-designer-api-script-query-and-update-all-item-prompts-that-end-with-a-colon</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Amani</title>
		<link>http://technology.amis.nl/2005/12/08/example-oracle-designer-api-script-query-and-update-all-item-prompts-that-end-with-a-colon/#comment-2660</link>
		<dc:creator>Amani</dc:creator>
		<pubDate>Thu, 28 Feb 2008 09:08:58 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=937#comment-2660</guid>
		<description><![CDATA[Hello,

I&#039;ve been throught a similar case, where i have to update the prompts for all the columns to be in Arabic rather than in English since we are developing an Arabic application.
The Arabic prompts were input as description for each entity and so were transformed as help or notes by the Design Trasnformer. The prompts, as usual, were derived from the columns names.

This task covers around 312 columns and so I decided to automate this task as it&#039;s really unappealing. As I&#039;m not an expert in Oracle Repository, I&#039;ve gone through some Oracle reports in order to be able to build the update statement. I&#039;ve decided to read the description from the attributes and place them as columns prompts. I&#039;ve reached to the following:

update ci_columns Y
set prompt =
(select SUBSTR(f.txt_text,1,131)
from CI_folder_members a, sdd_folders b, ci_entities c, ci_attributes d, CDI_TEXT f, ci_columns col
where a.folder_reference = b.IRID
and b.name = &#039;Folder Name&#039; -- folder name for our project
and a.MEMBER_OBJECT = c.ID
and d.ENTITY_REFERENCE = c.ID
and f.txt_ref = d.ID
and col.SOURCE_ATTRIBUTE_REFERENCE = d.id
and col.ID = Y.ID)
WHERE Y.ID   IN (SELECT COL1.ID
                 FROM  CI_folder_members a1,
                        sdd_folders b1,
                        ci_entities c1,
                        ci_attributes d1,
                        ci_columns col1
                      WHERE a1.folder_reference = b1.IRID
                      and b1.name = &#039;Folder Name&#039; -- folder name for our project
                        and a1.MEMBER_OBJECT = c1.ID
                        and d1.ENTITY_REFERENCE = c1.ID
                        and col1.SOURCE_ATTRIBUTE_REFERENCE = d1.id);

Still i haven&#039;t run the statement, and I&#039;m not sure if it has any drawbacks or if any other object should be updated too.

what do u think? Do u support the F9/Commit on this query????

Cheers,
Amani]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;ve been throught a similar case, where i have to update the prompts for all the columns to be in Arabic rather than in English since we are developing an Arabic application.<br />
The Arabic prompts were input as description for each entity and so were transformed as help or notes by the Design Trasnformer. The prompts, as usual, were derived from the columns names.</p>
<p>This task covers around 312 columns and so I decided to automate this task as it&#8217;s really unappealing. As I&#8217;m not an expert in Oracle Repository, I&#8217;ve gone through some Oracle reports in order to be able to build the update statement. I&#8217;ve decided to read the description from the attributes and place them as columns prompts. I&#8217;ve reached to the following:</p>
<p>update ci_columns Y<br />
set prompt =<br />
(select SUBSTR(f.txt_text,1,131)<br />
from CI_folder_members a, sdd_folders b, ci_entities c, ci_attributes d, CDI_TEXT f, ci_columns col<br />
where a.folder_reference = b.IRID<br />
and b.name = &#8216;Folder Name&#8217; &#8212; folder name for our project<br />
and a.MEMBER_OBJECT = c.ID<br />
and d.ENTITY_REFERENCE = c.ID<br />
and f.txt_ref = d.ID<br />
and col.SOURCE_ATTRIBUTE_REFERENCE = d.id<br />
and col.ID = Y.ID)<br />
WHERE Y.ID   IN (SELECT COL1.ID<br />
                 FROM  CI_folder_members a1,<br />
                        sdd_folders b1,<br />
                        ci_entities c1,<br />
                        ci_attributes d1,<br />
                        ci_columns col1<br />
                      WHERE a1.folder_reference = b1.IRID<br />
                      and b1.name = &#8216;Folder Name&#8217; &#8212; folder name for our project<br />
                        and a1.MEMBER_OBJECT = c1.ID<br />
                        and d1.ENTITY_REFERENCE = c1.ID<br />
                        and col1.SOURCE_ATTRIBUTE_REFERENCE = d1.id);</p>
<p>Still i haven&#8217;t run the statement, and I&#8217;m not sure if it has any drawbacks or if any other object should be updated too.</p>
<p>what do u think? Do u support the F9/Commit on this query????</p>
<p>Cheers,<br />
Amani</p>
]]></content:encoded>
	</item>
</channel>
</rss>
