Search function only returns the first entryinstead of 2600

Hi all,
I am using JDNI to search in a iPlanet LDAP. This is the code:
String filter = "(objectclass=TDC-Empleado)";
NamingEnumeration resultados;
SearchControls limitacionesBusqueda=new SearchControls();
limitacionesBusqueda.setSearchScope(SearchControls.SUBTREE_SCOPE);
results = ctx.search("o=TDC",filter,limitacionesBusqueda);
I know with another tool that this filter works but the search function only returns the first entry!!!
Somebody can help me ?
TIA
Manuel

humm.
Sets ctx.setCountLimit(long), or else checks the "size limit" of your iplanet server (size limit: number of entries returned to the client application).
A.V.

Similar Messages

  • API search will only return the first 200 results????

    It seems that I can only retrieve 200 results when using doOracleSimpleSearch api call.
        osr = oses.doOracleSimpleSearch(strSearch, 1, 1000, false, false, true);
        nCount = osr.docsReturned;
        nCount2 = osr.resultElements.Length;
        nCount3 = osr.estimatedHitCount;nCount and nCount2 are both 200.
    nCount3 is 1332
    Ok, no problem. Even though I asked for 1000 results, I figure it will only return 200 at a time, so I write a simple loop.
       while (nTotalResults < nCount3)
          osr = oses.doOracleSimpleSearch(strSearch, nTotalResults + 1, 200, false, false, true);
          nCount = osr.docsReturned;
          nTotalResults += nCount;
       }After executing the search the first time, nTotalResults is set to 200, so I'm now requesting that the search starts at index 201 and to return the next block of 200.
    osr.docsReturned is now = 0
    stuck in infinite loop because it's not returning all my results.
    Update:
    It seems this is not just an API issue. If I do the search through the web interface, and go to page 20 (it's displaying 10 results per page) I see results. But as soon as I go to page 21, the page is blank even though it says there are over 1000 results.
    Edited by: JimG on Feb 15, 2012 5:17 PM

    You need to change the "Maximum Number of Results" from the Admin GUI.
    Go to Global Settings -> Query Configuration, and you'll find it there.

  • Regex and matcher only returns the first match

    Hi all.
    Im trying to rewrite some code and im using a regular expression to grab data out of a css formatted file, but im getting a bit confused. My matcher is only finding the first occurance of my pattern, how do i get it to find all occurances of my pattern?
    here is a sample css file
    .header
    font-family:arial, verdana;
    font-weight:bold;
    color:#ff00ff;
    background-image:url(background.jpg);
    .mainBody
    font-weight: bold;
    color: Red;
    padding 0px;
    }and here is my matcher code
    tstr = tstr.replaceAll("\\\\","/");
    tstr = tstr.replaceAll("\\n","");
    tstr = tstr.replaceAll("\\r","");
    Pattern styleFind=Pattern.compile("^\\.?[\\w\\s\\W]+?\\{.*?\\}",Pattern.DOTALL | Pattern.MULTILINE);
    Matcher styleMatch=styleFind.matcher(tstr);
    while(styleMatch.find())
    System.out.println("[A]"+styleMatch.group());
    }     i thought that if i did while(macther.find) then it would keep looping through finding all of the matches, but it is only finding the first match.
    any ideas what im doing wrong?

    tstr = tstr.replaceAll("\\\\","/");
    tstr = tstr.replaceAll("\\n","");
    tstr = tstr.replaceAll("\\r","");
    Pattern
    styleFind=Pattern.compile("^\\.?[\\w\\s\\W]+?\\{.*?\\}", Pattern.DOTALL | Pattern.MULTILINE);
    Matcher styleMatch=styleFind.matcher(tstr); You do MULTILINE despite the fact that you delete all end of line characters first. The '^' matches only at the very beginning of the input.
    Apart from that I would prefer "[^\\}]" anytime ofer ".*?\\}", because what you want is a shortest match which often turns out not to be the same as a non-greedy match.
    Harald.
    Java Text Crunching: http://www.ebi.ac.uk/Rebholz-srv/whatizit/software

  • BindAggregation only returning the first element from a XML node

    hello everyone,
    investigating on this issue since fiew hours, I need your help (did not find a similar issue).
    here is an xml sample:
    <users>
         <user active="true">
              <reference/>
              <name>
                   <prefix/>
                   <first>first</first>
                   <middle/>
                   <last>last</last>
              </name>
              <location></location>
              <identifier>
                   <domain>mydomain</domain>
                   <login>flast</login>
              </identifier>
              <email>
                   <address>[email protected]</address>
                   <type>text</type>
              </email>
              <roles>
                   <role name="A"/>
                   <role name="B"/>
                   <role name="C"/>
                   <role name="D"/>
                   <role name="E"/>
                   <role name="F"/>
                   <role name="G"/>
              </roles>
              <groups>
                   <group name="A1"/>
                   <group name="A2"/>
              </groups>
         </user>
    </users>
    After having set the data in the table:
    oModel.setData(data);               
    oTable.setModel(oModel);
    oTable.bindRows("/user");
    I am able to bind correctly properties like first name & last name in my table... but I am not able to do a bindAggregate on roles !
    When I do this, only the first role is returned everytime for each row.
    With the example above,
    It displays, : first as firstname, last as lastname, & only role A instead of displaying all roles from A to G as above in the xml.
    Here is the bindAggregation:
    oTable.addColumn( new sap.ui.table.Column({
         label: new sap.ui.commons.Label({text: "Roles"}),
         template: new sap.ui.commons.ListBox({  
              "items": {     
                   path: "roles",
                   template: new sap.ui.core.ListItem({text: "{role/@name}",})
    Where is my misunderstanding/mistake ? or how should I deal for having all roles displayed correctly in the listbox of this column ?
    No proposal ?
    Files (javascript & data) for reproducing this behavior are attached below,
    Really thank's in advance to each of you for your coming help,
    Best Regards

    hello everyone,
    investigating on this issue since fiew hours, I need your help (did not find a similar issue).
    here is an xml sample:
    <users>
         <user active="true">
              <reference/>
              <name>
                   <prefix/>
                   <first>first</first>
                   <middle/>
                   <last>last</last>
              </name>
              <location></location>
              <identifier>
                   <domain>mydomain</domain>
                   <login>flast</login>
              </identifier>
              <email>
                   <address>[email protected]</address>
                   <type>text</type>
              </email>
              <roles>
                   <role name="A"/>
                   <role name="B"/>
                   <role name="C"/>
                   <role name="D"/>
                   <role name="E"/>
                   <role name="F"/>
                   <role name="G"/>
              </roles>
              <groups>
                   <group name="A1"/>
                   <group name="A2"/>
              </groups>
         </user>
    </users>
    After having set the data in the table:
    oModel.setData(data);               
    oTable.setModel(oModel);
    oTable.bindRows("/user");
    I am able to bind correctly properties like first name & last name in my table... but I am not able to do a bindAggregate on roles !
    When I do this, only the first role is returned everytime for each row.
    With the example above,
    It displays, : first as firstname, last as lastname, & only role A instead of displaying all roles from A to G as above in the xml.
    Here is the bindAggregation:
    oTable.addColumn( new sap.ui.table.Column({
         label: new sap.ui.commons.Label({text: "Roles"}),
         template: new sap.ui.commons.ListBox({  
              "items": {     
                   path: "roles",
                   template: new sap.ui.core.ListItem({text: "{role/@name}",})
    Where is my misunderstanding/mistake ? or how should I deal for having all roles displayed correctly in the listbox of this column ?
    No proposal ?
    Files (javascript & data) for reproducing this behavior are attached below,
    Really thank's in advance to each of you for your coming help,
    Best Regards

  • My MacBook pro mid 2012 doesn't seem to have a "save as" function, so I can't seem to save multiple page pdf's together after moving thumbnails into the sidebar. It only saves the first page. I can't figure out the rename function either. Help?

    My MacBook pro mid 2012 doesn't seem to have a "save as" function, so I can't seem to save multiple page pdf's together after moving thumbnails into the sidebar. It only saves the first page.
    I do have a 2008 version of Microsoft Office installed to save money, but that shouldn't affect things. I can't figure out the "rename" function either. Help?

    Oh, and I also reset my NVRAM, my computer hasn't frozen again yet, so I'm not sure if it has made a difference.

  • IQueryable returns 3693 Items but only inserts the first 1000 to dropdown lists

    Hi all,
    I am querying SharePoint to retrieve all the lists of accounts. I can see that I have 3693 account items when I query the results. However when I convert
    this into a lists or insert this as DataSource of a dropdown field, it only takes the first 1000 items of the results. 
    Code preview
    var organisations = from d ....... ; 
    Debug.WriteLine("Results returned.. " + organisations.Count());//3693
    Debug.WriteLine("Results converted to Lists " + organisations.ToList().Count()); //1000
    dropdown.DataSource = organisations; OR dropdown.DataSource = organisations.ToList();
    //only displays the first 1000
    ... code continues
    Am I inserting the data wrong? Help!
    Regards,
    Roldan

    Michael,
    That's very interesting. Here is where I am at the moment, I started doing:
    Code Preview
    var list1 = organisations.Take(1000).ToList();
    var list2 = organisations.Skip(1000).Take(1000).ToList();
    var list3 ... //until all 3693 records has been extracted
    I then enumerated the values inside each lists and voila! I can see the rest of the results. However, doing Take() and ToList() made it really slow. It now takes approximately 2 minutes to display all 3693
    data into the dropdown field. 
    I'm very lost here! I thought doing:
    dropdown.DataSource = organisations; 
    is all I need to display all the data! 

  • Why does recursive query only organize the first item in the subquery?

    Following is my recursive function and it only updates the first two item in my subquery..
    select distinct f.DISPLAY_NAME, f.id,f.parent_id, f.sub_folder_sequence
    from WWSBR_ALL_FOLDERS f, WWSBR_ALL_FOLDERS g start with f.id in
         (select g.parent_id from WWSBR_ALL_FOLDERS e
         where
              e.id = g.parent_id AND
              f.id = g.parent_id AND
              e.caid = 103 AND
    e.parent_id <> 0 AND
    e.type_id = 1 AND
    e.display_in_parent_folder <> 0)
         connect by prior f.id= f.parent_id
    order by f.sub_folder_sequence asc, f.parent_id asc, f.id desc;

    following is my result
    DISPLAY_NAME
    ID PARENT_ID SUB_FOLDER_SEQUENCE
    Home Page
    8981 1 1
    Claims
    9192 8981 1
    Advanced Search
    9168 9163 1
    DISPLAY_NAME
    ID PARENT_ID SUB_FOLDER_SEQUENCE
    Sales Chart
    9187 9173 1
    Search
    9163 1 2
    Sales
    9173 1 3
    6 rows selected.

  • Helpppp! my flash array will only play the first frame

    my flash array will only play the first frame
    this is the code
    stop();
    var t:Timer=new Timer(100,0);
    t.addEventListener(TimerEvent.TIMER,preloadF);
    t.start();   
    var rdmFrame:Array = ["15","150","420","589","712","807","1135"];
    stage.addEventListener(MouseEvent.CLICK, fnClick)
    function fnClick(e:MouseEvent):void
    trace(rdmFrame[numberRange(0, rdmFrame.length)]);
    function preloadF(e:TimerEvent)
        if(this.framesLoaded>7)   
            t.stop();       
            t.removeEventListener(TimerEvent.TIMER,preloadF);       
            t=null;        
            this.gotoAndPlay(numberRange(0, rdmFrame.length - 1));    
    function numberRange(minNum:Number, maxNum:Number):Number
            return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);

    Ned Murphy wrote:
    Your timer function is not using the array, it is just using the random number.  Adapt what you have in the fnClick function.
    Hi Ned ,
    I am a little confused , sorry .. i am not sure what you mean...i am very new at AS3 ...
    I dont even need the click function .. another developer recommended it as a way to track the random action..
    stop();
    var t:Timer=new Timer(100,0);
    t.addEventListener(TimerEvent.TIMER,preloadF);
    t.start();   
    var rdmFrame:Array = [15,150,420,589,712,807,1135];
    function preloadF(e:TimerEvent)
        if(this.framesLoaded>7)   
            t.stop();       
            t.removeEventListener(TimerEvent.TIMER,preloadF);       
            t=null;        
            this.gotoAndPlay(numberRange(0, rdmFrame.length - 1));    
    function numberRange(minNum:Number, maxNum:Number):Number
            return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);

  • Is there a way to create a fade only for the first loop?

    I have a loop (Modern Guitar Rock 04), which I've extended out so it repeats four times. I select the Fade Tool and X-Fade for drag. I then drag just in front of the loop and onto it, which creates a fade. However, this also creates fades at the beginning of the repeating loops. Is there a way to create a fade only for the first loop?

    The loop function always repeats the same region so of course the fade is also copied. So option+drag the original region to make a (non clone) copy, fade the first region and loop the second one (which you just copied).

  • Printer will only print the first document then will do nothing.

    I am running a dell system with windows 7 pro 64 bit.
    I just got an HP LaserJet Pro 400 m401n printer.
    I downloaded the most current drivers for windows and updated the printer from the HP website.
    The printer will let me print the first document after the computer is restarted. Sometimes I can print a second document if I print it back to back with little to no time between printing the first document. If more than a few minutes passes and I try to
    print again the program im using to print enters a "not responding" state and goes into recovery mode. This happens with notepad, excel, word, or even printing directly from the internet.
    I can open the printer properties and see the document just sitting with "spooling" out beside it. I assumed it was a printer spooling problem and tried going to the Services.msc and checking the printer spooler. Ive started it and stopped it several
    times. Ive also gone into %WINDIR%\system32\spool\printers and deleted all files in this folder. This does not help. It still gets hung at spooling.
    Next I just went to printer property and turned the spooling off completely, by having it send the document directly to the printer. Again the exact same problem but instead of getting hung in "spooling" it now just hangs "printing".
    I have also gone to the printer properties on the ports tab to see if disabling the bidirectional support was enabled as per a google search result showing a potential solution. But im connecting the printer directly to the computer via a usb port so that
    option is not even available.
    The only thing that allows me to print again is doing a restart on my computer, then again I can only print the first document sent. Restarting the printer itself does nothing.

    Hi James,
    Did this printer work correctly before ?
    To verify whether it is related to the printer ,please plug it in another machine to have a check if it is possible.
    Considering it is a USB device ,plug in  with another port to have a check or try to update the USB controller driver or reinstall the USB controller driver to have a check.
    Please check whether the Event Viewer contains  errors or warnings related to this issue .
    I found a similar symptom in the HP forum ,the solution in it may be helpful:
    HP LaserJet Pro 400 M401dne print only one page (document)
    (720 Views)
    http://h30499.www3.hp.com/t5/Printers-LaserJet/HP-LaserJet-Pro-400-M401dne-print-only-one-page-document/td-p/6456104#.VK5gLHkfrwo
    You may need to look for help from the HP forum at the same time .
    Best regards

  • How can I view a PDF file on my IPad? I only get the first page.

    How can I view a PDF file from my Ipad, both in email and Internet links? I only get the first page.

    Support for viewing PDFs in emails and web-pages is built in to the iPad. You need not have bought an app for that.
    There are PDF apps that provide more features than the built-in functionality, but for basic viewing of multi-page PDFs no app is required.

  • When I print a web page it only prints the first page and not the rest of the web page below the page break.

    When I print a web page firefox will only print the first page, all of the content to the first page break and nothing past that.
    How can I change the settings so that it will print more than on page?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset" -> Page Style -> select "Basic Page Style"
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History -> '''Time range to clear: select EVERYTHING''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache, Site Preferences''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Why does my Laserjet 2055dn only print the first page of a print job?

    In our domain, we have a number of 2055dn printers that act up on intermittent bases.  At times, they function properly, but other times they will only print the first page of a print job.  Our domain has only HP printers so there should be no conflict with drivers.  My solution has been to delete the printer on the local machine and then to reinstall them after reboot.  That has helped at times.  In other cases, I have installed the printer only on the local machine and not the copy on my printer server.
    I have updated the print drivers, on the server and on the local machines.  I have changed drivers to PS, to PCL 5 and to PCL 6.
    This only seems to occur in one of my three buildings that house this model of printer.  I have even done firmware upgrades on the printers.
    I appreciate any help that I can get on this continuing problem.  Thanks much.

    Then use the latest solution!
    Which doesn't need specifying either.
    Peter

  • Oracle Forms returns the first record in the database when performing query

    Once in a while when we query for a record on a form, say by first name Tom, then it returns the first record in the database. Other times it return the Tom's record. It only happens once in a while and if you close the form and reopen it and requery for Tom, then it brings Tom's record.
    Does anyone know the issue what could be happening. It just happens every now and then that it's hard to reproduce.
    ORacle Forms 10GR2
    ORacle Application Server 10.1.3
    thanks

    then it returns the first record in the databaseI'm not sure if i understand you correctly. Do you mean forms ignores the searc-condition you entered? I would check SYSTEM.LAST_QUERY at the moment this happens to check if the condition gets somehow lost.

  • View or function to return the full path hierarchy of an organization

    Hi,
    The customer is asking to provide a report showing for each assignment of each employees the corresponding organization where it is assigned and the full path of the organization hierarchy.
    The organization hierarchy is at most 6 level deep, so they want to produce the report with the columns:
    root_organization | org_level1 | org_level2 | org_level3 | org_level4 | org_level5 | org_level6 | person_name | assignment_date
    if the person is assigned in an organization lower than the 6th level, the remainin columns should be empty.
    I see that the view HRFG_ORGANIZATION_HIERARCHIES returns only one step in the organizations hierarchy: Parent_organization_name, Child_organization_name.
    Is there any view or function as well which returns the full path of an organization in the hierarchy? At least a function which returns the full path parents of the organization delimited by commas.
    Thank you

    Hi,
    Yes, I wrote a custom code but is running a bit slowly for around 1000 organizations and more than 15 version of hierarcy (so 15000 rows of this view). I wanted to know if there is any optimized code provided by Oracle.
    Thank you.

Maybe you are looking for