Comments on: Example Oracle Designer API script – query and update all Item prompts that end with a colon https://technology.amis.nl/2005/12/08/example-oracle-designer-api-script-query-and-update-all-item-prompts-that-end-with-a-colon/ Friends of Oracle and Java Thu, 21 May 2015 20:49:51 +0000 hourly 1 http://wordpress.org/?v=4.2.2 By: Amani https://technology.amis.nl/2005/12/08/example-oracle-designer-api-script-query-and-update-all-item-prompts-that-end-with-a-colon/#comment-2660 Thu, 28 Feb 2008 09:08:58 +0000 http://technology.amis.nl/blog/?p=937#comment-2660 Hello,

I’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’s really unappealing. As I’m not an expert in Oracle Repository, I’ve gone through some Oracle reports in order to be able to build the update statement. I’ve decided to read the description from the attributes and place them as columns prompts. I’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 = ‘Folder Name’ — 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 = ‘Folder Name’ — 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’t run the statement, and I’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

]]>