Numbers spotlight search returns only excel files.

When I search for a file using spotlight all I get are excel files or CSV files. I don't have a custom search set up but, I can't get spotlight to include numbers files in the results of any search. I had excel for mac loaded for a while but, I removed it last year. now I have Numbers '09.

When I search for a file using spotlight all I get are excel files or CSV files.
Using Spotlight on your Mac?

Similar Messages

  • How to retrieve data from a read-only Excel file

    Hi Developers,
    I'm trying to retrieve data from a read-only Excel file. I used the same code that I used to retrieve data from a normal Excel file, but it can't work.
    My code is as followed:
    try
    InputStream KpExcel = new FileInputStream("kp.xls");
    HSSFWorkbook Kpwb = new HSSFWorkbook(KpExcel);
    HSSFSheet Kpsheet = Kpwb.getSheetAt(0);
    catch(Exception e)
    e.printStackTrace();
    System.out.println("Exception: "+e.getMessage());
    The error I received is as followed:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:224)
    at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:160)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:191)
    at photoproductionsystem.IncomingWIPPanel.getKp(IncomingWIPPanel.java:118)
    at photoproductionsystem.IncomingWIPPanel.<init>(IncomingWIPPanel.java:76)
    at photoproductionsystem.TabbedDisplay.<init>(TabbedDisplay.java:47)
    at photoproductionsystem.Display.create(Display.java:73)
    at photoproductionsystem.Display.init(Display.java:44)
    at photoproductionsystem.Display.main(Display.java:229)
    Caused by: java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at org.apache.poi.hssf.record.UnknownRecord.<init>(UnknownRecord.java:62)
    at org.apache.poi.hssf.record.SubRecord.createSubRecord(SubRecord.java:57)
    at org.apache.poi.hssf.record.ObjRecord.fillFields(ObjRecord.java:99)
    at org.apache.poi.hssf.record.Record.fillFields(Record.java:90)
    at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
    at org.apache.poi.hssf.record.ObjRecord.<init>(ObjRecord.java:61)
    ... 15 more
    Can someone please help me with my problem? Thanks a lot in advance!

    Madeline wrote:
    how do I ask at Apache mailing list?I wonder why it seems to be a strange idea to some people to look at the software vendor's site for product support. :p
    http://poi.apache.org/mailinglists.html

  • Loaded "numbers" but can't drop excel file in it

    1st I set up iCloud on the iPad, then on the pc.  I Downloaded "numbers"  but cannot get my excel file to drop in there.  It always seems to want to take me to iTunes to buy the app.  I've already done that.  There's no "cog" to upload file with either.  HELP!  Please!

    What exactly are you trying to do?  Are you trying to add an exel document to icloud.com?  Are you trying to open an excel document in numbers on your mac?  Are you trying to open and excel document on your ipad?
    Your computer may be attempting to have you transfer the file via itunes.  Read http://support.apple.com/kb/PH1780

  • Download read only excel file

    Hi Experts,
    How to download a READ ONLY excel file to workstation (local Machine).

    Hi kaleemullah,
    Steps to create a BDC program.
    1. Create an internal table with fields same as Excel sheet fields.
    2. Declare an internal table with BDCDATA table to store the BDC recording.
    3. Declare an internal table with BDCMSGCOL to store the error messages after
    the execution of the BDC.
    4. Write the code using the fun. module ALSM_EXCEL_TO_INTERNAL_TABLE
    to upload the data from the excel sheet.
    5. loop that internal table and write the Subroutines to fill the internal table
    BDCDATA with the recording of a specified Transaction Code.
    6. Using Call Transaction execute the BDC recording.
    7. Check Sy-subrc = 0 and store the error messages in the internal table.
    8. If you want you can pass those error records to a session using the SESSION method.
    Here is an example of a BDC program, but this program is from a text file. Change the function module WS_UPLOAD with ALSM_EXCEL_TO_INTERNAL_TABLE
    to upload an excel and write the program with your BDC recording. You can do recording using t-code SHDB.
    Sample Program:
    REPORT ZRAJ_DATASET_XD01 NO STANDARD PAGE HEADING LINE-SIZE 132
    LINE-COUNT 60
    MESSAGE-ID Z00.
    Table/Structure declarations. *
    TABLES : KNA1. "Customer master
    Constants declarations. *
    CONSTANTS : C_MODE VALUE 'N',
    C_UPDATE VALUE 'S',
    C_X VALUE 'X',
    C_SESS TYPE APQI-GROUPID VALUE 'ZCUSTOMER', "Session Name
    C_XD01 LIKE TSTC-TCODE VALUE 'XD01'.
    Variable declarations. *
    DATA : V_FNAME(15) VALUE SPACE, " Name of file to be created
    V_FAILREC TYPE I, " No of failed records
    V_MSG(255), " Message Text
    V_ERRREC TYPE I, " No of failed records
    V_LINES TYPE I. " No of records
    *-- FLAG DECLARATIONS
    DATA : FG_DATA_EXIST VALUE 'X', " Check for data
    FG_SESSION_OPEN VALUE ' '. " Check for Session Open
    Structures / Internal table declarations *
    *-- Structure to hold BDC data
    TYPES : BEGIN OF T_BDCTABLE.
    INCLUDE STRUCTURE BDCDATA.
    TYPES END OF T_BDCTABLE.
    *-- Structure to trap BDC messages
    TYPES : BEGIN OF T_MSG.
    INCLUDE STRUCTURE BDCMSGCOLL.
    TYPES : END OF T_MSG.
    *-- Structure to trap ERROR messages
    TYPES : BEGIN OF T_ERR_MSG,
    MESSAGE(255),
    END OF T_ERR_MSG.
    *--Internal table to store flat file data
    DATA:BEGIN OF IT_KNA1 OCCURS 0,
    KUNNR LIKE KNA1-KUNNR,
    KTOKD LIKE T077D-KTOKD,
    NAME1 LIKE KNA1-NAME1,
    SORTL LIKE KNA1-SORTL,
    ORT01 LIKE KNA1-ORT01,
    PSTLZ LIKE KNA1-PSTLZ,
    LAND1 LIKE KNA1-LAND1,
    SPRAS LIKE KNA1-SPRAS,
    LZONE LIKE KNA1-LZONE,
    END OF IT_KNA1.
    *-- Internal table to hold BDC data
    DATA: IT_BDCDATA TYPE STANDARD TABLE OF T_BDCTABLE WITH HEADER LINE,
    *-- Internal Table to store ALL messages
    IT_MSG TYPE STANDARD TABLE OF T_MSG WITH HEADER LINE,
    *-- Internal Table to store error messages
    IT_ERR_MSG TYPE STANDARD TABLE OF T_ERR_MSG WITH HEADER LINE.
    Selection Screen. *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_FLNAME(15) OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R_LIST RADIOBUTTON GROUP GRP1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003.
    PARAMETERS : R_SESS RADIOBUTTON GROUP GRP1.
    SELECTION-SCREEN COMMENT 30(20) TEXT-004.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    Event:Initialization *
    INITIALIZATION.
    AT Selection Screen. *
    AT SELECTION-SCREEN.
    Event: Start-of-Selection *
    START-OF-SELECTION.
    V_FNAME = P_FLNAME.
    PERFORM GET_DATA.
    PERFORM GENERATE_DATASET.
    Event: End-of-Selection *
    END-OF-SELECTION.
    IF FG_DATA_EXIST = ' '.
    MESSAGE I010 WITH TEXT-009.
    EXIT.
    ENDIF.
    PERFORM GENERATE_BDCDATA.
    PERFORM DISPLAY_ERR_RECS.
    Event: top-of-page
    TOP-OF-PAGE.
    FORM DEFINITIONS *
    *& Form get_data
    Subroutine to get the data from mard
    --> p1 text
    <-- p2 text
    FORM GET_DATA.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    CODEPAGE = ' '
    FILENAME = 'C:\XD01.TXT'
    FILETYPE = 'DAT'
    ITEM = ' '
    FILEMASK_MASK = ' '
    FILEMASK_TEXT = ' '
    FILETYPE_NO_CHANGE = ' '
    FILEMASK_ALL = ' '
    FILETYPE_NO_SHOW = ' '
    LINE_EXIT = ' '
    USER_FORM = ' '
    USER_PROG = ' '
    SILENT = 'S'
    IMPORTING
    FILESIZE =
    CANCEL =
    ACT_FILENAME =
    ACT_FILETYPE =
    TABLES
    DATA_TAB = IT_KNA1
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF IT_KNA1[] IS INITIAL.
    FG_DATA_EXIST = ' '.
    ENDIF.
    ENDFORM. " get_data
    *& Form GENERATE_DATASET
    text
    --> p1 text
    <-- p2 text
    FORM GENERATE_DATASET.
    MESSAGE I010 WITH 'OPENING FILE IN APPLICATION SERVER'.
    **--Creating a data set in application server
    OPEN DATASET V_FNAME FOR OUTPUT IN TEXT MODE.
    **---Transfering data from internal table to dataset
    MESSAGE I010 WITH 'TRANSFERING DATA FROM INETERAL TABLE TO THE FILE'.
    LOOP AT IT_KNA1.
    TRANSFER IT_KNA1 TO V_FNAME.
    ENDLOOP.
    **--Closing the dataset
    MESSAGE I010 WITH 'CLOSING THE FILE'.
    CLOSE DATASET V_FNAME.
    ENDFORM. " GENERATE_DATASET
    *& Form BDC_DYNPRO
    text
    -->P_0467 text
    -->P_0468 text
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
    CLEAR IT_BDCDATA.
    IT_BDCDATA-PROGRAM = PROGRAM.
    IT_BDCDATA-DYNPRO = DYNPRO.
    IT_BDCDATA-DYNBEGIN = 'X'.
    APPEND IT_BDCDATA.
    ENDFORM.
    *& Form BDC_FIELD
    text
    -->P_0472 text
    -->P_0473 text
    FORM BDC_FIELD USING FNAM FVAL.
    IF NOT FVAL IS INITIAL.
    CLEAR IT_BDCDATA.
    IT_BDCDATA-FNAM = FNAM.
    IT_BDCDATA-FVAL = FVAL.
    APPEND IT_BDCDATA.
    ENDIF.
    ENDFORM.
    *& Form GENERATE_BDCDATA
    text
    --> p1 text
    <-- p2 text
    FORM GENERATE_BDCDATA.
    REFRESH IT_KNA1.
    Opening dataset for reading
    OPEN DATASET V_FNAME FOR INPUT IN TEXT MODE.
    Reading the file from application server
    DO.
    CLEAR: IT_KNA1,IT_BDCDATA.
    REFRESH IT_BDCDATA.
    READ DATASET V_FNAME INTO IT_KNA1.
    IF SY-SUBRC <> 0.
    EXIT.
    ELSE.
    Populate BDC Data for Initial Screen
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0100',
    BDC_FIELD USING 'BDC_CURSOR' 'RF02D-KUNNR',
    BDC_FIELD USING 'BDC_OKCODE' '/00',
    BDC_FIELD USING 'RF02D-KUNNR' IT_KNA1-KUNNR,
    BDC_FIELD USING 'RF02D-KTOKD' IT_KNA1-KTOKD.
    Populate BDC Data for Second Screen
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0110',
    BDC_FIELD USING 'BDC_CURSOR' 'KNA1-NAME1',
    BDC_FIELD USING 'BDC_OKCODE' '/00',
    BDC_FIELD USING 'KNA1-NAME1' IT_KNA1-NAME1,
    BDC_FIELD USING 'KNA1-SORTL' IT_KNA1-SORTL,
    BDC_FIELD USING 'KNA1-ORT01' IT_KNA1-ORT01,
    BDC_FIELD USING 'KNA1-PSTLZ' IT_KNA1-PSTLZ,
    BDC_FIELD USING 'KNA1-LAND1' IT_KNA1-LAND1,
    BDC_FIELD USING 'KNA1-SPRAS' IT_KNA1-SPRAS.
    Populate BDC Data for Third Screen
    PERFORM : BDC_DYNPRO USING 'SAPMF02D' '0120',
    BDC_FIELD USING 'BDC_CURSOR' 'KNA1-LZONE',
    BDC_FIELD USING 'BDC_OKCODE' '=UPDA',
    BDC_FIELD USING 'KNA1-LZONE' IT_KNA1-LZONE.
    CALL TRANSACTION C_XD01 USING IT_BDCDATA
    MODE C_MODE
    UPDATE C_UPDATE
    MESSAGES INTO IT_MSG.
    IF SY-SUBRC <> 0.
    *--In case of error list display
    IF R_LIST = C_X.
    V_ERRREC = V_ERRREC + 1.
    PERFORM FORMAT_MESSAGE.
    IT_ERR_MSG-MESSAGE = V_MSG.
    APPEND IT_ERR_MSG.
    CLEAR : V_MSG,IT_ERR_MSG.
    ENDIF.
    *--In case of session log
    IF R_SESS = C_X.
    *-- In case of transaction fails.
    IF FG_SESSION_OPEN = ' '.
    FG_SESSION_OPEN = C_X.
    PERFORM BDC_OPEN_GROUP.
    ENDIF. " IF FG_SESSION_OPEN = ' '.
    *-- Insert BDC Data..
    PERFORM BDC_INSERT_DATA.
    ENDIF. " IF R_SESS = C_X.
    ENDIF. " IF SY-SUBRC <> 0.
    ENDIF. " IF SY-SUBRC <> 0.
    ENDDO.
    Closing the dataset
    CLOSE DATASET V_FNAME.
    *-- Close the session if opened
    IF FG_SESSION_OPEN = C_X.
    PERFORM BDC_CLOSE_GROUP.
    CALL TRANSACTION 'SM35'.
    ENDIF.
    ENDFORM. " GENERATE_BDCDATA
    *& Form BDC_OPEN_GROUP
    text
    --> p1 text
    <-- p2 text
    FORM BDC_OPEN_GROUP.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    CLIENT = SY-MANDT
    DEST = FILLER8
    GROUP = C_SESS
    HOLDDATE = FILLER8
    KEEP = C_X
    USER = SY-UNAME
    RECORD = FILLER1
    IMPORTING
    QID =
    EXCEPTIONS
    CLIENT_INVALID = 1
    DESTINATION_INVALID = 2
    GROUP_INVALID = 3
    GROUP_IS_LOCKED = 4
    HOLDDATE_INVALID = 5
    INTERNAL_ERROR = 6
    QUEUE_ERROR = 7
    RUNNING = 8
    SYSTEM_LOCK_ERROR = 9
    USER_INVALID = 10
    OTHERS = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " BDC_OPEN_GROUP
    *& Form BDC_INSERT_DATA
    text
    --> p1 text
    <-- p2 text
    FORM BDC_INSERT_DATA.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    TCODE = C_XD01
    POST_LOCAL = NOVBLOCAL
    PRINTING = NOPRINT
    TABLES
    DYNPROTAB = IT_BDCDATA
    EXCEPTIONS
    INTERNAL_ERROR = 1
    NOT_OPEN = 2
    QUEUE_ERROR = 3
    TCODE_INVALID = 4
    PRINTING_INVALID = 5
    POSTING_INVALID = 6
    OTHERS = 7
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " BDC_INSERT_DATA
    *& Form BDC_CLOSE_GROUP
    text
    --> p1 text
    <-- p2 text
    FORM BDC_CLOSE_GROUP.
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
    NOT_OPEN = 1
    QUEUE_ERROR = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " BDC_CLOSE_GROUP
    *& Form FORMAT_MESSAGE
    text
    --> p1 text
    <-- p2 text
    FORM FORMAT_MESSAGE.
    CLEAR V_LINES.
    DESCRIBE TABLE IT_MSG LINES V_LINES.
    READ TABLE IT_MSG INDEX V_LINES.
    CLEAR V_MSG.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    ID = IT_MSG-MSGID
    LANG = IT_MSG-MSGSPRA
    NO = IT_MSG-MSGNR
    V1 = IT_MSG-MSGV1
    V2 = IT_MSG-MSGV2
    V3 = IT_MSG-MSGV3
    V4 = IT_MSG-MSGV4
    IMPORTING
    MSG = V_MSG
    EXCEPTIONS
    NOT_FOUND = 1
    OTHERS = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " FORMAT_MESSAGE
    *& Form DISPLAY_ERR_RECS
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_ERR_RECS.
    LOOP AT IT_ERR_MSG.
    WRITE: / IT_ERR_MSG-MESSAGE.
    ENDLOOP.
    ENDFORM. " DISPLAY_ERR_RECS
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Why does Apple say that Numbers can open and save Excel files, when in actuality, it can only open .XLSX files and only Export to Excel (not save-as excel)?

    When attempting to open .XLS files in Numbers, the format is not recognized. When the format is .XLSX, the format is recognized. Why is it this way? It's still much more common for folks to have the .XLS file format on their excel files. Why would Numbers not be backwards-compatible?
    Additionally, to state in the benefits of this program that one can save to 'Excel' is a little misleading. You can't save to anything except .numbers. Sure, you can export to Excel (with file extension .XLS, I might add), but you can't save or save-as.
    Does anyone else see the irony in being able to export to .XLS but not be able to open an .XLS?
    There is something to be said for clarity.
    You can't expect folks to have Numbers and Excel on their systems, so how else are they supposed to open .XLS files in Numbers?
    And I don't need to see another advertisement for NeoOffice or OpenOffice here, thanks. I'd actually like Numbers to be a little more sensible.
    That is all.

    When the advertisements were written, there was no Lion so we were able to Save As Excel.
    At thiqs time there is no longer Save As command under Lion but the feature is always available.
    When your editing task is ended, you are free to use this scheme:
    File > Duplicate
    File > Save and in the dialog you will have the option save as Excel.
    Numbers isn't and I hope that it will not become an Excel editor.
    Its resources contain a flag defining it this way.
    I posted several times a script editing this resource.
    This morning I'm not in a mood allowing me to do your duty.
    Search by yourself in existing threads with a keystring like
    viewer AND editor
    Yvan KOENIG (VALLAURIS, France) jeudi 27 octobre 2011 09:40:23
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Spotlight search return no results on fileserver

    Spotlight is giving me fits. I had it working at one point, then it spontaneously stopped returning search results.
    When clients (all osx10.5.5) perform a search on the file server they only get results for files that have been modified since the last re indexing.
    I have tried deleting the spotlight indexes using mdutil -E /
    i have tried turning indexing off, rebooting, and then back on .... all with no results.
    After the most recent reindexing, i get some results ... but only files that were modified since the last reindexing.
    Any suggestions? Or are there any references to spotlight that would explain how this thing works ... or how its suppose to work at least.
    btw ... if you log into the server locally, searches results are as you would expect.
    permissions on the server is wide open ... all registered uses and see and change all files ... so i don't think its a permissions issue.

    Rathelm,
    contacting you directly for some help as I'm in the midst of a spotlight issue....
    I recent deployed 10.6.6 server, the last Xserve...
    10.5+  & 10.6+ clients connect via AFP to sharepoints
    In the 1st week clients complained that they cannot find files on server.
    I rebuilt all spotlight indexes on all clients macs and on all volumes on the server
    Clients were happy and were able to quickly search server....
    Approx. 4 days later clients complained again that they cannot find files on server.
    Asked manager for specifics and he found that only new files added to the server after the spotlight index rebuild cannot be found.
    Clients not happy again..
    Have any ideas?
    Big thanks

  • Spotlight search not showing all files

    Hello,
    I am trying to do a spotlight search on several 10.4 machines that I know have a certain folder.
    When I do a "name contains" search for this folder, the search does not find it on some machines.
    However, the same search finds the folder on other machines.
    On the machines where it doesn't find the folder, it does find files with-in the folder, if I select them, I can see the path.
    Is there an issue with the spotlight search where it sometimes won't return folders?
    ARD version 3.0
    Server version 10.4.8
    Client machine version 10.4.6
    Thanks for any help.

    Have you specified any settings in Spotlight's System Preference pane, such as deselecting certain file types? If not, reindex the drive.

  • Cannot open Excel files on Windows share and ONLY Excel files

    I'm browsing a Windows share and for whatever reason it will not let me open Excel files directly from the network location. If I view the Coverflow, I can see a a preview of the actual file as well as copy it to the desktop and open it.
    I receive an error message that says "filename.xls could not be found."
    I can open up any other file from the network location, but not Excel files.
    I checked the file permissions and they mirror the other file types, it may be worth mentioning that I utilize network synchronization and view these files from a PC as well. I also noticed when I create a new file in that location, it will only appear in OS X and not Windows, but is still completely accessible.
    Any help is appreciated!
    Thanks

    Re:  Windows 8 vs. Excel problem
    Does your new Dell computer have MS Office installed?
    Jim Cone
    Portland, Oregon USA
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • ADS search returns only 1000 nodes...

    Executing a search against the root node of ADS returns only 1000 objects despite the fact that that we have done searchControls.setCountLimit(0). We are using a non-anonymous connection which, in fact, is using an non-administrator's DN and password to login. When we use a non-anonymous connection which uses an administrator's DN and password, we get 2000 entries returned--so we have confidence that some setting inside ADS is the problem.
    Anyone know exactly what we need to tweak within ADS to allow us to get back a truly unlimited number of "hits" when searching?
    Thanks,
    Richard

    Here is the code snippet that helped me in fetching more than 1000 users hope this helps all.
              InitialLdapContext aContext = null;
              PagedResultsControl pageResultControl = null;
              try {
                   pageResultControl = new PagedResultsControl(999);
              } catch (Exception e) {
                   // TODO Auto-generated catch block
              Control[] controls = { pageResultControl };
              //this intializing value need to be take from
              //a configuration property
              List list = new ArrayList(1000);
              try {
                   //env is the propeties to be given for
                   //connneting to the AD/ldap
                   aContext = new InitialLdapContext(env, null);
                   aContext.setRequestControls(controls);
              } catch (Exception e1) {
                   // TODO Auto-generated catch block
              String searchBase ="dc=domain,dc=com";
              String[] attributes = {"cn","sAMAccountName","mail"};
              String searchFilter = "(objectClass=user)"
              SearchControls control = new SearchControls();
              //setting the count limit to zero
              //makes the system to fetch without limit
              control.setCountLimit(0);
              //set the time limit to zero for no time out
              control.setTimeLimit(0);
              control.setDerefLinkFlag(true);
              control.setReturningAttributes(LDAPManager.getMappedAttributes());
              control.setSearchScope(SearchControls.SUBTREE_SCOPE);
              SearchResult searchResult = null;
              NamingEnumeration ne = null;
              NamingEnumeration atNe = null;
              try {
              int i = 0;
              //a do while loop is executed
              //the do while iterated since
              //since the page result controls are finished
              byte cookie[] = null;
              String attrName = "";
              String attrValue = "";
              Attribute attribute = null;
              boolean toBeByPassed = false;
              do {
                   ne = aContext.search(searchBase, searchFilter, control);
                   while (ne.hasMoreElements()) {
                   searchResult = (SearchResult) e.nextElement();               if (searchResult == null)
                   continue;
                        i++;
                   //here construct the ldap
                   //user object and then
                   //populate to the array list
                   Attributes resultAttributes = searchResult.getAttributes();
                   if (resultAttributes == null)
                        continue;
                   atNe = resultAttributes.getAll();
                   if (atNe == null)
                   continue;
                   while (atNe.hasMoreElements()) {
                   //do what ever you want in this loop
                   //to get the attributes
              }//closing brace of the while loop of the attribute
              // enumeration
              }//end of the while loop of naming enumeration
              cookie = ((PagedResultsResponseControl) aContext.getResponseControls()[0]).getCookie();
              if ((cookie != null)) {
              System.out.println("Paging again for -> " + searchFilter);
                   aContext.setRequestControls(new Control[] { new PagedResultsControl(999, cookie, Control.CRITICAL) });
    } while (cookie != null);//continue until the server stops sending cookies
         } catch (Exception e) {
              System.out.println("OOPs i encountered some error while processing ");
              } finally {
                   //release the context here infact close it here

  • LDAP Search returns only 1200 records

    Hi!
    I'm having trouble searching an LDAP registry containing about 20 000 records. If I configure a search that should return about 15000 records I only get 1200 with the following error message when iterating through the NamingEnumeration:
    Unexpected exception occured at record 1200: javax.naming.SizeLimitExceededExcep
    tion: [LDAP: error code 4 - Sizelimit Exceeded]; remaining name 'o=ericsson'
    Code:
    package erildap;
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.Hashtable;
    * Title:
    * Description:
    * Copyright: Copyright (c) 2001
    * Company: Numenor Communication AB
    * @author Andreas Gl�ckner
    * @version 1.0
    public class EgdLdap {
    Hashtable props = null;
    DirContext context = null;
    String server = null;
    int port;
    int version;
    public EgdLdap(String ldapServer, int port, int LdapVersion) {
    this.server = ldapServer;
    this.port = port;
    this.version = LdapVersion;
    static public void main(String[] args){
    SearchResult result = null;
    Attribute a = null;
    EgdLdap ldapObj = new EgdLdap("ldap.server.se",389, 3);
    try{
    ldapObj.connect();
    }catch(NamingException ex){
    System.out.println(ex.toString());
    String filter="(&(uid=qandglo)(ou=esg))";
    String[] returnAttrib = {"uid", "ou", "givenName", "departmentNumber", "L", "mail"};
    int scope = SearchControls.SUBTREE_SCOPE;
    NamingEnumeration enum = ldapObj.search("o=ericsson,ou=esg", filter, returnAttrib , scope);
    int i = 1;
    try{
    if (enum != null){
    while (enum.hasMoreElements()){
    result = (SearchResult)enum.nextElement();
    NamingEnumeration attributes = result.getAttributes().getAll();
    while(attributes.hasMore()){
    a = (Attribute)attributes.next();
    System.out.println(i+". "+a.toString());
    i++;
    }catch(Exception e){
    System.out.println(e.toString());
    e.printStackTrace();
    public void connect() throws NamingException{
    try{
    props = new Hashtable();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    props.put(Context.PROVIDER_URL, "ldap://" + this.server + ":" + this.port);
    props.put("java.naming.ldap.version",String.valueOf(this.version));
    context = new InitialDirContext(props);
    }catch (NamingException e){
    System.out.println("Failed to connect to: " + this.server);
    props=null;
    throw e;
    System.out.println("Succesfully connected to: " + this.server);
    public void traverse(){
    try{
    Attributes at = context.getAttributes("cn=q*,o=ericsson");
    NamingEnumeration enum = at.getAll();
    while(enum.hasMore()){
    System.out.println(((Object)enum.next()).toString());
    }catch(NamingException e){
    System.out.println(e.toString());
    public NamingEnumeration search(String name, String filter, String[] returnAttribs, int type){
    NamingEnumeration result = null;
    SearchControls ctrl = new SearchControls();
    ctrl.setSearchScope(type);
    ctrl.setReturningAttributes(returnAttribs);
    if(context != null){
    try{
    result = context.search(name, filter, ctrl);
    }catch(NamingException e){
    System.out.println(e.toString());
    return result;
    }

    Hi,
    Two possible reasons:
    1. The size of the search results returned would have been controlled by the directory services administrator (Cross- check with the dir. services administrative options.
    2. Have you set the size limit programatically... using SearchControls.setSizeLimit(...) you should be using
    SearchControls.setSizeLimit(0) which returns all the results.
    Hope this hleps,
    Sathya Sayee.S

  • Document Search returned only single doc. WLP7

    Dear all,
    I am facing a problem when I am using document management with WLP 7.0.
    We created three documents as following:
    doc1
    doc1.md.properties
    doc2
    doc2.md.properties
    doc3
    doc3.md.properties
    For each doc metadata we have
    DROP_DOWN_LIST_NAME="dropdown1"
    VALUE=SOMEVALUE(different for each doc)
    When we were trying to use the following code for search, we are
    expecting to retrive the above three documents, but in fact,
    we got only the first one returned. What's wrong with our implementation?
    DocumentManagerHome documentManagerHome = (DocumentManagerHome)jndiContext.lookup(
    "java:comp/env/ejb/DocumentManager" );
    DocumentManager documentManager = documentManagerHome.create();
    String searchString = "DROP_DOWN_LIST_NAME == 'dropdown1'";
    Expression searchExpression = ExpressionHelper.parse( searchString );
    Search search = new Search( null, -1, "", searchExpression );
    Enumeration searchResults = documentManager.getContent( search);
    if( searchResults.hasMoreElements() ) {
    Document document = (Document) searchResults.nextElement();
    System.out.println("Search Result: " + document.getPropertyAsString(document.RESERVED_PROPERTY_SET,
    "VALUE"));
    Any help would be great appriciated.
    Harry

    Harry -
    You might be encountering the content caching that occurs internally. If
    you added doc1, ran loaddocs, ran the query, got back doc1, then added
    docs2 and 3, ran loaddocs, ran the query, you would probably still get
    back only doc1 for awhile, untill the cache timed out. Try turing off
    metadata cache on the default DocumentManager via the WLP console
    extensions (see e-docs). Or, you can try doing a
    search.setContextParam("p13n.noCache", "true") in your code to turn it
    off for that one search.
    Otherwise, check the database tables (DOCUMENT and DOCUMENT_METADATA) to
    make sure that the data is getting loaded correctly.
    Greg
    Harry wrote:> Dear all,
    >
    I am facing a problem when I am using document management with WLP 7.0.
    We created three documents as following:
    doc1
    doc1.md.properties
    doc2
    doc2.md.properties
    doc3
    doc3.md.properties
    For each doc metadata we have
    DROP_DOWN_LIST_NAME="dropdown1"
    VALUE=SOMEVALUE(different for each doc)
    When we were trying to use the following code for search, we are
    expecting to retrive the above three documents, but in fact,
    we got only the first one returned. What's wrong with our implementation?
    DocumentManagerHome documentManagerHome = (DocumentManagerHome)jndiContext.lookup(
    "java:comp/env/ejb/DocumentManager" );
    DocumentManager documentManager = documentManagerHome.create();
    String searchString = "DROP_DOWN_LIST_NAME == 'dropdown1'";
    Expression searchExpression = ExpressionHelper.parse( searchString );
    Search search = new Search( null, -1, "", searchExpression );
    Enumeration searchResults = documentManager.getContent( search);
    if( searchResults.hasMoreElements() ) {
    Document document = (Document) searchResults.nextElement();
    System.out.println("Search Result: " + document.getPropertyAsString(document.RESERVED_PROPERTY_SET,
    "VALUE"));
    Any help would be great appriciated.
    Harry

  • Numbering pages differently in only 2 files in a book

    I want to number the appendix pages A-1, B-1, etc. when the rest of the book is numbered sequentially. Is that possible? I can make it work in the file, but the TOC won't pick it up. How would I do this?

    Hi,
    In the book window, have you right-clicked each FM chapter and set the chapter number?
    Setting up <$chapnum>-<$pagenum> on the reference pages of your TOC is half the battle.
    Next, right-click each chapter in turn and set chapter, page, and paragraph numbering. The first chapter you might set to "1" "Numeric," the first page you might set to "1" "Numeric," and the first paragraph you might set to "Restart Paragraph Numbering." But for subsequent chapters, pages, and paragraphs, you might choose "Continue Numbering ...."
    Cheers,
    Sean

  • Searching for only sequence files

    I think the advanced search field is missing a few options. For example, I am unable to just search for the types of files, namely FCP project files.
    Anyone have a workaround (or maybe i'm missing something)

    There are a few ways you can do this.
    1) Do and advanced search with: Filename 'End With' .fcp
    2) Do a 'Contains' search for 'x-finalcutpro-bin' (this is the FCP mime type
    3) Add the 'Mime Type' field to the Advanced search. To do this you need to add that field to the 'Asset Filter' metadata group.
    Once you've decided which one you like (I do number 3 myself), then you can save as a Smart Search. Now you've got an easy way to find your FCP project files.

  • Spotlight searches missing some files

    My searches in Spotlight are returning only some of the files that should be found. I finally narrowed this problem down to files that I had archived with BetterZip, but kept on my hard drive. The files are definitely still there on my hard drive, but they no longer appear in Spotlight searches. As soon as I open the files with an app, the files appear again in Spotlight searches. What has been done to the files that they don't appear in Spotlight searches? What is the fast method to change a setting/flag/unmark all the zipped files so they will all appear in Spotlight searches.
    Reindexing Spotlight has not helped--I have reindexed Spotlight probably a dozen times with various methods over the past few days and nothing happened until I opened and closed the file. Once I open the file, it's a matter of moments before it appears in a Spotlight search.
    System: OSX 10.4.11
    Thanks!

    I experimented some with rights and I can't see any consistent differences. All permissions seem to be 644 or 755. Neither the files that appear in Spotlight searches nor the files that do not appear in Spotlight are one or the other. Plus the permissions do not change after opening and closing the file.
    I am the Owner of all the files. I noticed that some files appearing in Spotlight had a different Group assigned, so I changed the Group on a few files, but that made no difference in whether the file appeared in Spotlight.
    Would upgrading to Leopard solve this problem?

  • Does Spotlight Search HTML Files?

    I have a folder full of HTML files I just imported to my MacBook about a week ago. They have been backed up by my Time Capsule. But when I search for keywords in the contents of them, they do not show up. The file names will show up, but none of the contents (which are mainly text). I have tried to force Spotlight to search only the folder that contains the files, but it does not seem to be searching the HTML files.
    Are HTML file contents excluded from Spotlight searches? I seem to have a number of webpages that come in Spotlight for keyword searches that appear to be the result of searching the file contents. So is there a trick to this? Is there some way I can force Spotlight to index this folder? Just not sure why it seems to search the contents of some HTML files and not others.

    Are HTML file contents excluded from Spotlight searches?
    No, HTML files are not excluded.
    Open System Preferences > Spotlight, under Search Results tab is Webpages checked?
    If yes, download a new html file and see if Spotlight finds it. If yes, then it could be a permissions issue with the files you imported. Do a Get Info and compare permissions between the new and old files.
    You can reset your permissions on all your files similar to Disk Utility using the Recovery Drive. See instructions here:
    Use OS X Recovery Disk Assistant to reset Your files and folder permissions
    (Fair disclosure: NeedHelp4Mac is my site. I may receive some form of compensation, financial or otherwise, from my recommendation or link.)

Maybe you are looking for