Bug using list and treeset

I have a real world problem where I get a list of retail store location and get the distance from group of starting locations and find the 10 closest location for each starting locations. I get returned from getdata a list of stores loop through each store and calculate the distance and put them in a treeset for sorting. Problem is when the second set of data is added to the treeset the original set is replace with a duplicate set of the second set. a very simple test case for this is follows:
package treeset;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.TreeSet;
import java.io.Serializable;
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Class TreeSetExample
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* The TreeSetExample demonstreates a odity in the sorting of list using a treeset
* @version 1.0, 04/06/2011
* @author  Douglas Nelson
* @author  copyright Oracle 2011
* @author  Unauthorized use, duplication or modification is strictly prohibited.
public class TreeSetExample extends Object {
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// start constructor
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* Constructs a TreeSetExample object
public TreeSetExample() {
} // end constructor
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// start getData
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* getDatea
public List<SimpleVO> getData() {
   List<SimpleVO> returnList = new LinkedList<SimpleVO>();
   SimpleVO simpleVO = null;
   for (int i = 0;i < 5;i++) {
      returnList.add(new SimpleVO());
   } // end for
   return(returnList);
} // end getData
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// start runTest
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* runTest - Test the insert sorting of a tree set with a list of data
* @param loopCount number of time to load data into the saveset
public void runTest(int loopCount) {
   List<SimpleVO>    simpleList   = getData();
   SimpleVO          simpleVO     = null;
   TreeSet<SimpleVO> saveSet      = new TreeSet<SimpleVO>(new simpleComparator());
   SimpleVO          tempSimpleVO = null;
   Iterator<SimpleVO> iterator      = null;
   Iterator<SimpleVO> printIterator = null;
   int id = 0;
   for (int i = 0; i < loopCount;i++) {
      iterator = simpleList.iterator();
   // for each of the user's zip codes find the distance to the RSL
   while (iterator.hasNext()) {
      simpleVO = iterator.next();
      id ++;
      simpleVO.setName("" + id);
      saveSet.add(simpleVO);
   } // end while
   // print saveset at the end of each load
   System.out.println("list count after loop [" + (i + 1) + "] number of elements = [" + saveSet.size() + "] contents:");
   printIterator = saveSet.iterator();
   while(printIterator.hasNext()) {
      tempSimpleVO = printIterator.next();
      System.out.println(" save simpleVO name = [" + tempSimpleVO.getName() + "]");
   } // end while
   } // end For
} // end runTest
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// start main
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* IbotMailParser main thread
* @param arg standard main input string array.
public static void main(String[] arg) {
   System.out.println("Main - Started");
   try {
      System.out.println("*************** starting test 1 *********************");
      TreeSetExample treeSetExample = new TreeSetExample();
      treeSetExample.runTest(1);
      System.out.println("\n");
      System.out.println("\n");
      System.out.println("*************** starting test 2 *********************");
      treeSetExample.runTest(2);
   } // end try
   catch (Exception any) {
      System.out.println("Exception [" + any.getMessage() + "]");
   } // end catch
   System.out.println("Main - we gone bye-bye...!");
} // end main
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Class SimpleVO
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* The SimpleVO is a value object pattern used for this example
* @version 1.0, 04/06/2011
* @author  Douglas Nelson
* @author  copyright Oracle 2011
* @author  Unauthorized use, duplication or modification is strictly prohibited.
public class SimpleVO extends Object {
    * Default user name for Oracle connection.
   private String name = "";
   //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   // start getName
   //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    * Returns the name value associated with this attribute
    * @return String - the Name parameter
   public String getName() {
      return(name);
   } // end getName
   //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   // start setName
   //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    * Sets the name value for this attribute
    * @param newName the Name to be set
   public void setName(String newName) {
      if (newName != null) {
         name = newName.trim();
      } // end if
   } // end setName
} // end SimpleVO
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Class simpleComparator
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
* The SimpleComparator is a comparator object used for sorting simple value objects
* @version 1.0, 04/06/2011
* @author  Douglas Nelson
* @author  copyright Oracle 2011
* @author  Unauthorized use, duplication or modification is strictly prohibited.
public class simpleComparator implements Comparator<SimpleVO>, Serializable {
   //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   // start getName
   //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    * Returns the name value associated with this attribute
    * @return String - the Name parameter
   public int compare(SimpleVO simpleVO_1, SimpleVO simpleVO_2) {
      return(1);
   } // end compare
} // end SimpleComparator
} // end class TreeSetExample
output :
c:\treeset>java treeset.TreeSetExample
Main - Started
*************** starting test 1 *********************
list count after loop [1] number of elements = [5] contents:
save simpleVO name = [1]
save simpleVO name = [2]
save simpleVO name = [3]
save simpleVO name = [4]
save simpleVO name = [5]
*************** starting test 2 *********************
list count after loop [1] number of elements = [5] contents:
save simpleVO name = [1]
save simpleVO name = [2]
save simpleVO name = [3]
save simpleVO name = [4]
save simpleVO name = [5]
list count after loop [2] number of elements = [10] contents:
save simpleVO name = [6]
save simpleVO name = [7]
save simpleVO name = [8]
save simpleVO name = [9]
save simpleVO name = [10]
save simpleVO name = [6]
save simpleVO name = [7]
save simpleVO name = [8]
save simpleVO name = [9]
save simpleVO name = [10]
Main - we gone bye-bye...!
Edited by: EJP on 7/04/2011 10:44: added code tags. Please use them.

user12607386 wrote:
I have a real world problem where I get a list of retail store location and get the distance from group of starting locations and find the 10 closest location for each starting locations. I get returned from getdata a list of stores loop through each store and calculate the distance and put them in a treeset for sorting. Problem is when the second set of data is added to the treeset the original set is replace with a duplicate set of the second set. a very simple test case for this is follows:Well, first off, when you post code, please put it in '' tags; but the basic problem is your[code]simpleVO.setName("" + id);[/code]line. A name should normally be *final*, so you shouldn't be able to set it at all.
When you add the second set of 5 to your Set, you're simply changing the name of the first 5 you just added, but since your Comparator doesn't actually do anything useful, it allows the second 5 to be added, which, of course, then show up as duplicates.
My advice: +THINK+ about what you want to do; don't just sit down and code. If need be, get out a pencil and paper and write out in English the steps you need.
Winston                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Getting StorageManagementInformation using Lists and Libraries

    Good morning,
    I am using SPSite.StorageManagementInformation to get the size used for my sites. The idea I have is calling this method twice with an accurate number on the limits due to the bad performance this method have (the first call will be run
    with SPSite.StorageManagementInformationType.DocumentLibrary and the second one with SPSite.StorageManagementInformationType.DocumentLibrarySPSite.StorageManagementInformationType.List).
    Now my question is: what is a list and what is a library? I have run these two methods with a high value for testing and, for example, for Document Libraries I get the next template Ids: 101, 113,114,116,121,122,123 and 851.
    I would like to query every list in my SPSite and increase the counter depending on if it is a List or a Library (screenshots attached).
    Thanks in advance

    Hi,
    If you want to know how to check if ListTemplateType is list or library, the following code snippet for your reference:
    using (SPSite site = new SPSite("http://sp2013sps:8080"))
    SPWeb web = site.OpenWeb();
    int libsCount = 0;
    int listsCount = 0;
    foreach (SPList list in web.Lists)
    if (list.BaseType == SPBaseType.DocumentLibrary)
    libsCount++;
    else
    listsCount++;
    Console.WriteLine(libsCount+"|"+listsCount);
    Console.ReadKey();
    Best Regards,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using lists and fileio

    I hope I haven't missed the solution to this in searching, I
    apologise if I have.
    I'm saving some basic user details from my projector (DMX
    2004, PC) using fileio and the saving bit works fine. What I was
    aiming to do was construct a list and then put this out to a file,
    so.
    pDetails = ["Forename", "Surname"] -- and so on
    userdets = new (xtra "fileio")
    setFilterMask (userdets,"Text Files, *.txt")
    filename = userdets.displaySave("Save your details to...",
    "userdets.txt")
    createfile (userdets, filename)
    openfile (userdets, filename, 2)
    writeString (userdets, string(pDetails))
    userdets.closeFile()
    This works fine - examining the saved text file it contains
    ["Forename", "Surname"] (obviously this data is actually provided
    from text input). However, when I try and read the file in,
    Director treats it as a string and encloses the whole thing in
    quotes so in
    pDetails = userdets.readFile()
    pDetails comes in as "["Forename", "Surname"]" which I then
    can't read as a list.
    So... is there either a readfile method that specifies the
    data is a list, or is there a better way to store this data full
    stop? I'm able to get it working by simply storing a string using
    delimiters (i.e. the saved file contains just Forename, Surname and
    is brought in as "Forename, Surname") but I'd really like to use a
    list so I can make it a property list in the final version.
    Am I making any sense? :)
    Jon

    The best solution is to store each item in your list as a
    separate line
    in the text file. This will get you around the list in a
    string dilemma.
    Try this:
    pDetails = ["Forename", "Surname"] -- and so on
    totalItems = pDetails.count
    repeat with i = 1 to totalItems
    myString = myString & pDetails
    & RETURN
    end repeat
    delete myString.line[myString.line.count]
    userdets = new (xtra "fileio")
    setFilterMask (userdets,"Text Files, *.txt")
    filename = userdets.displaySave("Save your details to...",
    "userdets.txt")
    createfile (userdets, filename)
    openfile (userdets, filename, 2)
    writeString (userdets, myString)
    userdets.closeFile()
    Then to get your data back, do something like this:
    pDetails = userdets.readFile()
    tempList = []
    totalLines = pDetails.line.count
    repeat with n = 1 to totalLines
    if value(pDetails.line[n]) = VOID then
    totalLines.add(pDetails.line[n])
    else
    totalLines.add(value(pDetails.line[n]))
    end if
    end repeat
    pDetails = tempList
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Microsoft Project 2010 Error/Bug Using Filters and AutoFilters

    Dear Community Members/Team,
    I came across an error/bug while using Filter and AutoFilter options in Microsoft Project 2010. The details are as under:
    I have an MS Project 2010 file which has total 3049 activities (IDs).
    The linking process (predecessors and successors) is almost complete.
    In MS Project 2010 software console, in the bottom left most corner, I have right clicked and enabled the options of "Filter" and "AutoFilter".
    In the "View" tab located at top console, I have selected "[No Filter] against the "Filter" icon. Also, from the drop down arrow against the "Filter"
    icon, I have enabled "Display AutoFilter". As a result I can see drop down arrows in front of all columns displayed in the file.
    I have displayed columns "Duration", "Start", "Finish", "Total Slack", etc.
    I used the drop down arrow appearing in front of "Total Slack" column, and I can see some options. At the bottom I can see all the "Total Slack" values with
    scroll option available and all the boxes here are checked. I remove the check box in "Select All" field and manually select any random value such as "-11.17 wks".
    To my surprise, some values when selected, they are displayed correctly with the relevant activities shown. However some of the values which I select are not appearing and the relevant
    activities are not shown and only empty rows are shown. So I use "Clear Filter" and try some other option.
    Now, to find those activities, I have to click on the drop down arrow in front of "Total Slack" column, Go to "Filters", and select the last option "Custom".
    Now I select show rows where Total Slack "equals" and I select any value from drop down arrow appearing in front of "equals", I can see all those values of "Total Slack" and I randomly select the same value for e.g. "-11.17
    wks". This time the relevant activity is displayed correctly which was not shown by using the above method of selecting a certain value by selecting a check box from drop down arrow appearing against any column.
    I hope to have a response from the community.
    Regards,
    Usman

    Hi Usman,
    Strangely we are having the exact same discussion with another member here:
    https://social.technet.microsoft.com/Forums/projectserver/en-US/0ae3530f-6760-4ef9-afd9-6028258a490e/autofilter-feature-malfunctioning?forum=projectprofessional2010general
    Please go through this thread and tell us if it brings some light. Particularly try with a brand new file to reproduce the error. It could see the error on Ahmad's file, but couldn't reproduce it on a brand new file.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Tab distance in Pages when using List and Tab

    Has anyone else noticed that sometime in the last update or 2 that the distance the TAB shortcut, or the --> arrow (under Inspector>List) moves the cursor is double the distance it used to be?
    The reason I noticed is because I have a few reports on there, and was working on them today, but I can't match the tab distance anymore. Is there a way to adjust how far --> moves the cursor, _WITHOUT setting tab_ stops on the ruler? I want to use --> from the List menu, not the TAB button.
    I noticed that if you select Bullet from the list menu the tab distance is the same as it used to be for ALL the List options, but it's only when you select None that it is double. (it used to be the same as the Bullet tab distance).
    Does anyone know how to adjust this, or work around it? Using Tab doesn't provide the formatting I need, so _setting tab stops doesn't help_. I don't want to create bullets and then re-color them white either!

    Realized my flaw... Those documents originated on the computer (which I forgot) - that is why I couldn't get the tabs to match. My mistake!

  • Is there a known bug using IE8 and trying to Export an FDM map to Excel?

    I'm using 11.1.2 and keep getting an error message.

    Nicely written Tony.
    OP, sounds like a browser issue (which is documented in the readme's/install guides/...)
    First ensure FDM URL you are visiting is setup as trusted.
    Second set these settings:
    Tools / Internet Options / Security / Trusted Sites / Custom Level
    Use Pop-Up Blocker: Off
    Downloads / Automatic Prompting: Enable
    Downloads / File Download: Enable
    Allow Script initiated windows without ... : Enable
    Regards,
    John A. Booth
    http://www.metavero.com
    Edited by: Jbooth on May 14, 2011 2:58 PM

  • Using the tab key in a list and keeping a table format when copying and pas

    when I transfer a table from a microsoft word document or PDF file to the pages document, it does not keep the table and only the data inside the table. how do I keep the table?
    Also, how do I keep the numbers from indenting when I do a list. for example, if I need to indent part of the sentence for writing specifications of something, I want to use the tab key to move away from the first part of the sentence, but it moves everything and not just my marker.

    Not if it decides the list is a list, it can't.
    The app never "decide that a list is alist". It does what you ask it to do.
    Of course, if you refuse to disable the preference which automatically treats a paragraph as a new list entry I can't help you.
    If the datas are stored as a list, the bullets are not part of the datas themselves so they will not be copied.
    As I already responded the "Copy" tool doesn't copy attributes.
    We have to choose:
    we are using lists and the bullets can't be copied
    or
    we are using text arranged in columns and, if we put bullets, these bullets may be copied.
    It's not me which wrote:
    +In Textedit, it's very easy:+
    +Tab, Bullet, First Column, Tab (or Tab x2 to get everything aligned), Second Column, etc.+
    To do the same thing in Pages
    Bullet, Tab, First Column, Tab (or Tab x2 to get everything aligned), Second Column, etc.
    It's what was displayed in my screenshot and really I don't see what is more complicated.

  • How to use List within javaFX(*.fx) script?

    How to use java.util.List within javaFX(*.fx) script?
    The following is my code in Java
    PDBFileReader pdbreader = new PDBFileReader();
              pdbreader.setPath("/Path/To/PDBFiles/");
              pdbreader.setParseSecStruc(true);// parse the secondary structure information from PDB file
              pdbreader.setAlignSeqRes(true);  // align SEQRES and ATOM records
              pdbreader.setAutoFetch(true);    // fetch PDB files from web if they can't be found locally
              try{
                   Structure struc = pdbreader.getStructureById(code);
                   System.out.println("The SEQRES and ATOM information is available via the chains:");
                   int modelnr = 0 ; // also is 0 if structure is an XRAY structure.
                   List<Chain> chains = struc.getChains(modelnr);
                   for (Chain cha:chains){
                        List<Group> agr = cha.getAtomGroups("amino");
                        List<Group> hgr = cha.getAtomGroups("hetatm");
                        List<Group> ngr = cha.getAtomGroups("nucleotide");
                        System.out.print("chain: >"+cha.getName()+"<");
                        System.out.print(" length SEQRES: " +cha.getLengthSeqRes());
                        System.out.print(" length ATOM: " +cha.getAtomLength());
                        System.out.print(" aminos: " +agr.size());
                        System.out.print(" hetatms: "+hgr.size());
                        System.out.println(" nucleotides: "+ngr.size()); 
              } catch (Exception e) {
                   e.printStackTrace();
              }The following is my code in JavaFX(getting errors)
    var loadbtn:SwingButton = SwingButton{
        text:"Load"
        action: function():Void{
            var pdbreader = new PDBFileReader();
            var structure = null;
            try{
                structure = pdbreader.getStructure(filepath.text);
                List<Chain> chains = structure.getChains(0);
                foreach (Chain cha in chains){
                        List < Group > agr = cha.getAtomGroups("amino");
                        List < Group > hgr = cha.getAtomGroups("hetatm");
                        List < Group > ngr = cha.getAtomGroups("nucleotide");
            } catch (e:IOException) {
                e.printStackTrace();
        };I'm using Netbeans 6.5 with JavaFX
    (PDBFileReader, Chain, Structure etc are classes from my own package, already added to the library folder under the project directory)
    Simply put, How to use List and Foreach in JavaFX?

    We can not use Java Generics syntax in JavaFX. But we can use Java Collection classes using the keyword 'as' for type-casting.
    e.g.
    import java.util.LinkedList;
    import java.util.List;
    import javafx.scene.shape.Rectangle;
    var outerlist : List = new LinkedList();
    var innerlist : List = new LinkedList();
    innerlist.add(Rectangle{
        width: 10 height:10});
    innerlist.add(Rectangle{
        width: 20 height:20});
    outerlist.add(innerlist);
    for (inner in outerlist) {
        var list : List = inner as List;
        for (element in list) {
            var rect : Rectangle = element as Rectangle;
            println("(width, height)=({rect.width}, {rect.height})");
    }

  • What is the transaction code for where used list

    hi,  
                    what is the transaction code for where used list and
               how to retrieve the previous delivery quantity and quantity delivered for a particular material  with reference to both material document number and material number.

    hi,
    there is no transaction code for where-used-list..
    its one of the buttons in application tool bar which if you click will tell you where,in which program or tables etc this object is used.
    to retrieve the previous delivery quantity and quantity delivered for a particular material with reference to both material document number and material number,
    use tables <b>likp lips and mara</b> and use material number and document number in where condtion.
    regards,
    pankaj singh
    <b>**** please mark all helpful answers</b>

  • Using where used list

    Hi eveyone,
    I need to find all the programs that are using a particular field...lets say zname...the only way that I knw is to go se11 and gointo the table where that field is defined...click on the field and do the where used list and then it will give me the list of all the programs where that field is being used...but my question is by doing so will I be able to get the list of all the programs or will I be missing any...because someone told me you might miss on if that field is used in the structure also and then it will not popup the list of the programs where that structure is used...so can you please tell me how can I take care of this.
    Thanks,
    Rajeev

    Where used list of Programs will not provide you with the list of programs where the Data element is not used for type/like declaration.
    Instead you should scan. Remeber giving the program name as Z* if you wish to search in z programs.

  • Bug editing list Items using webpart connections ,group by and inline editing

    Hi Everyone. I came across a bug using out of the box features.
    Let me explain well the details to reproduce the error. I used :
    *2 Lists :
    -List one : the consumer list with two columns : 
    -Number column
    -Choice column
    -List two :
    The sender list with one column :
      -Lookup column to gets the number column on the consumer list
    *A webpart Page
    *2 listviewwebparts in the webpart page
    *Connect webparts to filter by the lookup column/number column
    *Add inline editing in the consumer webpart 
    Till now everything works perfectly, inline editing works fine. Let's add some more view details :
    *Add a group by in the view of the consumer webpart (group by the choice column)
    => Try to edit list items, you will notice that inside a group, inline editing is OK and inside another group it doesnt work!
    If you get the same error, that would be nice to find where is the problem (I already found a similar bug and the problem was the sorting that needs to be in the same way for both connected webparts , ASC or DESC). But this one... ???

    Hi Static,
    According to your description, I create the consumer list and sender list, create a webpart page , add a chioce filter webpart and consumer list webpart. But after I add a group by in the view of the consumer webpart, the inline edit still work fine.
    You can have a look at the blog:
    https://support.office.com/en-ca/article/Connect-a-Filter-Web-Part-to-a-List-View-Web-Part-4f3f6c10-0a1b-479d-8b4d-c4f1bf49bb3f#bms3
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Select list and date picker on one line  -  is this a bug?

    I'm using: Application Express 3.2.0.00.27
    Is the following a bug? If so, how do I get it reported so it will be fixed in a future release of APEX? If not, how do I do it so it ends up the way I want?
    1. create blank page
    2. create html region
    3. create "select list" item (Begin On New Line - Yes, ...Field - Yes, ColSpan - 1, Row Span - 1)
    4. create date picker item (Begin On New Line - No, ...Field - No, ColSpan - 1, Row Span - 1)
    There will be other items displayed in more columns above what I just had you create above. I want the select list and the date picker to display next to each other on same line, so I placed date picker item on same line in same field as select list item.
    HOWEVER... the date picker ends up displayed under the select list item (kind of), instead of next to it on the same line.
    Here's what I get:
    ...................... [Select List Field] Date Picker Label
    Select List Label
    ...................... [Date Picker Field]
    Here's what I want:
    Select List Label [Select List Field] Date Picker Label [Date Picker Field]
    Thanks,
    Steve
    Edited by: sskelton on Aug 3, 2009 11:01 AM
    Edited by: sskelton on Aug 3, 2009 11:02 AM

    Hi Steve,
    I'm not sure if it's the official way, but you could add a post here: Enhancement Request Thread : Post 3.1 - that's what I've been doing :D
    Andy

  • Cant drag and drop from file-roller to nautilus when using List View

    Hi, im using file-roller and i can only use drag and drop feature from file-roller when i use Icon View. If i select List View i cant drag and drop.
    Is that an expected behavior or its a bug? Is there a patch or work around? (File Roller 2.20.1 and Gnome 2.20.2)
    I think its a problem with file-roller cause in my other box, running ubuntu 7.10 i have the same problem, but i can drag and drop from ark even when using List View.
    Thx!

    Well, sorry for the double post, but after a little research i found this is a bug, actually a not yet implemented feature. There is a patch and probably its going to be merged in next version.
    Ill try to apply the patch myself, if it works could the maintainer Jan de Groot put it on the repository?
    Here is the bug: http://bugzilla.gnome.org/show_bug.cgi?id=171655
    Here is the patch: http://bugzilla.gnome.org/attachment.cg … ction=view
    Cya

  • Where does NI hide the full list of bug fixes? and why is it hidden from users?

    So I get an enticing email begging me to try the august 2009 release of LabVIEW. Ok. I'm twitching with anticipation. I'd like to know if several specific bugs are fixed in a new release of a specific module, however. Otherwise I'd prefer to install it some other time when I'm not busy writing dlls to compensate for the bugs that I hope are now fixed. I've been clicking in circles on the NI website trying to find complete information regarding changes and as is entirely far too typical of NI, I only have access to an anemic, watered down version of what should be proper documentation.
    "LabVIEW Readme—Use this file to learn
    important last-minute information about LabVIEW, including installation
    and upgrade issues, compatibility issues, a partial list of bugs fixed
    in the current version of LabVIEW... bla bla bla"
    Where is the full list of bug fixes? I don't care if it isn't spellchecked or if it's sloppy; I just want the information. The readme you provide for the specific module I'm interested in is ridiculously small. I know darned well you must have changed more than what is listed. So what secret vault do I have to burgle to find the full list of bug fixes? Am I just missing an obvious hyperlink?
    - mushroomed
    Message Edited by Root Canal on 08-11-2009 11:29 AM
    global variables make robots angry

    Root Canal wrote:
    Where is the full list of bug fixes? ...
    They are locked-up in the Ivory Tower.
    I have been a LabVIEW Champion for about four years and even after signing NDA's I still can't see the full list.
    Seruously, the full list includes probably millions of bugs that NI finds internally before you and I ever see it.
    The best way to handle your situation is to track the CAR's for your bugs. You can call NI support with the CAR number and they can tell you if the bug was fixed and in which version you will find the fix.
    If it has not been fixed you can contact you rlocal NI rep and ask them to look into it for you. They may be able to tell you in which release the fix is scheduled and bump up the priority of the fix if you make a good arguement.
    Just trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Bug Voice Memo and Smart Play lists

    Hi all,
    I have an iPod Touch 3rd with firmware version 3.2.1 and ITunes 9.0.2
    I´ve just found a weird bug related to smart play lists and Voice Memos.
    If you create a smart play list with the rules 1 and 2 or rules 3 and 4 (described bellow) this list will not sync with your Ipod.
    1-Media kind is not Music
    2-Media kind is Voice Memo
    or:
    3-Media kind is not Voice Memo
    4-Media kind is Music
    For instance, If you create a smart play list with rules 3 and 4 (if you want to listen only to music) the smart play list will not sync with your Ipod.
    It sounds to be an ITunes' bug...
    Does anyone know a work around to this issue?
    Thanks in advance,
    Roger

    Any ideas?
    It sounds to be a bug in Itunes...
    It is very annoying as you can't create a smart play list only with music (excluding Voice memos). For instance, every new voice memo included is automatically added into "Recently added" play list, and it is not possible to include a filter to exclude voice memos within it.
    thanks in advance

Maybe you are looking for