Tutorial “Getting started with Designer SDK”
using System; using Designer; namespace ConsoleApplication1 { class Program { delegate void CleanUpMethod(); static void Main(string[] args) { Application application = new Application(); application.Interactive = false; CleanUpMethod cleanUp = delegate { application.Quit(); }; Console.CancelKeyPress += delegate { cleanUp(); }; // to handle Ctrl+C try { application.Logon("Administrator", "", "localhost", "secEnterprise"); Universe universe = application.Universes.OpenFromEnterprise( "webi universes", "Island Resorts Marketing", false); PrintClasses(universe.Classes, ""); universe.Close(); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } finally { cleanUp(); } } static void PrintClasses(Classes classes, String path) { foreach (Class theclass in classes) { String path2 = path + "/" + theclass.Name; foreach (Designer.Object theobject in theclass.Objects) { if (theobject.HasListOfValues) { Console.WriteLine(path2 + ";" + theobject.Name + ";" + theobject.ListOfValues.Name); } } PrintClasses(theclass.Classes, path2); } } } }
Hi Dmytro,
I would like to develop the tool for personal categories migration from R2 to R3. I don’t know how to proceed, where to start. Can you help me out in this?
LikeLike
i want to uncheck “associate list of values” properties from 3.1 designer for all universes on my server.
how can i disable LOV’s from webi prompt options ?
please help me…im gonna crazy about that 😦
LikeLike
So, you need a code that will import universe, disables LoV for all objects, export it back to CMS?
LikeLike