Sorting objects in Designer

Hi,
We have created so many objects in the designer.
We want to sort these objects in alphabetical order.Is it possible in BO XI R2.
Thanks,
Indu.

Indu,
The short answer to your question is no, you cannot sort objects, and this is intentional on the part of the creator of the Designer tool.
Working in Designer is a science and an art.  The science portion is understanding the underlying model of the database and bringing in all applicable tables and connections properly.  The art portion is in the presentation to the users as you bring a human touch (the semantic layer) from the database to the user.  Most implementations for presentation of objects is to organize the objects by context (class, sub-class, etc), and to order the objects within its context by "most frequent" or "compelling".  In order to achieve all of this, the person working within Designer must understand the data and the business in order to best serve the user.
I know that this is a long-winded explanation to a simple question, however, sometimes it is best to understand the philosophy behind a software tool's limitation in order to understand how to best use it.  There are some excellent works published independently from Business Objects that address the concepts of semantic layer presentation and overall management of the Business Objects software suite, one such title that comes to mind is Cindi Howson's "BusinessObjects The Complete Reference" (available from fine booksellers).
Thanks,
John

Similar Messages

  • Spatial Objects in Designer

    I have discovered what many before me already know, that Designer (including 8i) does not support Spatial objects. This seems to be related to it not supporting VARRAYS with more than 6 characters worth of precision. Does anybody know when this might be corrected? Will we be waiting weeks or months?

    Indu,
    The short answer to your question is no, you cannot sort objects, and this is intentional on the part of the creator of the Designer tool.
    Working in Designer is a science and an art.  The science portion is understanding the underlying model of the database and bringing in all applicable tables and connections properly.  The art portion is in the presentation to the users as you bring a human touch (the semantic layer) from the database to the user.  Most implementations for presentation of objects is to organize the objects by context (class, sub-class, etc), and to order the objects within its context by "most frequent" or "compelling".  In order to achieve all of this, the person working within Designer must understand the data and the business in order to best serve the user.
    I know that this is a long-winded explanation to a simple question, however, sometimes it is best to understand the philosophy behind a software tool's limitation in order to understand how to best use it.  There are some excellent works published independently from Business Objects that address the concepts of semantic layer presentation and overall management of the Business Objects software suite, one such title that comes to mind is Cindi Howson's "BusinessObjects The Complete Reference" (available from fine booksellers).
    Thanks,
    John

  • Help needed for storing and sorting objects.

    Hello
    I have an assignment and it is to create a guessing game, here is the question,
    In this assignment you are to write a game where a user or the computer is to guess a random
    number between 1 and 1000. The program should for example read a guess from the keyboard, and
    print whether the guess was too high, too low or correct. When the user has guessed the correct
    number, the program is to print the number of guesses made.
    The project must contain a class called Game, which has only one public method. The method must
    be called start(), and, when run it starts the game. The game continues until the user chooses to
    quit, either at the end of a game by answering no to the question or by typing 'quit' instead of a
    guess. After each game has been played, the program is to ask the user for a name and insert this
    together with the number of guesses into a high score list. When a game is started the program
    should print the entire high score list, which must be sorted with the least number of guesses first
    and the most last. Note, the list must be kept as long as the game-object is alive!
    each score also
    consists of the game time. In case there are two high scores with the same number of guesses, the
    game time should decide which is better. The game time starts when the first guess is entered and
    stops when the correct guess has been made. There should also be input checks in the program so
    that it is impossible to input something wrong, i.e. it should be impossible to write an non-numeric
    value then we are guessing a number, the only allowed answers for a yes/no question is yes or no,
    every other input should yield an error message an the question should be printed again.
    I understand how to code most of it, except I am not sure how to store the playerName, playerScore, playerTime and then sort that accordingly.
    I came across hashmaps, but that wont work as the data values can be the same for score.
    Is it only one object of lets say a highScore class, and each time the game finishes, it enters the values into an arrayList, I still dont understand how I can sort the array all at once.
    Should it be sorted once for score, then another array created and sorted again, I dont get it I am confused.
    Please help clarify this.

    Implode wrote:
    We had the arrayList/collections lecture today.
    I asked the teacher about sorting objects and he started explaining hashmaps and then he mentioned another thing which we will only be learning next term, I'm sure we must only use what we have learned.
    How exactly can this be done. I have asked a few questions in the post already.
    ThanksWell, there was probably a gap in the communication. Hash maps (or hash tables, etc.) are instance of Map. Those are used to locate a value by its unique key. Generally, to speed up access, you implement a hashing function (this will be explained hopefully in class). Think of name-value pairs that are stored where the name is unique.
    Contrast this with items that are sorted. Any List can be sorted because its elements are ordered. An ArrayList is ordered, generally, by the order you inserted the elements. However, any List can be given its own ordering via Comparable or Comparator. You can't do this with an ordinary Map. The purpose of a Map is speedy access to the name-value pairs, not sorting. The List likewise has different purposes, advantages, disadvantages, etc. List can be sorted.
    A Map is generally similar to a Set. A Set is a vanilla collection that guarnatees uniqueness of each element (note, not name-value pairs, but simple elements). There is one concrete class of Map that can be sorted, TreeMap, but I doubt your professor was referring to that. The values or the keys can be returned from the Map and sorted separately, but again, I doubt he was referring to that.
    Take a look at the Collections tutorial here on this site or Google one. It is fairly straightforward. Just keep in mind that things (generally) break down into Set, Map and List. There are combinations of these and different flavors (e.g., Queue, LinkedHashMap, etc.) But if you can learn how those three differ, you will go a long way towards understanding collections.
    (Oh, and be sure to study up on iterators.)
    - Saish

  • Can't seem to get sort-object working in powershell widget

    I'm experiencing a bit of exasperation with the powershell widget in SCOM 2012 - go easy on me though, this is my first time posting and I'm a bit of a newbie with powershell.
    Because of the issues with the logical disk space performance widget and multiple disks (if you have 3 disks attached you get 9 results back) I've been trying to adapt a script somebody else wrote (http://blogs.technet.com/b/lukaszr/archive/2014/06/18/how-to-get-nice-logical-disk-state-view-using-powershell-grid-widget.aspx)
    as I want something slightly different.
    My objective is to list the 10 servers with lowest free GB space. The script I've been trying to adapt just lists all disks on all servers.
    Here is my modified version of the script
    $disklist = @()
    $disks = Get-SCOMClass -Name "Microsoft.Windows.Server.LogicalDisk" | Get-SCOMClassInstance
    foreach ($disk in $disks)
    $query = GET-WMIOBJECT –query "SELECT * from win32_logicaldisk where DeviceID = '$disk'" -ComputerName $disk.Path | Select-Object Size, FreeSpace
    $size = $query.Size
    $free = $query.FreeSpace
    $percent = $free / $size
    $pervalue = "{0:P0}" -f $percent
    $sizeGB = "{0:N1}" -f ($size / 1024 / 1024 / 1024)
    $freeGB = "{0:N1}" -f ($free / 1024 / 1024 / 1024)
    $diskobject = $ScriptContext.CreateFromObject($disk, "Id=Id", $null)
    $diskobject["Server"] = $disk.Path
    $diskobject["Drive"] = $disk.Displayname
    $diskobject["FreeG"] = $freeGB
    $diskobject["FreeP"] = $pervalue
    $diskobject["FreeTotal"] = ($freeGB + " / " + $sizeGB)
    $disklist += $diskobject
    $GBdisklist = $disklist | Sort-Object -Property {[float]($_.FreeG)} | select -first 10
    foreach($thing in $GBdisklist) {
    $ScriptContext.ReturnCollection.Add($thing)
    My thinking was to put all the info into one big collection, then sort that by free disk space and select the top 10, then pipe those back into the scriptcontext collection for displaying. It's slightly unwieldy, granted, but works fine in standard powershell
    (after changing the scriptcontext bits), just not the widget!
    It all seems to work, and brings back data, except the data that comes back has clearly not been sorted before having the top 10 selected. It's as if the sort command is completely ignored. I've tried quite a few variations on the script sort/sort-object
    with or without -property in desperation as I seem to be so close, but yet so far.
    Any help would be appreciated!
    Pete.
    Incidentally, this is the script that works perfectly in standard powershell:
    $disklist = @()
    $disks = Get-SCOMClass -Name "Microsoft.Windows.Server.LogicalDisk" | Get-SCOMClassInstance
    foreach ($disk in $disks)
    $query = GET-WMIOBJECT –query "SELECT * from win32_logicaldisk where DeviceID = '$disk'" -ComputerName $disk.Path | Select-Object Size, FreeSpace
    $size = $query.Size
    $free = $query.FreeSpace
    $percent = $free / $size
    $pervalue = "{0:P0}" -f $percent
    $sizeGB = "{0:N1}" -f ($size / 1024 / 1024 / 1024)
    $freeGB = "{0:N1}" -f ($free / 1024 / 1024 / 1024)
    $diskobject = New-Object System.Object
    $diskobject | Add-Member -MemberType NoteProperty -Name "Id" -Value $disk.ID
    $diskobject | Add-Member -MemberType NoteProperty -Name "Server" -Value $disk.Path
    $diskobject | Add-Member -MemberType NoteProperty -Name "Drive" -Value $disk.Displayname
    $diskobject | Add-Member -MemberType NoteProperty -Name "FreeP" -Value "$pervalue"
    $diskobject | Add-Member -MemberType NoteProperty -Name "FreeG" -Value $freeGB
    $diskobject | Add-Member -MemberType NoteProperty -Name "FreeTotal" -Value ($freeGB + " / " + $sizeGB)
    $disklist += $diskobject
    $GBdisklist = $disklist | Sort-Object -Property {[float]($_.FreeG)} | select -first 10
    $GBdisklist | ft

    After hacking the code around massively I've managed to solve the issue with it and made it a lot neater in the process. Still unsure what the issue was, but I think it helps to sort the output of the diskinfo first before starting with any of the info processing
    / scriptcontext adding
    $disklist = @()
    $rawdisks = Get-SCOMClass -Name "Microsoft.Windows.Server.LogicalDisk" | Get-SCOMClassInstance
    foreach ($disk in $rawdisks)
    $diskdetails = GET-WMIOBJECT –query "SELECT * from win32_logicaldisk where DeviceID = '$disk'" -ComputerName $disk.Path | Select-Object PSComputerName, DeviceID, FreeSpace, Size
    $disklist += $diskdetails
    $top10disks = $disklist | Sort-Object -Property FreeSpace | select -first 10
    foreach ($object in $top10disks) {
    $size = $object.Size
    $free = $object.FreeSpace
    $percent = $free / $size
    $pervalue = "{0:P0}" -f $percent
    $sizeGB = "{0:N1}" -f ($size / 1024 / 1024 / 1024)
    $freeGB = "{0:N1}" -f ($free / 1024 / 1024 / 1024)
    $dataObject = $ScriptContext.CreateInstance("xsd://foo!bar/baz")
    $dataObject["Id"] = (($object.PSComputerName).ToString() + ($object.DeviceID).ToString())
    $dataObject["Server"] = ($object.PSComputerName).ToString()
    $dataObject["Drive"] = $object.DeviceID
    #$dataObject["Free GB"] = ($freeGB).ToString("0000.00")
    $dataObject["Free GB"] = ($freeGB).ToString()
    $dataObject["FreeTotal"] = (($freeGB).ToString() + " / " + ($sizeGB).ToString())
    $ScriptContext.ReturnCollection.Add($dataObject)

  • ABAP Object X Design Patterns X Extreme Program

    Hi Evebody,
    I’m postgraduate in Object Oriented Analysis and Programming.
    I’ve been working with ABAP procedural development for two years and I’ve started to work with ABAP Objects has few months.
    I’d like to get deeply knowledge in my development’s skills, could someone tell me if <b>ABAP Object X Designer Patterns X Extreme Program</b> is a good path to follow?
    I’d like to share material and guides about this topic.
    I’ve already bought these books to help me.
    <b>ABAP Objects</b> - H. Keller; Hardcover <i>(Pre-Order)</i>
    <b>Design Patterns Explained</b> - Alan Shalloway
    I’ll be very grateful with any help.

    > And do you think these themes are a great combination
    > for ABAP development?
    Design pattern are very abstract and can be used with any OO programming language. The implementations will differ but the core concepts are always the same.
    XP is an agile development process and can also be used with any programming language.
    Learning what design pattern are and how to use them is very important in my opinion. Most companies expect that you are familiar and have experience with them.
    Extreme Programming (XP) on the other side is different. When I began to explore XP it got me started on how software should be developed in general. Since the concepts behind XP are quite different, it should at least stimulate you to start thinking about how you develop software at the moment and if there might be better ways of doing it.
    If you have only time to study one subject go for the design pattern. You might also consider reading the following books if you want to improve your OO coding skills:
    <a href="http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672/ref=pd_bbs_sr_1/102-4989641-7820932?ie=UTF8&s=books&qid=1173448197&sr=8-1">Refactoring: Improving the Design of Existing Code (a true classic)</a>
    <a href="http://www.amazon.com/Refactoring-Patterns-Addison-Wesley-Signature-Kerievsky/dp/0321213351/ref=pd_bbs_sr_2/102-4989641-7820932?ie=UTF8&s=books&qid=1173448197&sr=8-2">Refactoring to Patterns (Shows how to improve code by introducing design pattern)</a>
    cheers
    Thomas

  • Exception Handling in Object Oriented Design

    I am developing a huge web based project using Object Oriented design and java,srvlets ,jsp etc ,I am using 3-tier archtecture.I dont understand,how i should handle exceptions in my project.ie.If there is some exception in the base modules how should it be handled.What kind of excpetion Structure should i use,How many exception classes should be made etc,
    Can someone help me in this regard

    A couple things I have found to be good practices for exception handling in an n-tier architecture:
    1. Don't expose all the internal exceptions of a tier to the client of the tier. Create a more useful, descriptive set of exceptions (or use the appropriate predefined exceptions) to throw up to the client.
    For example, on one project, we are doing database access among other things in the "service" tier, which is accessed by the web tier. We catch the SQLExceptions, PersistenceExceptions (a custom exception), and others, and throw a more useful exception that the client will know how to handle such as a NoMeasurementResultsException if the client asks for measurement results when we have none.
    2. Chain your exceptions and/or log the root cause in the tier that re-throws a different exception. There is nothing more aggravating than not knowing why, when you are debugging a problem, you are getting a NoMeasurementResultsException when you know that there ARE results in the database.
    Hope these ideas help in your design.
    Cheers,
    Colin

  • Unable to write more than 10 case statements in an object in designer

    unable to write more than 10 case statements in an object in designer
    XI 3.0 and XI 3.1
    Please let me know, any known issues.

    Hi,
    yes this is the limitation you cant write more that 10 case statments but you can reduce the number of time you use the case in your object.
    For ex:
    If you are writing few conditions on one field then you can add the login in one case only.
    case when SAL between 100 and 1000 then 'lowsal'
            when SAL between 1000 and 2000 then 'medsal'
            when sal between 2000 and 3000 then highsal
    else
    case when ...then ....
    else
    end
    end
    by following the above ex you can solve your problem.
    But if you are writing case statement based on dofferent columns then write 10 case statements and remaining conditions you can add at the report level.
    using if else condition.
    Hope this will help you....
    Cheers,
    Ravichandra

  • Where is the Object database designer ?

    Can anyone tell me where i can find Oracle object database designer ?
    Thanks.

    I am also looking for the answer of the same question, "How to
    install and use the Object databse designer"
    I read a french book about UML and Oracle 8i, Its author add on
    his web site at the adress
    http://www.editions-
    eyrolles.com/livres/soutou/modeletypeodd.php3?
    xd=79305aac4c44ae92a44a52f131f8a7fb
    and at the adress
    http://www.editions-
    eyrolles.com/livres/soutou/modeleserverodd.php3?
    xd=79305aac4c44ae92a44a52f131f8a7fb
    the use of ODD but even the author don't know how to install it
    on windows NT/2000

  • Good book on Object Oriented Design?

    Can you recommend a good book on Object Oriented Design with lots of practical examples? I already have:
    http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-Professional/dp/0201633612/ref=sr_1_1?ie=UTF8&qid=1238324375&sr=8-1
    But currently I need a book with a more basic approach.

    corlettk wrote:
    I like Thinking In Java... Also: google for "yawmark's list"TIJ is useless, especially for teaching OO design. It teaches (or tries to) Java as a procedural language.

  • Business Objects Universe Designer access error

    Hi
    I am getting below error when trying to access Business Objects Universe Designer XI 3.1 SP2.
    This application has failed to start because the application configuration is incorrect.Reinstalling the application may fix this problem.
    What would  be the reason and how to over come onthe same please.
    Please do the needful
    Warm Regards
    Amar
    Edited by: Amarnathat on Dec 12, 2011 9:58 AM

    Hi,
    it could be anything
    windows update
    runtime framework update
    patch deployment
    but the warning is pretty clear, start over!   it won't take 1/2 hour to get a nice clean SP04 build or other
    Regards,
    H

  • I'm having problems Sorting Objects

    Hello everyone!
    I'm having problems sorting objects. Here is what I got at moment... I'm trying using "Collections.sort" with objects, and I think my problem is there but I don't know how to do in other way the sorting.
    Some help will be appreciated! Thank you!
    Movie.java
    import java.util.ArrayList;
    public class Movie
             public int itemNum;
             private String title;
             public String director;
             public Movie()
                 itemNum = -1;
                 title = "";
                 director = "";
             public Movie(int itemNum, String title, String director)
                this.itemNum = itemNum;
                this.title = title;
                this.director = director;
             public int getItemNum()
                 return itemNum;
             public String getTitle()
                 return title;
             public String getDirector()
                 return director;
               public void setItemNum(int a)
                  itemNum = a;
             public void setTitle(String b)
                 title = b;
             public void setDirector(String c)
                 director = c;
             public String toString()
                   String MovieInfo = title + "\t" + itemNum + "\t" + director ;
                   return MovieInfo;
    }MovieCollection.java
    import java.util.*;
    public class MovieCollection
        private ArrayList Movies;
         public MovieCollection()
                Movies = new ArrayList();
         public ArrayList getMovies()
                return Movies;
         public void add(Movie aMovie)
                Movies.add(aMovie);
    }MovieCollectionMenu.java
    import java.io.*;
    import java.util.*;
    public class MovieCollectionMenu
              private MovieCollection model;
              public MovieCollectionMenu ()
                   model = new MovieCollection();
            public MovieCollection getModel()
                return model;
             private static Scanner Insert = new Scanner(System.in);
              public static void main (String[] args)
                  MovieCollectionMenu menu = new MovieCollectionMenu();
                   while(true)
                 System.out.println("Movies Menu");
                 System.out.println("");     
                 System.out.println("1 - Add Movie");
                 System.out.println("2 - List Movies");
                 System.out.println("3 - Sort Movies");
                 System.out.println("0 - Exit");
                    System.out.print("\nSelect your option: ");
                 int option = Insert.nextInt();
                      switch(option)
                           case 0:   System.exit(0);break;
                         case 1:   menu.addMovie(); break;
                         case 2:   menu.listMovies(); break;
                         case 3:   menu.sortMovie(); break;
                         default:  System.out.println("Invalid Selection!");
                      System.out.println("\n");
              private void addMovie()
                   Movie aMovie = new Movie();
                System.out.print("\nEnter movie name: ");
                   aMovie.setTitle(Insert.next());
                 System.out.print("Enter number of copies: ");
                aMovie.setItemNum(Insert.nextInt());
                System.out.print("Enter director name: ");
                aMovie.setDirector(Insert.next());
                model.add(aMovie);
            private void listMovies()
                   ArrayList Movies = model.getMovies();
                   for (int i=0; i<Movies.size(); i++)
                        System.out.println(Movies.get(i).toString());
              private void sortMovie()
                 ArrayList Movies = model.getMovies();
                 Collections.sort(Movies);
    }

    JBStonehenge, Melanie_Green, paulcw thank u so much for ur support!!!!
    I did many changes in my code, and I think in a simple way... I can sort the strings, but I'm having problems to sort the integers from the array I created..
    I read a lot of sorting and this was the best I could do, please can you change my code to sort the integers?
    Thank u people!
    Here it is my code:
    import java.io.*;
    import java.util.*;
    public class MyMovies {
         public static void main(String[] args) {
              MyMovies Movies = new MyMovies();
              Movies.runEverything();
         private static final int MAX_SIZE = 100;
         private static int numberOfMovies = 0;
         private static Movie[] array = new Movie[MAX_SIZE];
         public void runEverything(){
              Scanner input = new Scanner(System.in);
              while (true) {
                   Menu();
                   int option;
                   try {
                        option = Integer.parseInt(input.nextLine());
                   } catch (NumberFormatException e) {
                        System.out.println("You must enter a number!");
                        continue;
    switch (option) {
                   case 1:
                        addMovie(input);
                        System.out.println("\nThis movie was added:");
                        printMovie(numberOfMovies - 1);
                        break;               
                   case 2:
                        sortMoviesByTitle();
                        break;
                   case 3:
                        sortMoviesByYear();
                        break;
                   case 4:
                        sortMoviesByDirector();
                        break;
                   case 5:
                        printAllMovies();
                        break;
                   case 6:
                        System.out.println("You logout with success!");
                        input.close();
                        System.exit(0);
                        break;
              default:
                        System.out.println("You entered a wrong option! Please try again.");
                        break;
         private static void Menu() {
              System.out.println("\n1 - Add a movie");
              System.out.println("2 - Sort movies by name");
              System.out.println("3 - Sort movies by year");
              System.out.println("4 - Sort movies by director");
              System.out.println("5 - Display movies");
              System.out.println("6 - Quit");
              System.out.print("\nPlease enter an option:");
              private static void printMovie(int i) {
              if (i < numberOfMovies) {
                   System.out.println("\"" + array.getTitle() + "\", " + array[i].getYear() + ", \"" + array[i].getDirector() + "\"");
         private void printAllMovies() {
              for (int i = 0; i < numberOfMovies; i++) {
                   System.out.print(String.valueOf(i+1) + "-");
                   printMovie(i);
         private static void addMovie(Scanner input) {
              System.out.print("Enter movie:");
              String title = input.nextLine();
              int year = 0;
              while (true) {
                   try {
                        System.out.print("Enter the year of movie:");
                        year = Integer.parseInt(input.nextLine());
                        break;
                   } catch (NumberFormatException e) {
                        System.out.println("You must enter an integer!");
                        continue;
              System.out.print("Please enter the director:");
              String director = input.nextLine();
              array[numberOfMovies] = new Movie(title, year, director);
              numberOfMovies++;
         private void sortMoviesByTitle(){
         boolean swapped = true;
              int i = 0;
              String tempTitle, tempDirector;
              int tempYear;
              while (swapped) {
                   swapped = false;
                   i++;
                   for (int j = 0; j < numberOfMovies - i; j++) {
                        if ( array[j].getTitle().compareToIgnoreCase(array[j + 1].getTitle()) > 0) {   
                             tempTitle = array[j].getTitle();
                             tempYear = array[j].getYear();
                             tempDirector = array[j].getDirector();
                             array[j].setTitle(array[j + 1].getTitle());
                             array[j].setYear(array[j + 1].getYear());
                             array[j].setDirector(array[j + 1].getDirector());
                             array[j + 1].setTitle(tempTitle);
                             array[j + 1].setYear(tempYear);
                             array[j + 1].setDirector(tempDirector);
                             swapped = true;
              System.out.println("The movies are sorted by title.");
         private void sortMoviesByYear(){
         boolean swapped = true;
              int i = 0;
              String tempTitle, tempDirector;
              int tempYear;
              while (swapped) {
                   swapped = false;
                   i++;
                   for (int j = 0; j < numberOfMovies - i; j++) {
                        if ( array[j].getYear().compareToIgnoreCase(array[j + 1].getYear()) > 0) {   
                             tempTitle = array[j].getTitle();
                             tempYear = array[j].getYear();
                             tempDirector = array[j].getDirector();
                             array[j].setTitle(array[j + 1].getTitle());
                             array[j].setYear(array[j + 1].getYear());
                             array[j].setDirector(array[j + 1].getDirector());
                             array[j + 1].setTitle(tempTitle);
                             array[j + 1].setYear(tempYear);
                             array[j + 1].setDirector(tempDirector);
                             swapped = true;
              System.out.println("The movies are sorted by year.");
         private void sortMoviesByDirector(){
         boolean swapped = true;
              int i = 0;
              String tempTitle, tempDirector;
              int tempYear;
              while (swapped) {
                   swapped = false;
                   i++;
                   for (int j = 0; j < numberOfMovies - i; j++) {
                        if ( array[j].getDirector().compareToIgnoreCase(array[j + 1].getDirector()) > 0) {   
                             tempTitle = array[j].getTitle();
                             tempYear = array[j].getYear();
                             tempDirector = array[j].getDirector();
                             array[j].setTitle(array[j + 1].getTitle());
                             array[j].setYear(array[j + 1].getYear());
                             array[j].setDirector(array[j + 1].getDirector());
                             array[j + 1].setTitle(tempTitle);
                             array[j + 1].setYear(tempYear);
                             array[j + 1].setDirector(tempDirector);
                             swapped = true;
              System.out.println("The movies are sorted by director.");
    /* ----- My Movie Class ----- */
    class Movie {
         private String title;
         private int year;
         private String director;
         public Movie(String title, int year, String director) {
              setTitle(title);
              setYear(year);
              setDirector(director);
         public String getTitle() {
              return title;
         public void setTitle(String title) {
              this.title = title;
         public int getYear() {
              return year;
         public void setYear(int year) {
              this.year = year;
         public String getDirector() {
              return director;
         public void setDirector(String director) {
              this.director = director;
    }Edited by: AntiSignIn on Mar 24, 2010 7:30 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Functions applied to BW Objects in Designer

    Hi All,
    I have cubes in BW that I want to Query in Webi
    The structures appears in Designer, and the question is can I apply Functions to the Objects representing the structures?
    With Relational RDBMS, I can use SQL functions, but with BW Queries, I have a message telling me I need to do XML.
    Can I apply functions to the Measures and Dimensions and if yes waht kind of language?
    Many Thanksfor your answers
    Vince

    Hi,
    Since BOE XI3.0 we can create calculated measures in MDX. We also support Designer functions such as @Select, @Prompt and @Variable to enrich the objects definition.
    Olap universes use and generate XML and use MDX for calculated measures.
    I suggest that you have a look on the follwing URLs that give you help on how to cutomize OLAP universes:
    [Link 1|https://wiki.wdf.sap.corp/wiki/display/globalregions/OLAPUniverses-howtosamplesand+recommendations|]
    [Link 2|https://wiki.wdf.sap.corp/wiki/display/globalregions/OLAPuniversesonSAPNetweaverBW-Metadataanddatatypes]
    [Link 3|https://wiki.wdf.sap.corp/wiki/display/globalregions/SAP+Integration|Link 3]
    Didier

  • Business Object Model Design

    Hello Evryone,
    I'm designing a new application for Incident Management.
    There is an existing Incident System But, our application is targeted to end user facility.
    So, we have to use the existing Incident Management system to store and get data, so that Incident can be loaded on booth side.
    We access that datastore using WebServices with DAO Pattern.
    In the existing system, they have Incident Attribute like Status, Alert, Priority,... with Integer as main identifier.
    public class IncidentStatus {
         private int status;
         private String statusStr;
         public IncidentStatus () {
    }In my application, i would like to have a good OO Model.
    So, my idea is to use the Design Pattern "State" and/or "Strategy" for such a attribute.
    So that i would have class/interface such as
    - IncidentStatus (interface)
    - IncidentOpened (impl)
    - IncidentResolved (impl)
    and so on ...
    This involve a class for each case but, isn't it more OO oriented ?
    any comment ?
    Regards,
    Sebastien Degardin

    but do these IncidentStatus objects do anything other than represent the status? if not, I'd be inclined to agree with the other poster about enumerated types. if adding new ones dynamically is your bag, you could opt for having a single IncidentStatus class, and have instances which represent different statuses, described by (for instance) a String
    another question to ask yourself is "how likely is it that I'll need to add a new IncidentStatus?". probably not very often. in any case, if the purpose of the IncidentStatus is merely to indicate status, I'd be looking to have just one class to represent them, and a config file which describes the individual statuses. adding a new one wouldn't even need to involve a programmer

  • Handling shared objects in designer 10g

    I have 2 application dump that i should import in designer 10g. I had imported the first dump with the help of import option present in Restore menu option these contains 11 applications with its own sharing . Then i restored the second dump in the same manner.The second dump has 16 applicaitons .In the first dump i have two applications let us call it A and B .These A and B 's objects are referenced by applications C AND D in second dump and by some of the applications in the first dump itself .Now the issue is these A and B exists in both the dump, while restoring ,i was compelled to change the name of the application so that i can avoid duplication .In this way iam able to import. Hence , i would like to know if there is any methodology to avoid these duplication.

    yes, and no ....
    If you have versioning enabled, then the import will allow you to bring in the second copy of A and B as "new versions of existing elements". But that would imply that you have defined and implemented your version control processes and decided how were using version control / SCM in this repository. Not a simple thing, so .....
    If you have a non-versioned repository, then sorry NO not during import.
    This is because of the way the export was created. When you export you include a complete consistent set of applications that you want to import somewhere. Designer makes sure that you have ALL the elements you need. Thus you have A and B in both those exports.
    The real answer is to export A, B, C, D, and their friends as a single export file -- if what you really want to do is import them all and preserve the sharing.
    One avenue is to check with the odtug.com group / mailing lists. Someone over there may have written current scripts to do a "replace" of all pointers to A' elements with pointers to A elements (((this was part of Designer 6.0 Echo, but not 6i/9i/10g - sorry)))

  • Incompatible Objects in Designer

    Hi,
    I am having 4 Folders(classes) in my Universe, how to set incompatible objects.
    Ex:
    Folder1:
    Folder2:
    Folder3:
    Folder4:
    Compatible folders(combination):
    1-->Folder1 & Folder2
    2-->Folder1 & Folder3
    3-->Folder1 & Folder4
    If i selected one object from Folder2 & another object from Folder3, then it will show incompatible objects
    If i selected one object from Folder3 & another object from Folder4, then it will show incompatible objects
    If i selected one object from Folder2 & another object from Folder4, then it will show incompatible objects
    Please give me solution.
    Thanks,
    N Praveen

    Hi,
    Cause
    This error is caused by any of the following problems in the definition of the universe:
    There are incompatible objects in the universe and the universe designer did not set the option that allows multiple SQL statements for each context.
    There are no contexts in the universe and the query has created a loop.  
    The query objects exclude all possible SQL choices for an aggregate aware function.  
    The universe contains an object which references more than one table on separate contexts.  
    Action
    The universe designer needs to make appropriate modifications to the universe with Designer.
    Detect For Loops Or Aliases in your Universe .
    Check The structure for Folder 2 & Folder 3 Objects (same for other).
    Please Check The Links Below.
    http://www.forumtopics.com/busobj/viewtopic.php?t=93487
    encountered Incompatible combination of objects (QP0004) error!

Maybe you are looking for

  • Need of Process code in ALE Inbound Processing?

    Hi All,   What is the need of process code in ALE Inbound Processing? Why do we need to reach the function module through process code? we can as well directly point to function module.

  • Help with PDF Expert

    So I just downloaded the PDF Expert app. I have a ton of PDF files on my iPad but I can't figure out how to add them to the PDF Expert document folder. The manual has instructions for adding files from everywhere except the iPad you are using. Can so

  • I currently have OS X version 10.5.8 what is my next upgrade?

    I currently have Mac OS X version 10.5.8 - intel processor what should my next upgrade be?  I need to upgrade in order to accommodate my new ipod nano.

  • Variable in path

    How can I use a variable in the path? (I know this is not called the path but I can't think of what it's called). For instance: instead of: this.symbol1.symbol2._height = 800; I want var my_var = "this.symbol1.symbol2"; my_var._height = 800;

  • Devastatingly embarrassed- How to adjust CPU Ratio in CBII

    Guys, Just purchased my first ClickBios II board  (I ALWAYS and ONLY buy MSI products) and Im running into my first unfun experience as a user. Ive been away from the game for about 2 years working in remote Alaska, however, I consider myself an adva