We would like to put our business definition of the objects into the description box. Instead of copy then paste from an excel document one by one, is there any faster way? Is it possible to import the definition from excel to BO?
I don’t know if you can use the SDK for this, but that’s one option.
Another option would be unsupported… meaning export your universe to the repository, and then use SQL to match (based on Object Name or Select clause) the Definitions, and have that added to each object (via SQL).
I think the SDK only provides a read-only access to description… I havent played enough with the universe side of the SDK so I could be wrong but this was my impression on first glance…
Reema: do you have some code you can share? I’ve played around with the idea enough to know that it would work, just haven’t had the time to complete the code…
An ex-coworker of mine did this with a program he wrote. Sorry, I do not have access to the code, it was in a very proprietary language. I do know that he used information generally availible about the repository ( mainly managero, I think) to read the descriptions from one location and store them in the repository. He had to have used the table.feild that the object referenced, because the object names were changed and it still worked. Hope this helps.
That’s how I was going about it. Made it as far as determining that it was possible, then quit. One of many things on the back burner at the moment.
What I do have is some PL/SQL that does the work directly in the repository. Which, as we all know, is not supported. And since it’s PL/SQL, it only works for Oracle.
This sounds like a great project to get posted to the SDK Code Samples area… (hint hint to anyone with a spare moment…)
You should be able to write something that updates the UNV_OBJECT_DATA table. Each Object ID in the Universe has a SELECT Statement can can have a HELP statement for the description.
Basically… create a table that contains the ‘SELECT’ object SQL, and the descriptions and insert into the UNV_OBJECT_DATA table where the Select statements match.
The OBJ_DATATYPE can contain either S, W, or H (Select, Where or Help). The Help Rows are just duplicates of the SELECT rows, with the descriptions filled in.
I have found old sample code for testing the object description stuff.
In this code, it is assumed that object select value and description is stored in a database table and then it is used to update the object’s description in a universe for those objects which have the same select value.