Generating n:m relationships

Hi all,
i have two tables linked via an intersection table, a typical n:m thing. I'd like to generate a form displaying this relationship, like there's the data of the one table in the first block, and all records of the second table - that match the current record in the first block - in the second block. It works as I get all corresponding records of the intersection table, but the fields of the data table, which is defined as lookup to the intersection table, remain empty.
Any idea of what the clue may be?
Any help appreciated.
Thanks
Phil

Hi all,
i have two tables linked via an intersection table, a typical n:m thing. I'd like to generate a form displaying this relationship, like there's the data of the one table in the first block, and all records of the second table - that match the current record in the first block - in the second block. It works as I get all corresponding records of the intersection table, but the fields of the data table, which is defined as lookup to the intersection table, remain empty.
Any idea of what the clue may be?
Any help appreciated.
Thanks
Phil

Similar Messages

  • Generating n:m relationships, empty lookup items

    Hi all,
    i have two tables linked via an intersection table, a typical n:m thing. I'd like to generate a form displaying this relationship, like there's the data of the one table in the first block, and all records of the second table - that match the current record in the first block - in the second block. It works as I get all corresponding records of the intersection table, but the fields of the data table, which is defined as lookup to the intersection table, remain empty.
    Any idea of what the clue may be?
    Any help appreciated.
    Thanks
    Phil

    BalusC wrote:
    You're here at a Sun JSF forum, not at a JBoss RichFaces forum. It seems logical to me that you will have more luck at the right forum :) Here it is: [http://www.jboss.com/index.html?module=bb&op=viewforum&f=261]
    I have posted there too with no response. Anyway, I thought this forum was about JSF in general and not just about Sun's RI as it already has a few MyFaces and Richfaces related queries. ;)

  • Dynamically generating workflow and relationship images to the Web

    Is there a good toolkit (open source maybe) out there that will allow me to dynamically draw images containing a workflow or show relationships? I only see packages that are geared for charts, I want to dynamically draw the dependency between 2 or more objects on the fly. To be able to do that I need to be able to draw rectangles (2 or 3d), lines with ends (as in Visio or something) and draw text in the box representing the entity name. I don't want to have to code all this myself using BufferedImage etc. Looking for a nice little toolkit.
    Thanks

    We really need to see what you're seeing.
    Can you post links to before and after?

  • Generating Entity - RelationShip in Oracle SQL Developer.

    Is it possible to generate an Entity - RelationShip diagram from Oracle SQL Developer?
    Thanks in advance,
    Jaime.

    If you're willing to pay the 3000 quid per seat (+ annual support costs), take a look at [Oracle SQL Developer Data Modeler|http://www.oracle.com/technology/products/database/datamodeler/index.html].
    Have fun,
    K.

  • O/R mapping tool generates bad descriptors for CMP2.0

    The O/R tool has many problems with EJB-CMP 2.0.
    It generates bad ejb-jar.xml (misses the <cmr-field-type> tag, has the same relationship field included in both the <entity> tag and the <relationships> tag).
    The worst part is that is generates bad TopLink descriptors!
    I have numerous indirect 1-1 bean-pojo (plain old java object). When I have the 'tool' generate the ejb-jar.xml and deployment xml it generates all these relationships incorrectly.
    The O/R 'tool' forces you to use transparent indirection for CMP 2.0 relationships; transparent indirection does not allow you to specify 'use method accessing'. Fine. But when I go to deploy the compiled jar, I get ALL sorts of errors complaining that:
    EXCEPTION [TOPLINK-1] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.toplink.exceptions.DescriptorException
    EXCEPTION DESCRIPTION: The attribute [addressToDesc] is not declared as type ValueHolderInterface, but its mapping uses indirection.
    MAPPING: oracle.toplink.mappings.OneToOneMapping[addressToDesc]
    DESCRIPTOR: Descriptor(...
    ARGH!! What the heck do I need to do to get this 'tool' to work? It won't LET me use valueholder in EJB-CMP2.0, but then it complains when when I don't!?!?!
    Frustrated,
    Andrew

    (from toplink support)
    Andrew,
    Hi there. I've performed some research regarding
    your question, and it appears that having an
    "automatic" 1:1 indirect relationship between an EJB
    2.0 Entity Bean and a dependent Java object is not
    currently supported by TopLink. Examining the
    documentation, this non-support unfortunately isn't
    documented. I have entered a feature request on your
    behalf so that we might be able to support it in a
    future major version of TopLink.
    However, there are a couple of alternatives which
    you can use:
    1) We do support non-indirect 1:1 relationships
    between an EJB 2.0 Entity Bean and a dependent Java
    object. You could disable indirection, and maybe
    make the relationship a batch read relationship so
    that your performance will not be degraded.
    2) You can write a concrete getter and setter, and
    provide an instance variable on the entity bean for
    your dependent object of type ValueHolderInterface.
    Provide the private getters and setters for set and
    get -Holder. Map this normally using TopLink, and
    make sure Indirection is specified in the Mapping
    Workbench.
    IMPORTANT: TopLink will handle the normal
    persistence management for this relationship,
    however you will need to handle the merging back of
    this object yourself (you had to do this in EJB 1.1
    in TopLink as well). Luckily there are good docs on
    this, and it's covered in detail - look at the
    TopLink for WebLogic documentation : Runtime
    Considerations > Managing dependent objects.
    Personally, I would implement solution 1) with batch
    reading on the attribute, because the dependent
    object shouldn't be that "big" (otherwise it would
    be an entity bean). This is an easier solution,
    however you should investigate 2) fully yourself.

  • ABAP code for Hierarchy Loading from Flat File

    Hi,
    Can anyone give me some idea / ABAP code for generating parent - child relationships (NODEIDS) from a flat file and load into BW.
    Best regards
    Any insight into this development is highly appreciated

    Hi,
    also have a look at this how to to get informations about the file structure:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb
    /manfred

  • Custom BDOC issue for xif interface

    Hi CRM gurus.
    I am using XIF interface for sending BP and REL details to external system.The creation of contact person doesnu2019t have standard address fields (postcode, city etc). We are enhancing webclient by adding standard address context node and save the data. Now problem is with Bdoc and Idocs. What is the procedure to add this address for BUPA_REL object and where I have to modify the code which generates bdoc for relationship along with address. I found BURS_EI_ADDRESS is the address structure used for BUPA_MAIN. Please help me out with possible answers. Looking forward for answers.
    thanks

    Ramya,
    Check this blog if it can help..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/406efa7e-388a-2910-f9b8-81913b0ca57f

  • Use of  Tool Options Tool Locations HTML Editors

    Hi all,
    Can somebody point me to some introductory documentation on
    the use of the
    Tool > Options > Tool Locations > HTML Editors tab;
    I mean the business about the Generator/Associated Editor
    relationship and meta-tags.
    Tia,
    - avi

    What we'd like to do is somthing like:
    <br>
    http://edocs.bea.com/wls/docs81/javadocs/weblogic/security/UserConfigFileManager.html
    <br><pre>
    wls:/(offline)> import weblogic
    wls:/(offline)> man=weblogic.security.UserConfigFileManager("./managed.properties", "./SerializedManaged.dat")
    wls:/(offline)> unap=weblogic.security.UsernameAndPassword()
    wls:/(offline)> unap.setUsername("system")
    wls:/(offline)> unap.setPassword("SimonWasHere")
    wls:/(offline)> man.setUserNameAndPassword(unap)
    wls:/(offline)> man.store()
    But this does not seem to work.</pre>

  • Loading xml into relational tables.

    I was wondering if anyone knows of a product/libraries which does the following:
    -Read data from a relational Database (multiple tables) and generate XML files based upon an XML Schema or DTD file?
    -Read XML files and load data into a relational Database.
    -Graphical Interface for performing the maps (perhaps based upon .xslt). ie.... Mapping of the XML Schema to Multiple Database Tables, Performing Joins etc...
    -Ability to connect to any type of Relational database (not just Oracle). Which rules out XML DB.

    This product does look to be ok, however it is missing a couple features that I would like the product to have.
    I would like this product to be able to insert/update data across multiple tables. Being able to do such things as generate foreign key relationships.
    It doesn't seem as though the XML being generated can be customized very easily. Some XML formats I deal with are very complex (such as X12/EDI).
    I would really like a graphical mapper.
    Here is a note from the doc:
    Storing XML Data Across Tables
    Currently the XML SQL Utility (XSU) can only store data in a single table. It maps a canonical representation of an XML document into any table or view. But there is a way to store XML with XSU across tables. You can do this using XSLT to transform any document into multiple documents and insert them separately. Another way is to define views over multiple tables (using object views if needed) and then do the insertions into the view. If the view is inherently non-updatable (because of complex joins), then you can use INSTEAD OF triggers over the views to do the inserts.
    This product looks really good, I was hoping that Oracle had something comparable:
    http://www.hitsw.com/products_services/xml_platform/allora.html

  • Killing, Frm-40654 Record has been upd...Re-query to see change

    believe me guys, this is my 3rd night scratching my head to find the solution for this error.
    i saw some post, infact many posts, realize that its an age-old problem faced by many developers.
    i have a master-detail Purchase_Order form, where there are 3 blocks;
    1) purchase_order_header 2) purchase_order_details and 3) ctrl
    CREATE TABLE purchase_ORDER_header
    (POH_comp_CODE VARCHAR2(3) NOT NULL,
    POH_CODE VARCHAR2(6) NOT NULL,
    POH_DATE  DATE NOT NULL,
    POH_no number not null,
    POH_quot_REF_code varchar2(6),
    POH_QUOT_ref_NO NUMBER,
    POH_PARTY_CODE VARCHAR2(6) NOT NULL,
    POH_GROSS_fc_amount     NUMBER(13,3),
    POH_GROSS_lc_amount     NUMBER(13,3),
    POH_COMM_PERC        NUMBER(6,3),
    POH_COMM_fc_AMounT      NUMBER(13,3),
    POH_COMM_lc_AMounT      NUMBER(13,3),
    POH_NET_fc_amount       NUMBER(13,3),
    POH_NET_lc_amount       NUMBER(13,3),
    POH_FREIGHT_fc_amount NUMBER(13,3),
    POH_FREIGHT_lc_amount NUMBER(13,3),
    POH_CLEARING_fc_amount NUMBER(13,3),
    POH_CLEARING_lc_amount NUMBER(13,3),
    POH_SHIp_from varchar2(200),
    POH_sHIP_to varchar2(200),
    POH_tpt_MODE VARCHAR2(15),
    POH_EXPECTED_date date,
    POh_FX_rate       number(12,8),
    POH_REMARKS              VARCHAR2(200),
    POH_CR_UID               VARCHAR2(12),
    POH_CR_DT                DATE,
    POH_UPD_UID              VARCHAR2(12),
    POH_UPD_DT               DATE,
    conStraint POH_PK PRIMARY KEY (POH_COMP_CODE,POH_code,POH_NO));
    NON-db item used at purchase_order_header block level;
    poh_party_name,m_cntry_name, m_prev_tot_amt_scy, m_prev_tot_amt_lcy, m_curr_code_scy, m_curr_code_scy_disp,
    CREATE TABLE purchase_ORDER_DETAIL
    (POD_COMP_CODE    VARCHAR2(3) NOT NULL,
    POD_DATE          DATE not null,
    POD_POH_CODE      VARCHAR2(6) NOT NULL,
    POD_POH_NO        NUMBER(10) NOT NULL,
    POD_prod_CODE     VARCHAR2(6) not null references product_MAstER(prod_CODE),
    POD_uom           varchar2(6),
    POD_CURR_CODE     VARCHAR2(3),
    POD_QTY           NUMBER(10) not null,
    POD_RATE          NUMBER(9,3) not null,
    POD_LC_AMOUNT        NUMBER(13,3),
    POD_FC_amount        NUMBER(13,3),
    POD_REMARKS       VARCHAR2(200),
    POD_CR_UID        VARCHAR2(12),
    POD_CR_DT         DATE,
    POD_UPD_UID       VARCHAR2(12),
    POD_UPD_DT        DATE,
    CONSTRAINT POD_fk FOREIGN KEY (POD_COMP_CODE,POD_POH_CODE, POD_POH_no) REFERENCES
    PURCHASE_ORDER_headER(POH_COMP_CODE,POH_code,POH_NO) ON DELETE CASCADE);
    NON-db item used at purchase_order_detail block level;
    pod_prod_name
    *ctrl*
    m_old_vah_no
    m_user_id
    m_comp_code
    m_cursor_hint_rec
    m_txn_title
    m_cr_uid_disp
    m_cr_dt_disp
    m_curr_code_bcy
    m_brok_cntry_code
    though multi-user form, but right now ii am the only single user using.
    i was just testing this form by querying records and repeatedly changing values inside form and saving,
    just to confirm the validation are being performed as expected.
    how form is behaving, on some records, it is allowing me changing values over-n-over without the error(above),
    but on some records it allows editing, but if i repeat changing values, the error is flashed.
    based on the discussion i tried & change my form at various places as suggested. such as,
    setting DML Returning values=Yes
    trigger at form-level
    *WNFI*
    :M_cr_DT_disp := SYSDATE;
    :poH_date := SYSDATE;
    :POH_tpt_MODE := 'Road';
    SET_ITEM_PROPERTY('POH_NO',ENABLED,PROPERTY_FALSE);
    *WNRI*
    :M_CR_DT_DISP  := SYSDATE;
    *KEY-COMMIT*
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
    COMMIT_FORM;
    POST_COMMIT_ACTION;
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'DEFAULT');
    CHECK_PacKaGe_FAILURE ;
    GO_BLOCK('PURCHASE_ORDER_HEADER');
    *PRE-COMMIT*
    BEGIN
       :M_OLD_VAH_NO := :poh_NO ;
    END;
    *PRE-FORM*
    :M_COMP_CODE := :GLOBAL.M_COMP_CODE;
    :M_COMP_NAME := :GLOBAL.M_COMP_NAME;
    :M_USER_UID  := :GLOBAL.M_USER_UID;
    :poH_CODE                  := :GLOBAL.POh_CODE;
    :poH_COMP_CODE    := :GLOBAL.M_COMP_CODE;
    :M_TXN_TITLE                 := :GLOBAL.M_TXN_TITLE;
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,TITLE,:GLOBAL.M_WINDOW_TI
    TLE);
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW,WINDOW_STATE,MAXIMIZE);
    :GLOBAL.M_LANG_CODE := 'ENG';
    *ON-CLEAR-DETAILS* <SYSTEM GENERATED)
    *KEY-EXIT*
    CLEAR_BLOCK(NO_VALIDATE);
    CLEAR_FORM(NO_VALIDATE);
    EXIT_FORM(NO_VALIDATE);
    my header-block-level triggers, pre-updates
    :POH_UPD_UID := :M_USER_UID;
    :POH_UPD_DT := SYSDATE;
    pre-insert
    headerblock
    :POH_CR_UID := :M_USER_UID;
    :POH_CR_DT := SYSDATE;
    P_GEN_DOC_NO(:poH_NO,:poH_CODE,'001');
    CHK_UNIQUE_DOC_NO;
    pre-delete
    system generated
    pre-record
    :M_CR_DT_DISP  := :POH_CR_DT ;
    :M_CR_UID_DISP := :POH_CR_UID;
    :M_TXN_TITLE := 'P U R C H A S E';
    key-entqry
    CLEAR_RECORD;
    CLEAR_BLOCK(NO_VALIDATE);
    CLEAR_BLOCK(NO_VALIDATE);
    ENTER_QUERY;
    post-query
    DECLARE
         CURSOR C_SUPL_CODE IS SELECT      SUPL_NAME, SUPL_cntry_CODE
                               FROM        SUPPLIER_MASTER
                               WHERE       SUPL_CODE = :POH_PARTY_CODE;
         CURSOR C_BRok_CURR Is SELECT CNTRY_NAME, CNTRY_CURR_CODE
                                  from   INVS_country
                                  where  CNTRY_code = :m_BROK_CNTRY_code;
         M_DUMMY VARCHAR2(1);
    BEGIN
              OPEN  C_SUPL_CODE;
              FETCH C_SUPL_CODE INTO :POH_PARTY_NAME,:M_brok_CNTRY_code;
              IF    C_SUPL_CODE%NOTFOUND THEN
                          MESSAGE('PCPlease create the Supplier of this code!');
                          MESSAGE(' ');
                          RAISE FORM_TRIGGER_FAILURE;
              END IF;
              CLOSE C_SUPL_CODE;
              OPEN  C_brok_Curr;
              FETCH C_brok_Curr INTO :M_CNTRY_NAME, :M_CURR_CODE_SCY;
              CLOSE C_BROK_curr;
              :M_CURR_CODE_SCY := '('||:M_CURR_CODE_SCY||')';
              :M_CURR_CODE_SCY_DISP := :M_CURR_CODE_SCY;
    END;
    on-populate-details
    <system generated on creating Relationship header-detail>
    trigger at detail block-level
    pre-update
    :pod_UPD_UID := :M_USER_UID;
    :POD_UPD_DT := SYSDATE;
    pre-insert
    :POD_CR_UID          := :M_USER_UID;
    :POD_CR_DT           := SYSDATE;
    :POD_DATE            := :POH_DATE;
    :POD_curr_code := SUBSTR(:M_curr_CODE_SCY,2,3);
    pre-record
    :M_PREV_TOT_AMT_SCY := NVL(:POH_GROSS_fc_AMOUNT,0) -
                           NVL(:POD_fc_AMOUNT,0);
    :M_PREV_TOT_AMT_LCY := NVL(:poH_GROSS_LC_AMOUNT,0) -
                           NVL(:poD_lc_AMOUNT,0);
    when-remove-record
    :poH_GROSS_fc_AMOUNT := NVL(:poH_GROSS_fc_AMOUNT,0) -
    NVL(:POD_fC_AMOUNT,0);
    :poH_GROSS_Lc_AMOUNT := NVL(:poH_GROSS_Lc_AMOUNT,0) -
    NVL(:POD_LC_AMOUNT,0);
    :POH_COMM_fc_Amount      :=     NVL(:poH_GROSS_fc_AMOUNT,0)* NVL(:poH_COMM_PERC,0)/100;
    :POH_COMM_LC_Amount      :=     NVL(:poH_GROSS_Lc_AMOUNT,0)* NVL(:poH_COMM_PERC,0)/100;
    :PoH_NET_FC_AMOUNT   :=      NVL(:poH_GROSS_fc_AMOUNT,0)    -
    NVL(:poH_COMM_fc_AMOUNT,0)     +
    NVL(:POH_freight_FC_amount,0)  +
    NVL(:POH_CLEARING_fc_amount,0) ;
    :POH_NET_lc_AMOUNT   :=      NVL(:poH_GROSS_Lc_AMOUNT,0)    -
    NVL(:poH_COMM_LC_AMOUNT,0)         +
    nvl(:POH_freight_lC_amount,0)  +
    nvl(:POH_CLEARING_lc_amount,0) ;
    post-query
    DECLARE
         CURSOR C_PROD IS SELECT prod_NAME
                          FROM   PRODUCT_MASTER
                       WHERE  PROD_CODE = :poD_PROD_CODE;
    BEGIN
                   OPEN  C_PROD;
                   FETCH C_PROD INTO :pod_PROD_name;
                   IF    C_PROD%NOTFOUND THEN
                                  MESSAGE('DPROD does not exists!');
                                  MESSAGE(' ');
                                  RAISE FORM_TRIGGER_FAILURE;
                   END IF;
                   CLOSE C_PROD;
    END;
    i have button-pallette for horizantal canvas used for iconic button for,
    m_comp_name  (display_item)
    previous_record,next_record,go_top,go_bottom,query,save,exit,d
    elete_record,create_record,copy_record,
    clear & print. all are iconic button with just 1 trigger
    when-button-pressed
    SET_ITEM_PROPERTY('CTRL.M_CURSOR_HINT_REC',DISPLAYED,PROPERTY_
    FALSE);
       :M_CURSOR_HINT_REC := '';
       do_key('...
    PROGRAM UNITS PROCEDURES
    PROCEDURE CHK_UNIQUE_DOC_NO IS
    CURSOR C_poH IS
           SELECT 'X'
           FROM  purchase_ORDER_HEADer
           WHERE POH_COMP_CODE = :POH_COMP_CODE
           AND   POH_CODE  = :POH_CODE
           AND   POH_NO    = :POH_NO;
    DUMMY VARCHAR2(1);
    BEGIN
       IF :PURCHAsE_order_HEADer.ROWID IS NULL THEN
          OPEN  C_poH;
          FETCH C_poH INTO DUMMY;
          IF C_poH%FOUND THEN
             MESSAGE('TXN NO. ALREADY EXISTS IN PAY_VCH_TXN_HEAD TABLE');
             MESSAGE(' ');
             CLOSE C_poH;
             RAISE FORM_TRIGGER_FAILURE;
          END IF;
          CLOSE C_poH;
       END IF;
    END;
    PROCEDURE POST_COMMIT_ACTION IS
    M_MSG VARCHAR2(30);
    BEGIN
       IF :poH_NO != :M_OLD_VAH_NO THEN
    --      STD_ERROR_ROUTINE(105002, :GLOBAL.M_LANG_CODE, TO_CHAR(:VAH_NO));
            M_MSG := 'New Document is'||' '||TO_CHAR(:poH_NO);
            MESSAGE(M_MSG);
       END IF;
    END;
    PROCEDURE P_GEN_DOC_NO
              (P_DOC_NO        IN OUT  NUMBER,
               P_TXN_CODE      IN      VARCHAR2,
               P_COMP_CODE     IN      VARCHAR2) IS
    M_CURR_NO     PM_TXN_DOC_RANGE.TXND_CURR_NO%TYPE ;
    M_TO_NO       PM_TXN_DOC_RANGE.TXND_TO_NO%TYPE ;
    M_ROWID       VARCHAR2(20) ;
    CURSOR C1 IS
           SELECT NVL(TXND_CURR_NO, 0) + 1, NVL(TXND_TO_NO, 0), ROWID
           FROM   PM_TXN_DOC_RANGE
           WHERE  TXND_COMP_CODE = P_COMP_CODE
           AND    TXND_TXN_CODE  = P_TXN_CODE
           FOR    UPDATE OF TXND_CURR_NO ;
    BEGIN
          OPEN C1;
          FETCH C1 INTO M_CURR_NO, M_TO_NO, M_ROWID ;
          IF C1%NOTFOUND THEN
             CLOSE C1;
             MESSAGE('TRANSACTION NO. NOT INITIALISED');
             MESSAGE(' ');
             RAISE FORM_TRIGGER_FAILURE;
          END IF ;
       IF M_CURR_NO > M_TO_NO THEN
          MESSAGE('CURRENT TXN NO. IS OVER THE LIMIT');
          MESSAGE(' ');   
          RAISE FORM_TRIGGER_FAILURE;
       END IF ;
       P_DOC_NO := M_CURR_NO ;
       UPDATE PM_TXN_DOC_RANGE
       SET    TXND_CURR_NO = P_DOC_NO
       WHERE  ROWID = M_ROWID ;
       CLOSE C1;
    END;
    PROCEDURE P_GEN_DUMMY_DOC_NO
              (P_DOC_NO        IN OUT  NUMBER,
               P_TXN_CODE      IN      VARCHAR2,
               P_COMP_CODE     IN      VARCHAR2) IS
    M_CURR_NO     PM_TXN_DOC_RANGE.TXND_CURR_NO%TYPE ;
    M_TO_NO       PM_TXN_DOC_RANGE.TXND_TO_NO%TYPE ;
    CURSOR O_GET_DOC_NO IS
           SELECT NVL(TXND_CURR_NO, 0) + 1, NVL(TXND_TO_NO, 0)
           FROM   PM_TXN_DOC_RANGE
           WHERE  TXND_COMP_CODE = P_COMP_CODE
           AND    TXND_TXN_CODE  = P_TXN_CODE;
    BEGIN
       OPEN O_GET_DOC_NO;
       FETCH O_GET_DOC_NO INTO M_CURR_NO, M_TO_NO ;
       IF O_GET_DOC_NO%NOTFOUND THEN
          MESSAGE('DUMMTRANSACTION NO. NOT INITIALISED');
          MESSAGE(' ');
          RAISE FORM_TRIGGER_FAILURE;
       END IF ;
       CLOSE O_GET_DOC_NO;
       IF M_CURR_NO > M_TO_NO THEN
          MESSAGE('DUMMCURRENT TXN NO. IS OVER THE LIMIT');
          MESSAGE(' ');   
          RAISE FORM_TRIGGER_FAILURE;
       END IF ;
       P_DOC_NO := M_CURR_NO ;
    END;i request,please please please,,advice me something as it has taken very long.
    i would welcome and be greatful ever if someone ask me to send the .fmb file and have look at it.

    poelger wrote:
    Make sure that the fields you use in your form don't have trailing spaces in the database.you mean my db table fields length is greater than the ones displayed on form?
    for example my POD_RATE is NUMBER(9,3) and on form its Maximum length is 11,
    so if i enter 2.5, will you say that my db field POD_RATE has trailing space?
    i tried to change some form fields length to match with the db fields length.
    but now the form has become wild, it is flashing this error on the screen many times on change and navigation
    and even while exit form

  • Please ADVISE: Implementation of ARCs at Table Level

    Dear Colleague,
    While modeling with Designer (DS9i, Release2), I have made use of Arcs, i.e. when only ONE of two or more relationships are applicable at a time, but two or more of the relationships are possible.
    I have the situation in which an ARC contains two relationships that are also part of the primary key.
    My question is: How will designer implement this at the table level when I generate the table defintions from the entity definitions?
    I assume:
    1. that one column is generated for each relationship.
    2. that a check constraint is generated e.g.
    (col_1 is NULL and col_2 is NOT NULL) OR
    (col_1 is NOT NULL and col_2 is NULL)
    Since one of the two columns must be NULL, these columns cannot be part of the Primary key. Does Designer consequently, generate no Primary key constraint, but only a candidate key constraint?
    Please advise.
    Best regards,
    Randy

    Hi Randy,
    I suggest you make changes in the table design after transformation. You can then arrange your own design solution to the problem (either single key or multi-key with check constraints). Remember the database design transformer is not intended to provide a directly usable design, just a 'first-cut'.

  • Data Modeler foreign key names

    Hi,
    I've been using Data modeller for a while now and it works beautifully, anyhow there is an issue I would appreciate if anybody can help me in.
    For foreign keys, if the master table primary key is names ID, the foriegn key will be ID also, and if already there is an ID column column in the detail table, it will be ID1, ID2 ....
    Can I change the naming method to be like the oracle designer, or any convention I would like ??
    Thanks
    AK

    I'm using the Logical Model V 1.5.1Paul,
    it's pre-production release. Data Modeler is free now and you can download current published release - it.s version 2.0.0.584.
    There is "Attributes" page in relationship dialog (version 2.0) and you can see attributes generated by that relationship.
    For foreign keys in relational model - there is "Associated columns" page, you also can see referred key there.
    Naming templates for FK columns and attributes can be defined in version 2.0.0.584.
    Philip

  • Read Data XML Files or Xml Schema

    Hi
    I need load info from XML files o schemas, using JavaScript
    How is the conecction a xmlshema o xml file with JavaScript?
    Thanks

    This product does look to be ok, however it is missing a couple features that I would like the product to have.
    I would like this product to be able to insert/update data across multiple tables. Being able to do such things as generate foreign key relationships.
    It doesn't seem as though the XML being generated can be customized very easily. Some XML formats I deal with are very complex (such as X12/EDI).
    I would really like a graphical mapper.
    Here is a note from the doc:
    Storing XML Data Across Tables
    Currently the XML SQL Utility (XSU) can only store data in a single table. It maps a canonical representation of an XML document into any table or view. But there is a way to store XML with XSU across tables. You can do this using XSLT to transform any document into multiple documents and insert them separately. Another way is to define views over multiple tables (using object views if needed) and then do the insertions into the view. If the view is inherently non-updatable (because of complex joins), then you can use INSTEAD OF triggers over the views to do the inserts.
    This product looks really good, I was hoping that Oracle had something comparable:
    http://www.hitsw.com/products_services/xml_platform/allora.html

  • EJB-QL (foreign key)- error

    hi everyone. i am stuck, cheked everything and don't know where to look. i hope someone will help me. i use websphere 5.0
    i have 2 cmp entity ejb with one-many relationship between them. I wrote QL query using foriegn key. when i generate EJB-RDB mapping the error appears in TASK saying " myTable o does not have a field myforeignkey". when i click on tast it opens ejb dep...descriptor. i check descriptor and foreign key is there.
    where should i look? when i run validation before mapping generation it doesn't produce any error.

    i am new to J2ee and i let websphere to generate all description code. I spend 4 hours looking for this error and i just can'f fix it. it looks fine to me. can you have a look? i know the code is big. if you get extra time then help me. i cut it down. there is two entity beans each with one attribute. order id has second attribute as foreign key -generatorhome_id.
    the full error is like this:
    WQRY0036E:OrderId o does not have a field generatorhome_id. when i click on it takes me to my created <query-method> findByFor
    please help if have time. the code should be straight forward. if you want me to simplify code so you can better understand then let me know.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar id="ejb-jar_ID">
         <display-name>EJB</display-name>
         <enterprise-beans>
              <entity id="OrderId">
                   <ejb-name>OrderId</ejb-name>
                   <local-home>com.ibm.pbw.ejb.OrderIdLocalHome</local-home>
                   <local>com.ibm.pbw.ejb.OrderIdLocal</local>
                   <ejb-class>com.ibm.pbw.ejb.OrderIdBean</ejb-class>
                   <persistence-type>Container</persistence-type>
                   <prim-key-class>com.ibm.pbw.ejb.OrderIdKey</prim-key-class>
                   <reentrant>False</reentrant>
                   <cmp-version>2.x</cmp-version>
                   <abstract-schema-name>OrderId</abstract-schema-name>
                   <cmp-field id="CMPAttribute_1088406971782">
                        <field-name>ind</field-name>
                   </cmp-field>
                   <cmp-field>
                        <description>Generated to support relationships. Do NOT delete.</description>
                        <field-name>generatorhome_id</field-name>
                   </cmp-field>
                   <ejb-local-ref id="EJBLocalRef_1088406284143">
                        <ejb-ref-name>ejb/GeneratorHome</ejb-ref-name>
                        <ejb-ref-type>Entity</ejb-ref-type>
                        <local-home>com.ibm.pbw.ejb.GeneratorHomeLocalHome</local-home>
                        <local>com.ibm.pbw.ejb.GeneratorHomeLocal</local>
                        <ejb-link>GeneratorHome</ejb-link>
                   </ejb-local-ref>
                   <query>
                        <description></description>
                        <query-method>
                             <method-name>findByFor</method-name>
                             <method-params>
                                  <method-param>int</method-param>
                             </method-params>
                        </query-method>
                        <ejb-ql>select object(o) from OrderId o where o.generatorhome_id = ?1</ejb-ql>
                   </query>
              </entity>
              <entity id="GeneratorHome">
                   <ejb-name>GeneratorHome</ejb-name>
                   <local-home>com.ibm.pbw.ejb.GeneratorHomeLocalHome</local-home>
                   <local>com.ibm.pbw.ejb.GeneratorHomeLocal</local>
                   <ejb-class>com.ibm.pbw.ejb.GeneratorHomeBean</ejb-class>
                   <persistence-type>Container</persistence-type>
                   <prim-key-class>com.ibm.pbw.ejb.GeneratorHomeKey</prim-key-class>
                   <reentrant>False</reentrant>
                   <cmp-version>2.x</cmp-version>
                   <abstract-schema-name>GeneratorHome</abstract-schema-name>
                   <cmp-field id="CMPAttribute_1088406971792">
                        <field-name>id</field-name>
                   </cmp-field>
                   <ejb-local-ref id="EJBLocalRef_1088406284153">
                        <ejb-ref-name>ejb/OrderId</ejb-ref-name>
                        <ejb-ref-type>Entity</ejb-ref-type>
                        <local-home>com.ibm.pbw.ejb.OrderIdLocalHome</local-home>
                        <local>com.ibm.pbw.ejb.OrderIdLocal</local>
                        <ejb-link>OrderId</ejb-link>
                   </ejb-local-ref>
              </entity>
         </enterprise-beans>
         <relationships>
              <ejb-relation>
                   <description></description>
                   <ejb-relation-name>GeneratorHome-OrderId</ejb-relation-name>
                   <ejb-relationship-role id="EJBRelationshipRole_1088406971782">
                        <ejb-relationship-role-name>generatorhome</ejb-relationship-role-name>
                        <multiplicity>Many</multiplicity>
                        <relationship-role-source>
                             <ejb-name>OrderId</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>generatorhome</cmr-field-name>
                        </cmr-field>
                   </ejb-relationship-role>
                   <ejb-relationship-role id="EJBRelationshipRole_1088406971783">
                        <ejb-relationship-role-name>orderid</ejb-relationship-role-name>
                        <multiplicity>One</multiplicity>
                        <relationship-role-source>
                             <ejb-name>GeneratorHome</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>orderid</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
              </ejb-relation>
         </relationships>
    </ejb-jar>

  • Multiple referenced relationships over the same intermediate dimension - generated processing query

    Hi, I know the title is a bit confusing so let me try to explain it:
    I have added 3 new dimensions do the AdventureWorks cube - RefA, RefB and RefC:
    They are all related to the DimReseller table, and finally, to the FactResellerSales table. In the dimension usage chart, you can see that there are 4 referenced relationships using the Reseller dimension as the intermediate dimension. The Geography
    was the existing one, and the other 3 were added.
    Now, if I process a partition from the Reseller Sales measure group, the Profiler catches this generated query on the server:
    SELECT [dbo_FactResellerSales].[dbo_FactResellerSalesSalesAmount0_0] AS [dbo_FactResellerSalesSalesAmount0_0]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesOrderQuantity0_1] AS [dbo_FactResellerSalesOrderQuantity0_1]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesExtendedAmount0_2] AS [dbo_FactResellerSalesExtendedAmount0_2]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesTaxAmt0_3] AS [dbo_FactResellerSalesTaxAmt0_3]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesFreight0_4] AS [dbo_FactResellerSalesFreight0_4]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesDiscountAmount0_5] AS [dbo_FactResellerSalesDiscountAmount0_5]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesUnitPrice0_6] AS [dbo_FactResellerSalesUnitPrice0_6]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesUnitPriceDiscountPct0_7] AS [dbo_FactResellerSalesUnitPriceDiscountPct0_7]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesTotalProductCost0_8] AS [dbo_FactResellerSalesTotalProductCost0_8]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesProductStandardCost0_9] AS [dbo_FactResellerSalesProductStandardCost0_9]
    ,[dbo_FactResellerSales].[dbo_FactResellerSales0_10] AS [dbo_FactResellerSales0_10]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesEmployeeKey0_11] AS [dbo_FactResellerSalesEmployeeKey0_11]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesPromotionKey0_12] AS [dbo_FactResellerSalesPromotionKey0_12]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesSalesTerritoryKey0_13] AS [dbo_FactResellerSalesSalesTerritoryKey0_13]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesResellerKey0_14] AS [dbo_FactResellerSalesResellerKey0_14]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesProductKey0_15] AS [dbo_FactResellerSalesProductKey0_15]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesCurrencyKey0_16] AS [dbo_FactResellerSalesCurrencyKey0_16]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesOrderDateKey0_17] AS [dbo_FactResellerSalesOrderDateKey0_17]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesShipDateKey0_18] AS [dbo_FactResellerSalesShipDateKey0_18]
    ,[dbo_FactResellerSales].[dbo_FactResellerSalesDueDateKey0_19] AS [dbo_FactResellerSalesDueDateKey0_19]
    ,[dbo_DimReseller_6].[GeographyKey] AS [dbo_DimResellerGeographyKey5_0] -- 1
    ,[dbo_DimReseller_22].[RefAKey] AS [dbo_DimResellerRefAKey7_0] -- 2
    ,[dbo_DimReseller_23].[RefBKey] AS [dbo_DimResellerRefBKey9_0] -- 3
    ,[dbo_DimReseller_24].[RefCKey] AS [dbo_DimResellerRefCKey11_0] -- 4
    FROM (
    SELECT [SalesAmount] AS [dbo_FactResellerSalesSalesAmount0_0]
    ,[OrderQuantity] AS [dbo_FactResellerSalesOrderQuantity0_1]
    ,[ExtendedAmount] AS [dbo_FactResellerSalesExtendedAmount0_2]
    ,[TaxAmt] AS [dbo_FactResellerSalesTaxAmt0_3]
    ,[Freight] AS [dbo_FactResellerSalesFreight0_4]
    ,[DiscountAmount] AS [dbo_FactResellerSalesDiscountAmount0_5]
    ,[UnitPrice] AS [dbo_FactResellerSalesUnitPrice0_6]
    ,[UnitPriceDiscountPct] AS [dbo_FactResellerSalesUnitPriceDiscountPct0_7]
    ,[TotalProductCost] AS [dbo_FactResellerSalesTotalProductCost0_8]
    ,[ProductStandardCost] AS [dbo_FactResellerSalesProductStandardCost0_9]
    ,1 AS [dbo_FactResellerSales0_10]
    ,[EmployeeKey] AS [dbo_FactResellerSalesEmployeeKey0_11]
    ,[PromotionKey] AS [dbo_FactResellerSalesPromotionKey0_12]
    ,[SalesTerritoryKey] AS [dbo_FactResellerSalesSalesTerritoryKey0_13]
    ,[ResellerKey] AS [dbo_FactResellerSalesResellerKey0_14]
    ,[ProductKey] AS [dbo_FactResellerSalesProductKey0_15]
    ,[CurrencyKey] AS [dbo_FactResellerSalesCurrencyKey0_16]
    ,[OrderDateKey] AS [dbo_FactResellerSalesOrderDateKey0_17]
    ,[ShipDateKey] AS [dbo_FactResellerSalesShipDateKey0_18]
    ,[DueDateKey] AS [dbo_FactResellerSalesDueDateKey0_19]
    FROM (
    SELECT [dbo].[FactResellerSales].[ProductKey]
    ,[dbo].[FactResellerSales].[OrderDateKey]
    ,[dbo].[FactResellerSales].[DueDateKey]
    ,[dbo].[FactResellerSales].[ShipDateKey]
    ,[dbo].[FactResellerSales].[ResellerKey]
    ,[dbo].[FactResellerSales].[EmployeeKey]
    ,[dbo].[FactResellerSales].[PromotionKey]
    ,[dbo].[FactResellerSales].[CurrencyKey]
    ,[dbo].[FactResellerSales].[SalesTerritoryKey]
    ,[dbo].[FactResellerSales].[SalesOrderNumber]
    ,[dbo].[FactResellerSales].[SalesOrderLineNumber]
    ,[dbo].[FactResellerSales].[RevisionNumber]
    ,[dbo].[FactResellerSales].[OrderQuantity]
    ,[dbo].[FactResellerSales].[UnitPrice]
    ,[dbo].[FactResellerSales].[ExtendedAmount]
    ,[dbo].[FactResellerSales].[UnitPriceDiscountPct]
    ,[dbo].[FactResellerSales].[DiscountAmount]
    ,[dbo].[FactResellerSales].[ProductStandardCost]
    ,[dbo].[FactResellerSales].[TotalProductCost]
    ,[dbo].[FactResellerSales].[SalesAmount]
    ,[dbo].[FactResellerSales].[TaxAmt]
    ,[dbo].[FactResellerSales].[Freight]
    ,[dbo].[FactResellerSales].[CarrierTrackingNumber]
    ,[dbo].[FactResellerSales].[CustomerPONumber]
    FROM [dbo].[FactResellerSales]
    WHERE OrderDateKey >= '20080101'
    AND OrderDateKey <= '20081231'
    ) AS [FactResellerSales]
    ) AS [dbo_FactResellerSales]
    /*** One JOIN per Referenced Relationship ***/
    ,[dbo].[DimReseller] AS [dbo_DimReseller_6] -- 1
    ,[dbo].[DimReseller] AS [dbo_DimReseller_22] -- 2
    ,[dbo].[DimReseller] AS [dbo_DimReseller_23] -- 3
    ,[dbo].[DimReseller] AS [dbo_DimReseller_24] -- 4
    WHERE (
    ([dbo_FactResellerSales].[dbo_FactResellerSalesResellerKey0_14] = [dbo_DimReseller_6].[ResellerKey]) -- 1
    AND ([dbo_FactResellerSales].[dbo_FactResellerSalesResellerKey0_14] = [dbo_DimReseller_22].[ResellerKey]) -- 2
    AND ([dbo_FactResellerSales].[dbo_FactResellerSalesResellerKey0_14] = [dbo_DimReseller_23].[ResellerKey]) -- 3
    AND ([dbo_FactResellerSales].[dbo_FactResellerSalesResellerKey0_14] = [dbo_DimReseller_24].[ResellerKey]) -- 4
    As you can see in the comments, the generated query contains 1 join on the referenced table
    per referenced relationship. This can slow down the processing if both the Fact table and the Referenced Dimension table are big (and they usually are, otherwise the design would be different). The thing is, all 4 tables are filtered in the
    WHERE clause on the same condition, which makes perfect sense. This leads to the conclusion that all 4 columns could have been read from a single join.
    I was quite surprised by this kind of query generation and I can't seem to find a reason why this would be so, or how it could be avoided. Naturally, the RefAKey, RefBKey, RefCKey columns could be added to the Fact table, eliminating the need for referenced
    relationships, but this would add 3*4 bytes per row to the Fact table. The Fact table in my real example contains around 3 billion rows, so adding extra bytes is painful. (Yes, it's partitioned but still ... )
    The referenced relationships could also be "dematerialized" by removing the famous Materialize check in the relationship settings. Then again, this would issue a join to the referenced tables at query time, slowing down the query.
    Has anyone been profiling processing queries like this one and stopped to think about it?

    I don't believe it's on the Essbase side, as it uses a fairly standard API to allow string input to such things, and it's limitation is well beyond 512 chars even for a direct formula input.<BR><BR>I instead suspect that a carriage return/line feed is being inserted by the ODBC driver as part of it's output formatting, and this is causing the API to consider the input record "completed." I could be wrong, of course, but if you examine the Memo field closely, you may find the formatting to have migrated to the Access database, and even if not, you are still using ODBC to access it on the output side, so we're back to the same issue.<BR><BR>Perhaps it really is an issue related to the ODBC drivers in Essbase, but it's not unique to dim build, to formulas, or Essbase for that matter. Allowing a single field to <i>output</i> more than 512 chars in a single field is where I believe you will find the real issue.<BR><BR>Again, we need an ODBC expert to weigh in on this. <img src="i/expressions/face-icon-small-smile.gif" border="0"><BR>

Maybe you are looking for

  • Error while changing the sales order

    hi, Thanks in advance.i am trying to change already created sales order in va02.system is throwing an err "the sales document cannot be blocked".my purpose is to create a delivery with reference to this salesĀ  order..when i try to create delivery wit

  • Install OCS 10.1.2 Infra DB failed with LDAP: error code 16 on Workspaces

    during install OCS Infrastructure DB OCS have error: ... processed key-value: logfile=/oracle/product/dbocs/workspaces/logs/cw_config_backend.log ... processed key-value: action=setup_backend ... processed key-value: oh=/oracle/product/dbocs ... proc

  • Can you connect 4k monitors to MBA?

    Is it possible to get the full 4k resolution from a 4k monitor connected to a mid 2013 MacBook Air(latest version of Mavericks)? Or do I need to purchase an external graphics card (or a MacBook Pro) perhaps? A mini display port to display port connec

  • Movie playback in iTunes 10

    When I updated iTunes 10, I can't rewind the movie I'm watching when it pauses, and I can't move frame forward or back using the arrow keys. Can you help me with this?

  • Difference among the reporting tool

    Hi There, I am new on Hyperion, I am wondering what is the differences among these reporting tools: 1. Interactive Reporting 2. Financial Reporting 3. SQR Production reporting