Generally, no. There is a way to get the default objects that are created when you do a “drag and drop” of a table (from right to left) to be in alphabetical order, but that’s it.
In any case, it’s not really considered best practice in universe design. To make the universe as user friendly as possible, objects should be grouped and ordered in business terms … keys / most used at the top, maybe dates together, etc.
It’s the COLUMN_SORT parameter in the universe (Universe Parameters, Parameter tab) … Yes = alphabetical, No = database order. And actually it controls the order that the fields display when adding the table to the structure pane (right hand side). From there, the “drag and drop” will create the objects in the same order.
I know what you are thinking. It’s already too late, my columns are listed in database order! Well, there is a technique that can change those. A bit of a hack, but works well … find it here.
Exactly this was the issue, I am not creating a new universe.
Although I am not that comfortable with the VBA, still will give it a try, and will revert.
Column_Sort was a useful piece of information as well, I was unaware of this.
Is there an issue with simple draging/droping of objects ( or subclasses for that matter) at the left pane of the designer to sort them? I mean suppose I have limited number of objects in a class, which I can sort manually, and say I have a Customer class with the following objects in the below order:
Address
Customer ID
Bank Account
So I tried draging ‘Bank Account’ to drop it between Address and Customer Id, and it seems to have worked, I know its a lot of manual work but is there an issue with the approach?
No issue at all. Actually, that is the most common approach. Unless you are very lucky to have designed the database table in the first place, it is highly unlikely it was designed with “usability order” in mind. Dragging and dropping to get objects in “usable” order is essentially best practice.
Thanks Dwayne.
So the VBA code/Column Sort are just to automate the sorting in a way and to eradicate manual sorting ( dragging/dropping) incase of large number of classes/objects in a universe ?
Thanks again for your inputs…much appreciated.
The VBA code will cause the tables (listed on the right-hand side) to pick up the current COLUMN_SORT setting. Then if you drag and drop the table (from right to left), the default objects will be sorted in the same order as shown in the table. This technique will NOT change the order of any objects ALREADY existing (on the left hand side) in the universe.