Due to user rights management we have to sort one univese into different folders; if we update this universe we have to export it into all different folders.
If we have more universes which we have to sort into different folders we might lose overview…
Is there a better way to do this? Is it possible to get a better overview which universe is stored in which folder?
I have some problems using Query Builder… In “Building a Query Statement Step-by-Step” → "1. Choose selection criteria. " I enter Name equals OurUniverse, Query Builder generates “SELECT * FROM CI_INFOOBJECTS WHERE SI_NAME = ‘OurUniverse’” and returns 0 results
I can see “OurUniverse” in the CMC, I can import it…
I can not really help with the sort or overview feature.
If you used a 3rd party tool like Version Manager you could assign every universe/document to one or multiple folders. When ever you publish the document VM takes care of all the work and updates all the copies in the specified folders.
You may even define some of these folders is a way where the users could have different versions if that is ever a requirement.
You can get the CMC folder by SI_Parent_Folder property.
Logically the query to get all folder names for all Universes should be:
Select si_Name From ci_appobjects
Where si_id in (Select SI_PARENT_FOLDER from ci_appobjects where si_kind = ‘Universe’)
But as you can’t run this query, you need to write some lines.
I am not sure where you wish to write this code, but it is achievable using both VBA and SDK.
Here is logical flow for you:
SI_Parent_Folders = Result of “Select SI_PARENT_FOLDER from ci_appobjects where si_kind = ‘Universe’”
Loop
Folder_IDs in SI_Parent_Folders
Unv Folder_Name = Result of "Select si_Name From ci_appobjects Where si_id = <Folder_IDs>"
End Loop
Try to understand the logical query - hope you will get your answer.
It would be enough to write a short SQL in the Query Builder to see how many universes are in the repository and in which folders in the CMC they are stored.
I tried the SQL above, it returned 0 results although there are some universes in our repository…
Where can I get an overview, a list or summary of all these ci_, si_ types?
As I mentioned in my last post - it is just a “Logical” query - you won’t get any result in Query Builder for this. It was just to help you understand.
Options available to you are:
either you write code
execute inner query and gather all SI_PARENT_FOLDER for all Universes and then run second query (main) to fetch Fold names with In condition (like …where si_id in (22620, 22621,…)