Z index trouble

Hi im trying to understand z index and i cant make it work, why i doesnt work?
Adobe Creative Cloud

Hi,
You have code errors:
Your revised file: Zindex revised.zip - Box

Similar Messages

  • Index trouble

    Dear all,
    I have a question about formating the index in Pages.
    It works fine, I know how to create an automatic index.
    The only thing that's confusing to me is how do I get spaces between de text of the indexed page and the pagenumber.
    For example Now te index looks like:
    Chapter 1 1
    Chapter 2 5
    Chapter 3 8
    And it should be like
    Chapter 1 (page)1
    Chapter 2 (page)5
    Chapter 3 (page)8
    How Can I solve this issue?
    Thanks.
    Sjaak

    Sjaak,
    I'll assume that when you say Index, you really mean +Table of Contents+. If that's the case, click on the ToC to highlight it, then click on the ruler in the spot where you want the page numbers to appear. Finally, control-click on the new tab marker, then select Right Tab from the menu.
    Let us know if that solved the problem.
    -Dennis

  • Index troubles

    Hi all
    Im using Oracle 8i (8.1.7.0.0) on SuSE 7.0. The characterset is UTF8 and i want to index a clob field in a table using InterMedia text. The clobfield consists of text in various languages such as hebrow, swedish, english and so on. When i try to create the index i get following:
    SQL> CREATE INDEX VCC.QQQ
    2 ON VCC.KC_PHRASE_LANGUAGE(F_PHRASE) INDEXTYPE IS CTXSYS.CONTEXT
    3 PARAMETERS ('');
    CREATE INDEX VCC.QQQ
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: interMedia Text error:
    DRG-11422: linguistic initialization failed
    DRG-00100: internal error, arguments : [52100],[drxs.c],[553],[gxtopen],[1]
    DRG-11432: file error while accessing interMedia Text knowledge base
    ORA-06512: at "CTXSYS.DRUE", line 126
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 78
    ORA-06512: at line 1
    Do anybody have a solution on this?
    TIA
    /Daniel
    null

    According to the guys at Libsyn, this problem has finally been aknowledged by Apple, and they estimated that they would have it rectified sometime this week...

  • Delete Multiple records in Table?

    Hi ..
    I need to perform delete operation in my table with multiple selection.
    My coding is..
    for(int i=wdContext.nodeDetails2().size()-1;i>=0;i--)
    if(wdContext.nodeDetails2().isMultiSelected(i) || wdContext.nodeDetails2().getLeadSelection()==i)
    wdContext.nodeDetails2().removeElement(wdContext.nodeDetails2().getDetails2ElementAt(i));
    When i delete first record, It works fine and multiple selection also works fine.
    But when i select last record(only one) to delete, Then All the records get deleted. ???? Why this happens???
    Anybody help to solve this probelm..
    Thnx in advance..
    Regards,
    GS

    Hi Sathish,
    Store the node size in a variable then try. To avoid problems with the index, the context is executed in reverse. Suppose in a table you have 10 rows and you are deleting row 2 the after deletion of row 2 row 3 will come to row 2,row 4 will come in row 3 in this way process will be continue up to last row.
    Try this.
    int n = wdContext.nodeDetails2().size();
    int leadSelected = wdContext.nodeDetails2().getLeadSelection();
    // loop backwards to avoid index troubles
    for (int i = n - 1; i >= 0; --i) {
    if (wdContext.nodeDetails2().isMultiSelected(i) || leadSelected == i) {
    wdContext.nodeDetails2().removeElement(wdContext.nodeDetails2().getDetails2ElementAt(i));
    Regards,
    Mithu

  • Problem in deleting Rows of JTable after sorting it

    Hi all,
    I'm getting problems in Removing Row(s) after sorting a JTable.
    Please find the code snippets at this URL. Thanks for your time...
    http://forum.java.sun.com/thread.jsp?forum=31&thread=459736&start=15&range=15&hilite=false&q=

    Hi Abhijeet,
    I tried it the way you said using
         wdContext.nodeBirhtday_List().nodeItab().moveFirst();
         //     loop backwards to avoid index troubles
         for (int i = n - 1; i >= 0; --i)
              current_date  = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getDate();
              current_month = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getMonth();
              if (( current_date != date_today ) && ( current_month != month_today ))
                   wdContext.nodeBirhtday_List().nodeItab().removeElement(wdContext.nodeBirhtday_List().nodeItab().
                                  getElementAt(i));                
              wdContext.nodeBirhtday_List().nodeItab().moveNext();     
    It adds records...
    According to Valerys Solution, the IPrivate<CustomController> doesnt show me the required nodes. and gives me 'Unable to resolve' error.
    Can you please suggest where I am going wrong
    Regards
    Abdullah

  • For multiple item selection in Table

    Plz use this code and paste it in perticular event of button. when u excute the application ,To select multiple items plz catch shift in keyboard otherwise u can select only single item.
    int n = wdContext.nodeProducts().size();
        int leadSelected = wdContext.nodeProducts().getLeadSelection();
        // loop backwards to avoid index troubles
        for (int i = n - 1; i >= 0; --i) {
          if (wdContext.nodeProducts().isMultiSelected(i) || leadSelected == i) {
            wdContext.nodeProducts().removeElement(wdContext.nodeProducts().getElementAt(i));

    Hi Vishal
    Thats the way the webdynpro table has been designed to work for multiple selection...on click of the Ctrl key or Shift key. There is no other alternative for this.
    What would your question be?
    Thanks
    oj

  • How to remove the row entries

    HI,
    I have a row entry which contains radio button,dropdown,input field,calender.All the fields are dynamic
    All these fields(UI elements) are in one line and these are not in the table.If I add new entry(by clicking NEW ENTRY button),then a new row will be added dynamically with the same UI elements in the new row.Means every new row entry contains radio button,dropdown,input field,calender.
    Problem :- I want to delete one row entries.Means if I delete the 5th row entries,then it should remove all the UI elements(radio button,dropdown,input field,calender) from that 5th row entries only.
    I think I am clear about the requirement.
    Please suggest me how to remove a row entry.These UI elemenets are not table entry.
    Regards
    -Sandip

    Hi Sandeep,
    You can use the below code for deleting a row from table.
    int n = wdContext.nodeProducts().size();//size of node binded with table
    int leadSelected = wdContext.nodeProducts().getLeadSelection();
    // loop backwards to avoid index troubles
    for (int i = n - 1; i >= 0; --i)
    if (wdContext.nodeProducts().isMultiSelected(i) || leadSelected == i )
    wdContext.nodeProducts().removeElement(wdContext.nodeProducts().
    getElementAt(i))
    Hope this will help.
    Regards
    Narendra

  • Reg Row Selection in a Table UI Element

    Hi All,
    Can anyone help me in writing code to select a row from a table.
    I need to read the data from a row selected in a table and print it in the next page of my application.
    I request anyone to send me some coding line on how to select a row from a table and read data from it.
    Regards,
    Murthy.

    Hi Narayana,
    Follow the steps.
    Step1: Create a WD Component.
    Step2:  Under Component Controller create a
    i)  2  Node “EmployeeInfo” and “EmployeeRecord”  with attribute “EmployeeName” and “Position”  of cardinality 0..n for both the node and a context attribute “WindowInstance” of type “com.sap.tc.webdynpro.services.session.api.IWDWindow”
    Step3: Go to the Diagram View. Do the mapping between “EmployeeView” and “Component Controller” and between “DisplayView” and “Component Controller”
    Step4: Design 2 Views layout
    i>EmployeeView
    Layout like
    Employee Name |                                  Employee Position
    EmployeeInfo.EmployeeName| EmployeeInfo.Position
    EmployeeInfo.EmployeeName| EmployeeInfo.Position
    DisplayResultButton
    ii>DisplayView
    Layout like
    Employee Name   |                      Employee Position
    EmployeeRecord.EmployeeName |    EmployeeRecord.Position
    EmployeeRecord.EmployeeName |    EmployeeRecord.Position
    CloseWindowButton
    Step5: Create 2 Windows
    1>EmployeeWindow
    2>DisplayWindow.
    Under “EmployeeWindow” add the “EmployeeView”
    and “DisplayWindow” add the “DisplayView”
    Step5: Associate action “DisplayResult” with the “DisplayResultButton” and use this code inside the Implementation of “EmployeeView”
    public void wdDoInit()
        //@@begin wdDoInit()
    //initialize nodes
    wdContext.nodeEmployeeInfo().addElement(wdContext.createEmployeeInfoElement());
    wdContext.nodeEmployeeRecord ().addElement(wdContext.createEmployeeRecordElement());
        //@@end
    public void onActionDisplayResult(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDisplayResult(ServerEvent)
    try
    IPrivateDisplayView.IEmployeeRecordElement empRec =
    wdContext.createEmployeeRecordElement();
    int n = wdContext.nodeEmployeeInfo().size();
    int leadSelected = wdContext.nodeEmployeeInfo().getLeadSelection();
    // loop backwards to avoid index troubles     
    for (int i = 0; i < n ; i++) {
    if (wdContext.nodeEmployeeInfo().isMultiSelected(i) || leadSelected == i) {
    empRec.setEmployeeName(wdContext.nodeEmployeeInfo().getElementAt(i).getAttributeValue("EmployeeName"));
    empRec.setPosition(wdContext.nodeEmployeeInfo().getElementAt(i).getAttributeValue("Position"));
    wdContext.nodeEmployeeRecord().addElement(empRec);
    catch(Exception e)
    e.printStackTrace();
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
         "DisplayWindow");
    //        create the Window
         IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
         window.setWindowPosition(WDWindowPos.CENTER);
         window.setTitle("WindowTitle");
         window.setWindowSize(200,200);
    //        Save WindowInstance in Context
         wdContext.currentContextElement().setWindowInstance(window);
    //        and show the window
         window.show();
         //wdThis.wdFirePlugInDisplay();
        //@@end
    Step6: Associate action “CloseWindow” with the “CloseWindowButton
    ” and use this code inside implementation of  “DisplayView”
      public void onActionCloseWindow(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCloseWindow(ServerEvent)
       IWDWindow window = wdContext.currentContextElement().getWindowInstance();
       window.destroyInstance();
        //@@end
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f699f90-0201-0010-14a4-8950177281ed">Developing with Tables in WebDynpro</a>
    Regards,
    Mithu

  • Problem in deleting rows

    Hi experts,
    in the following method. I am deleting the records from the BAPI output table where the date and month do not correspond to todays date and current month.
    When I execute the BAPI for one employee it gives me the correct output. ie one record. But when I execute it for all the employees and when I use the following code. It gives me a blank output.
      public void wdDoInit()
        //@@begin wdDoInit()
        int date_today, current_date;
        int month_today, current_month;
        char date_satisfied, month_satisfied;
        Date date = new Date(System.currentTimeMillis());
        date_today = date.getDate();
        month_today = date.getMonth();
         int n = wdContext.nodeBirhtday_List().nodeItab().size();
         int leadSelected = wdContext.nodeBirhtday_List().nodeItab().getLeadSelection();
         //     loop backwards to avoid index troubles
         for (int i = n - 1; i >= 0; --i) {
              current_date  = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getDate();
              current_month = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getMonth();
              if (( current_date != date_today ) && ( current_month != month_today ))
                   wdContext.nodeBirhtday_List().nodeItab().removeElement(wdContext.nodeBirhtday_List().nodeItab().
                                  getElementAt(i));
        //@@end
    can anybody please suggest me the solution
    Regards
    Abdullah

    Hi Abhijeet,
    I tried it the way you said using
         wdContext.nodeBirhtday_List().nodeItab().moveFirst();
         //     loop backwards to avoid index troubles
         for (int i = n - 1; i >= 0; --i)
              current_date  = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getDate();
              current_month = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getMonth();
              if (( current_date != date_today ) && ( current_month != month_today ))
                   wdContext.nodeBirhtday_List().nodeItab().removeElement(wdContext.nodeBirhtday_List().nodeItab().
                                  getElementAt(i));                
              wdContext.nodeBirhtday_List().nodeItab().moveNext();     
    It adds records...
    According to Valerys Solution, the IPrivate<CustomController> doesnt show me the required nodes. and gives me 'Unable to resolve' error.
    Can you please suggest where I am going wrong
    Regards
    Abdullah

  • Unable to activate imessage... help needed !!

    Hey i am unable to activate my imessage .... whenever i go to settings -> messages -> "on "imessage ->  it says " An error occured during activation. Try again " ...... plzzz help !!

    Tried deleting the inProgress file again and restarting.. Seems TimeMachine just runs into indexing trouble with another file then :
    5/22/08 7:49:44 PM /System/Library/CoreServices/backupd[232] Starting standard backup
    5/22/08 7:49:44 PM /System/Library/CoreServices/backupd[232] Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    5/22/08 7:49:45 PM /System/Library/CoreServices/backupd[232] Event store UUIDs don't match for volume: Storage
    5/22/08 7:49:46 PM /System/Library/CoreServices/backupd[232] Node requires deep traversal:/Volumes/Storage reason:kFSEDBEventFlagMustScanSubDirs|
    5/22/08 7:49:48 PM /System/Library/CoreServices/backupd[232] No pre-backup thinning needed: 147.00 GB requested (including padding), 163.95 GB available
    5/22/08 7:57:03 PM /System/Library/CoreServices/backupd[232] Error: Flushing index to disk returned an error: -1
    5/22/08 7:57:03 PM /System/Library/CoreServices/backupd[232] Copied 1492 files (3.6 MB) from volume OS.
    5/22/08 7:57:13 PM /System/Library/CoreServices/backupd[232] Waiting for index to be ready (-1 < 0)
    5/22/08 7:57:28 PM /System/Library/CoreServices/backupd[232] Waiting for index to be ready (-1 < 0)
    5/22/08 7:57:38 PM /System/Library/CoreServices/backupd[232] Indexing a file failed. Returned -12 for: /Volumes/Storage/In/.DS_Store, /Volumes/Time Machine Backups/Backups.backupdb/macpro/2008-05-22-183555.inProgress/94F37212-FFF8-4817 -BDC5-9AB3AC051983/Storage/In/.DS_Store
    5/22/08 7:57:38 PM /System/Library/CoreServices/backupd[232] Aborting backup because indexing a file failed.
    5/22/08 7:57:38 PM /System/Library/CoreServices/backupd[232] Stopping backup.
    5/22/08 7:57:38 PM /System/Library/CoreServices/backupd[232] Copied 1492 files (3.6 MB) from volume Storage.
    5/22/08 7:57:38 PM /System/Library/CoreServices/backupd[232] Copy stage failed with error:11
    5/22/08 7:57:38 PM /System/Library/CoreServices/backupd[232] Backup failed with error: 11

  • Trouble with CHM Search & Index after Importing Word Document

    Greetings,
    I have recently inherited all things RoboHelp at work, but the last person to work with our projects left 6 months ago.  I received a brief overview of how our CHM files were generated from the same word document in RH HTML 7. 
    Currently, I am using RoboHelp HTML 9, but am having trouble with the Index and Search functionality from an imported Word 2003 (.doc) file.  During my import, only a single topic is created and named after the source document.  I believe this may be the root of my problems, but haven't had much luck with a solution. 
    I have stumbled my way through setting after setting, but feel I am missing something obvious.  Any help would be appreciated.
    Thanks,
    Ken
    Background:
    Our source documents have a working TOC and Heading 1-3 structure.  When creating a new project and importing the document, the TOC is imported correctly.  The TOC navigations links seem to function correctly. 
    I have used the Smart Index Wizard to find new keywords from topic titles and topic text.  Unfortunately it seems the import only creates a single topic named after the source word document and therefore associates all keywords with the single topic.  when trying to navigate the index after the CHM is generated, all links simply reference the beginning of the document.
    When using the search feature in the CHM, only a single result is returned for any search words.  This result is always the single topic as described above.  The results link always returns you to the start of the document but does highlight the keyword throughout the document.

    When you import there is an Advanced button in one of the dialogs. Click that and you will be able to Paginate against chosen styles. That will break your document into topics.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Trouble creating Oracle Text index

    Hey all,
    I am having trouble creating an Oracle Text index. I am receiving the following error when I try to sync the index after inserting numerous rows (@170,000). I have also tried to insert the rows and then create the index afterword. See below.
    ORACLE_TEXT>insert into varchar_test_ot select doc from varchar_test;
    171327 rows created.
    Elapsed: 00:06:40.08
    ORACLE_TEXT>exec ctx_ddl.sync_index('VT_TEST_IDX_OT');
    BEGIN ctx_ddl.sync_index('VT_TEST_IDX_OT'); END;
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drekmap (lob write)
    ORA-22990: LOB locators cannot span transactions
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.CTX_DDL", line 1328
    ORA-06512: at line 1
    Elapsed: 00:02:09.07

    CREATE TABLE varchar_test
    (doc VARCHAR2(4000)
    CREATE TABLE varchar_test_ot
    (doc VARCHAR2(4000)
    begin
    ctx_ddl.create_preference('storage_pref','BASIC_STORAGE');
    ctx_ddl.set_attribute('storage_pref', 'I_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'K_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'R_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'N_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'I_INDEX_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'P_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.create_section_group('auto','AUTO_SECTION_GROUP');
    ctx_ddl.create_preference('mywordlist', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute('mywordlist','SUBSTRING_INDEX', 'YES');
    end;
    CREATE INDEX vt_test_idx_ot
    ON varchar_test_ot(doc)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('datastore ctxsys.default_datastore
    filter ctxsys.null_filter
    wordlist mywordlist
    storage storage_pref
    section group auto
    memory 50M');

  • Spotlight trouble indexing mail in Lion

    Having a terrible time with Spotlight perpetually indexing mail.
    system log shows
    Jul 11 17:01:26 xxxxx com.apple.mdworker.lsb.0[2660]: [Assigning new unique identifiers to all messages]
    Jul 11 17:01:26: --- last message repeated 249 times ---
    and of course All messages shows every one of those.
    also plenty of messages like
    Jul 11 17:03:02 xxxxx com.apple.mdworker.lsb.0[2660]: %Unterminated mailbox: [email protected].
    Jul 11 17:03:02 xxxxx com.apple.mdworker.lsb.0[2660]: %Unexpected characters at end of address: :;>
    Jul 11 17:03:02 xxxxx com.apple.mdworker.lsb.0[2660]: %Unterminated mailbox: [email protected].
    Jul 11 17:03:02 xxxxx com.apple.mdworker.lsb.0[2660]: %Unexpected characters at end of address: :;>
    Jul 11 17:03:04 xxxxx com.apple.mdworker.lsb.0[2660]: %Missing parameter value: NAME
    Jul 11 17:03:04 xxxxx com.apple.mdworker.lsb.0[2660]: %Missing parameter value: FILENAME
    -- those seem to be ridiculous errors for Spotlight -- if it can't figure out how to parse some of the info, it should ignore that info.
    This continues until the disk cache gets totally overloaded, and the machine slows down.
    Only help is to reboot.
    I have tried turning off spotlight indexing to delete the spotlight cache (and used Cocktail to delete the Spotlight index)
    That was no help.
    Also rebuilt all of the mailboxes within the Mail program.
    Then turned indexing off and back on.
    Still no help.
    Just tried deleting a couple of old mailbox entries in ~/Library/Mail
    There was an old Unix mailbox there from an early version of OS X, and another one that I could not identify, and should have been deleted long ago.
    I know I can turn off the indexing for mail, but that is one area where I would like to keep it.
    I haven't tried a reboot since the latest deletes, but seeing the same messages flowing in the logs does not give me much hope.
    It may be possible that 1 or 2 bad emails are causing all the trouble, but I am at a loss to find them.
    Have 18 different accounts that are active ( I do web work so have webmaster, and other accounts on a number of servers).
    Those are a mix of IMAP and POP.
    INBOX total is usually kept around 100 emails - almost never goes above 200 unless I am away for an extended time.
    Most mail ends up in folders ON MY MAC.
    Largest of those has about 1500 messages.
    Do not have extra folders on the servers with any of the IMAP accounts.
    It is about time I archive some of the older messages, and that may help, but it will take me a while to get to that, and then flush the messages.
    Problem occurred after update to Lion.
    Did not seem to have the problem with Snow Leopard
    Anyone have any other ideas?

    I thought I had posted a follow up to this posting, but I guess not.
    Soooo, here it is.
    The problem was not with Apple Mail.app as it seemed, but actually with Mailsmith.app.
    I use it for a number of mail accounts that I want to handle separately from my other mail accounts.
    Within that application there is a Spotlight helper/worker
    -- /Applications/Mailsmith.app/Contents/Library/Spotlight/MailsmithImporter.mdimporter/ --
    That is what was causing the problem for me.
    Some users remove that section from the application, or do as I did -
    Set the folders for Mailsmith mail for privacy in Spotlight.
    Note: also set any backups of the Mailsmith mail for privacy also.
    I filed a bug report with Mailsmith, but it is still open.
    There appear to be a lot of issues with their Spotlight helper through the various versions of OS and Mailsmith.
    see their discussion groups -
    https://groups.google.com/forum/?fromgroups=#!searchin/mailsmith-talk/spotlight$ 20indexing
    The problem may be with certain emails, attachments, or addresses, don't know.
    I am happy excluding that mail from Spotlight, and now my logs don't overflow and crash, the machine goes into deep sleep, and runs much cooler.

  • First Try with JE BDB - Indexes and Inheritance troubles... (FIXED)

    Hi Mark,
    Mark wrote:
    Hi, I'm a newbie here trying some stuff on JE BDB. And now I'm having
    I am happy to help you with this, but I'll have to ask you to re-post this question to the BDB JE forum, which is...
    Sorry for the mistake. I know now that here is the place to post my doubts.
    I'm really interested in JE BDB product. I think it is fantastic!
    Regarding my first post about "Indexes and Inheritance" on JE BDB, I found out the fix for that and actually, it wasn't about "Indexes and Inheritance" but "*Inheritance and Sequence*" because I have my "@Persistent public abstract class AbstractEntity" with a "@PrimaryKey(sequence = "ID_SEQ") private Long id" property.
    This class is extended by all my business classes (@Entity Employee and @Entity Department) so that my business classes have their PrimaryKey autoincremented by the sequence.
    But, all my business classes have the same Sequence Name: "ID_SEQ" then, when I start running my JE BDB at first time, I start saving 3 new Department objects and the sequence for these department objects star with "#1" and finishes with #3.
    Then I continue saving Employee objects (here was the problem) I thought that my next Sequence number could be #4 but actually it was #101 so when I tried to save my very first Employee, I set the property "managerId=null" since this employee is the Manager, then, when I tried to save my second Employee who is working under the first one (the manager employee), I got the following exception message:
    TryingJEBDBApp DatabaseExcaption: com.sleepycat.je.ForeignConstraintException: (JE 4.0.71) Secondary persist#EntityStoreName#com.dmp.gamblit.persistence.BDB.store.eployee.Employee#*managerId*
    foreign key not allowed: it is not present in the foreign database
    persist#EntityStoreName#com.dmp.gamblit.persistence.BDB.store.eployee.Employee
    The solution:
    I fixed it modifying the managerId value from "4" to "101" and it works now!
    At this moment I'm trying to understand the Sequence mechanism and refining concerns about Cursors manipulation...
    Have you any good material about these topics, perhaps a link where I can find more detailed information on these?
    Thanks in advance Mark, thanks for your attention on this and I will post more doubts in the future for sure ;0)
    Regards,
    Diego

    Hi Diego,
    I fixed it modifying the managerId value from "4" to "101" and it works now!I'm glad you found the problem. It is usually best to get the assigned ID from the entity object after you call put(), and then use that value to fill in related fields in other entities. The primary key field (assigned from the sequence) is set by the put() method.
    At this moment I'm trying to understand the Sequence mechanism and refining concerns about Cursors manipulation...Have you any good material about these topics, perhaps a link where I can find more detailed information on these? >
    To find documentation, start at the first message in the forum, the Welcome message:
    http://forums.oracle.com/forums/ann.jspa?annID=250
    This refers to the main JE doc page, the JE FAQ and a white paper on DPL queries. The FAQ has a section on the DPL, which refers to the javadoc. The DPL javadoc has lots of info on using cursors along with indexes (see EntityIndex, PrimaryIndex, SecondaryIndex). The white paper will be useful to you if you're accustomed to using SQL.
    I don't know of any doc on sequences other than the javadoc:
    http://www.oracle.com/technology/documentation/berkeley-db/je/java/com/sleepycat/persist/model/PrimaryKey.html#sequence()
    This doc will point you to info on configuring the sequence, if that's what you're interested in.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Trouble with home page being indexed

    Hi
    For some reason my home page isn't being indexed by Google and I can't understand why. If I put in site:thelittlethings.info/Home.html into Google it doesn't appear but it does if I go to that URL so it definitely exists in that form. If I put just site:thelittlethings.info into Google then my home page comes up but just as www.thelittlethings.info/.
    I think I may have done something wrong when renaming my index file or something as this problem never used to exist. Can someone explain to me how I need to publish the site if I don't want my home page to be the first url in the nav bar because I think this is where the problem exists unless someone has a different idea. I know I have a few issues with the seo on my site but this seems to be a specific and fundamental error that I making.
    Cheers

    Can anyone help me as this is still bugging me - it's not a problem I used to have and I'm sure it's because I've made changes to my home page and done something wrong when setting which page is the index - would that make sense?
    The home page is http://www.thelittlethings.info/home.html or http://www.thelittlethings.info/ as it is showing in my web stats

Maybe you are looking for

  • Original SATA HDD in mid-2009 MBP has dissappeared, completely dissappeared...

    Hi there, I have been successfully running a OCR Vertex 4 256GB SSD in the optical bay as a the boot HDD with two partitions of OSX and Win7 through Bootcamp.  The original 256GB 5400RPM HDD remained in its original position and was being used for fi

  • Unable to install Adobe Reader 11.0.04 in Mavericks

    Installer downloads and installs OK. No error messages. Installation then continues normally until halfway through "Retrieveing Install" Connection fails, My internet connection is stable. All other downloads and installations work I keep getting the

  • How to make Eraser

    Hi, I have created all tools rectangle, rounded rectangle and now i wana erase it. The end user can erase it by dragging mouse on applet. Please help me. Thanks in advance....

  • E4200 Upgrade 1.0.03 Stuck at 98%

    Hi, I downloaded the firmware from the Linksys site. I'm using IE v9 on a Win7 Pro x32. I'm using the E4200 as an access point so DHCP is disabled, no cable in the WAN port. I uploaded the firmware but it seems to be stuck for 30 minutes at 98%. I re

  • Slow rendering on rMBP when display is off

    I'm batch rendering Premiere Pro CC timelines to MPEG 2. These are 3 minute movies that take about 30 minutes when I render them direct from Premiere Pro CC. When I queue them in AME the rendering goes slower. Renderings then take up to 40-50 minutes