Cf9 - flex - orm updating entity with a relation

Hello,
I'm trying to update a cf9 orm entity with a one-to-many relation defined as follow:
Articles
property name="ArticleID" column="ArticleID" type="numeric" ormtype="int" fieldtype="id" default="0" generator="identity" unsavedvalue="0";
property name="ModelName" column="ModelName" type="string" ormtype="string" ;
property name="Description" column="Descrption" type="string" ormtype="string" ;
property name="ArticleImages" type="array" fieldtype="one-to-many" cfc="Images" fkcolumn="ArticleID" fetch="join" remotingfetch="true" cascade="all-delete-orphan";                       
Images
property name="ArticleImageID" column="ArticleImageID" type="numeric" ormtype="int" fieldtype="id" generator="identity" default="0" unsavedvalue="0";
property name="ArticleID" column="ArticleID" type="numeric" ormtype="int"; 
property name="FilePath" column="FilePath" type="string" ormtype="string";
Everything works fine if I update (entitysave) Articles by a coldFusion page.
If I try by a Flex app using remoteObject all records are written with right values but I receive a fault event with a message which say the ArticleID of the table Images can't contain a Null value.
In fact in the database the ArticleID field is right updated but I don't know why I receive always the same error.
The remote object mapping seems to be right established.
I'm testing with a SQL2008R2 database and all the tables have an IDENTITY primary key field.
Does anybody have experienced this situation ?
How can I solve this problem ?
Thanks,
Daive

Did you have tried "entitymerge" instead of "entitysave" ?

Similar Messages

  • Will the new 10.6.8 update fix SATA3 issues related with 2011 MacBook Pros?

    Will the new 10.6.8 update fix SATA3 issues related with 2011 MacBook Pros?

    It is against TOU to speculate on these message board.  Suggest you post your question on the Mac Rumors site.
    As I already stated, there is no 10.6.8 update.  If there was, it would be listed in Software Update.

  • Dynamic domain-based entity creation and relation to base entity

    Hi everyone -
    My first post here...  I have a base entity (PROJECT) with an attribute called RecordType (a domain-based attribute).  Depending on the value of RecordType, the business wants to use that result set as input for another reference entity, and then
    relate them together in a possible {one|many}-to-many relationship.  For example:
    If RecordType = Strategy, then there is a need to create a separate entity called STRATEGY with the results of that filter.  The PROJECT entity and STRATEGY now need to be related together in a PROJECT_STRATEGY relationship table.
    There seem to be a couple of options, but none are elegant, and some simply don't work:
    Option #1 (doesn't work): I create the relationship table (PROJECT_STRATEGY) with a domain-based attribute of the PROJECT entity and a second domain-based attribute of the PROJECT entity (but called Strategy), and then try to create a business
    rule that limits the selection of the second domain-based attribute by RecordType.  MDS tells me I can't use a domain-based attribute in the business rule.
    Option #2: I create a SQL Server view called STRATEGY (which is a query based on the PROJECT entity - "where RecordType = 'Strategy') and use that as the reference set.  However, there is now no way to utilize that result set inside MDS. 
    In other words, I cannot use it as a domain-based attribute in the PROJECT_STRATEGY relationship table.  This means that an external system/UI would need to enable the relationship selection and write back into the PROJECT_STRATEGY relationship table
    inside MDS.
    Option #3: I create a STRATEGY entity that is auto-updated (via SQL Server job) every 10 minutes or so from the PROJECT entity (can't figure out how to load a reference entity based on a result set from an existing entity).  This allows me to create
    two domain-based attributes in the PROJECT_STRATEGY table (as described in Option #1), but is also what I call a non-standard customization, so I have been reticent to go this route.
    So, my questions/comments are:
    Is there any way to make Option #1 work (using business rules)?
    Option #2: Our development team doesn't want to create a separate system/UI to relate the list of PROJECTs to the list of STRATEGYs and then write them back into the PROJECT_STRATEGY relationship table.  This also limits the ability to maintain the
    PROJECT_STRATEGY table inside MDS since the STRATEGY domain-based attribute would become a free-form attribute at that point.  Is there any way to register a view as a reference entity?
    Should I explore Option #3?  Non-standard, non-native functionality introduced into MDS (any system, really) is something I wanted to avoid, but only from a purity and possible upgrade standpoint.  Should I get over this?
    I have looked at derived and explicit hierarchies for the PROJECT entity, but they do not seem to apply in the scenario above.
    Has anyone tried to create {one|many}-to-many relationships between a base entity and a subset of that base entity without resorting to non-standard customizations within MDS?  Is this as bizarre as it sounds?
    Any help would be greatly appreciated.
    Thanks.

    Hi,
    I f you are going with rtti approach.... for dynamic creation....you can assign the checktable field in field cat
    ls_fcat-ref_table  = space.
        ls_fcat-ref_table  = 'ZST_DISTRIBUTED_EFFORT'.
        ls_fcat-ref_field  = 'WORK_EFFORT'.
        ls_fcat-rollname   = 'DPR_TV_EFFORT'.
        ls_fcat-domname    = 'DPR_WORK'.
        ls_fcat-reptext    = ls_fcat-fieldname.
        ls_fcat-scrtext_l  = ls_fcat-fieldname.
        ls_fcat-scrtext_m  = ls_fcat-fieldname.
        ls_fcat-scrtext_s  = ls_fcat-fieldname.
        ls_fcat-emphasize  = me->gc_flag_enable.
        ls_fcat-col_pos    = lv_counter.
    ls_fcat-checktable = ' '.
        APPEND ls_fcat TO lt_fcat.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog           = lt_fcat
        IMPORTING
          ep_table                  = et_dynamic_table
        EXCEPTIONS
          generate_subpool_dir_full = 1
          OTHERS                    = 2.
      IF sy-subrc NE 0.
        es_message-id         = sy-msgid.
        es_message-type       = sy-msgty.
        es_message-number     = sy-msgno.
        es_message-message_v1 = sy-msgv1.
        es_message-message_v2 = sy-msgv2.
        es_message-message_v3 = sy-msgv3.
        es_message-message_v4 = sy-msgv4.
    Thanks,
    Shailaja Ainala.

  • Why are tables disappearing when Engineering Logical Entity Hierarchies to Relational

    Tables disappearing when Engineering Entity Hierarchies Logical to Relational
    We are using 4.0.3.  We have a model with imported from Designer with a number of Entity Hierarchies. 
    The model has a three of entity hierarchies (ORD, PLAN and STEP) each with a number of subtypes.  Single tables are built for each of the entity hierarchies and are called (ORD, PLAN and STEP).
    If I make a change within an entity hierarchy in the subtype (ORD_METRIC) and forward engineer the only ORD entity hierarchy as single table, the table ORD gets update but the tables STEP and PLAN disappears from the Relational table list.    They only remain if I select all three entity hierarchies when engineering to relational.
    Have I a missed selecting an option?

    Hi,
    in current implementation for entity hierarchies (only) - "engineering to" flag is used also as implementation flag for entity, i.e. if entity is not set to be engineered there will be no implementation as table for that entity in relational model. Attributes of such entity will be implemented in another entity engineered to relational model. If no one entity from hierarchy is engineered (no implementation) then existing corresponding table(s) will be removed.
    We'll change it in the future to be less confusing.
    Philip

  • How to upload a document with values related to document properties in to document set at same time using Javascript object model

    Hi,
          Problem Description: Need to upload a document with values related to document properties using custom form in to document set using JavaScript Object Model.
        Kindly let me know any solutions.
    Thanks
    Razvi444

    The following code shows how to use REST/Ajax to upload a document to a document set.
    function uploadToDocumentSet(filename, content) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/add(url='" + filename + "',overwrite=true)?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': content,
    processData: false,
    timeout:1000000,
    'headers': {
    'accept': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val(),
    "content-length": content.byteLength
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err,textStatus,errorThrown) {
    dfd.reject(err);
    return dfd;
    Then when this code returns you can use the following to update the metadata of the new document.
    function updateMetadataNoVersion(fileUrl) {
    appweburl = decodeURIComponent(getQueryStringParameter('SPAppWebUrl'));
    hostweburl = decodeURIComponent(getQueryStringParameter('SPHostUrl'));
    var restSource = appweburl +
    "/_api/SP.AppContextSite(@target)/web/GetFolderByServerRelativeUrl('/restdocuments/testds')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem?@target='" + hostweburl + "'";
    var dfd = $.Deferred();
    $.ajax(
    'url': restSource,
    'method': 'POST',
    'data': JSON.stringify({
    'formValues': [
    '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
    'FieldName': 'Title',
    'FieldValue': 'My Title2'
    'bNewDocumentUpdate': true,
    'checkInComment': ''
    'headers': {
    'accept': 'application/json;odata=verbose',
    'content-type': 'application/json;odata=verbose',
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    'success': function (data) {
    var d = data;
    dfd.resolve(d);
    'error': function (err) {
    dfd.reject(err);
    return dfd;
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Multi update region with 5 checkboxes - problem in updating

    Hi,
    I have a multi update region with more 5 checkboxes which 2 tables LO & SCLO. LO ID is the unique id for each row.
    1st checkbox - If we select 1st checkbox, I am adding a record to SCLO with LO ID.
    2nd Checkbox - yes/no attribute in SCLO table.
    3rd - 5th checkboxes - T/F attributes in LO table.
    Everything is working well if there is LO ID, because I will have a hidden item for LO ID and process where I am only updating LO and adding SCLO.
    When I add a new LO, the trouble occurs for updating 3rd - 5th ck boxes because there will be null value for all the columns in the row.
    What I did is, I first insert LO and gets LO ID from OUT parameter, sets 3rd - 5th ckboxs as null. Then get the out parameter (LO ID) and tried to update again the LO table which is causing some problem and the code, loops are getting very tricky.
    Is there any easy way to handle this?

    Try waiting, a lot of people are also interested in updating to iOS 5.1 so it's probably server related.
    Hope I helped,
    Simmm

  • AIR Update framework with Flash Builder

    Hi,
    I am not sure if this is the right place but since this problem happens with the new Flash Builder 4 and AIR, I am putting it here :
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same give in the example i mentioned above.
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • Update entity attribute, auto-refresh ViewObject

    Hi,
    I have an entity Emp and a ViewObject based on this entity with a where clause like "salary > 2000".
    I update the salary from 1900 to 2100 at entity level, but the viewObject is not "automatically-refreshed". So my Employee with his new salary 2100 is not shown in the viewObject.
    I understand that the whereClause does not use attribute value of entity.
    What the best way to trigger the executeQuery of the dependant views ?
    Thanks for idears ?
    Rafael.

    Hi friend!!
    I've found a solution for my problem, if it helps you take it, I Override a method in the view called Aftercommit so when I save in my JSP automatically refresh the model and show these in the screen.
    public void afterCommit(TransactionEvent event) {
    // TODO: Override this oracle.jbo.server.ViewObjectImpl method
    super.afterCommit(event);
    super.executeQuery();
    Maybe it is late but, someone else could it help!!
    Griss!!! (CIS)
    Mensaje editado por:
    user472974

  • Please help: Utility used to install the update failed with exit code {0}.

    Hi,
    I admit to being a relative newbie at Solaris 10 administration, so please exercise forbearance on my behalf.
    I have just installed Solaris 10 11/06 on my laptop x86. Everything went fairly smoothly. I used the Installation Check Tool 1.2 to decide if my machine was adequate to run the OS and with the exception of a NIC driver, it was. I downloaded the sfe driver and configured networking and it seems to work exceptionally well. However, when I run Update Manager in JDS (the only way I know how to run it), it fails to update some of the packages. Sometimes, if I retry the same packages, sometimes it will eventually work. But it keeps failing with the following error on a consistent basis over the last several days:
    Utility used to install the update failed with exit code {0}.
    I hunted around on the web and the results were not promising. Is there a log somewhere that will give me the actual error or do y'all know of a quick fix.
    Thanks,
    Will

    That is strange indeed, could you try downloading and
    applying the unsigned zip to see if that works?The problem persits:
    # patchadd -M /root/119116/
    Validating patches...
    Loading patches installed on the system...
    Done!
    Loading patches requested to install.
    Done!
    Checking patches that you specified for installation.
    Done!
    Approved patches will be installed in this order:
    119116-22
    Preparing checklist for non-global zone check...
    Checking non-global zones...
    Cannot open pkginfo file //var/sadm/pkg/.save.SUNWhea/pkginfo
    Non-global zone check failed. No change made to the System.
    Patchadd exiting.

  • [svn] 2932: Updated manifests with recent changes to TCAL package and class names.

    Revision: 2932
    Author: [email protected]
    Date: 2008-08-20 14:01:37 -0700 (Wed, 20 Aug 2008)
    Log Message:
    Updated manifests with recent changes to TCAL package and class names.
    Reviewer: Jason
    Bugs: SDK-16531
    QA: No
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16531
    Modified Paths:
    flex/sdk/trunk/frameworks/fxg-manifest.xml
    flex/sdk/trunk/frameworks/mxml-2009-manifest.xml

    Revision: 2932
    Author: [email protected]
    Date: 2008-08-20 14:01:37 -0700 (Wed, 20 Aug 2008)
    Log Message:
    Updated manifests with recent changes to TCAL package and class names.
    Reviewer: Jason
    Bugs: SDK-16531
    QA: No
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16531
    Modified Paths:
    flex/sdk/trunk/frameworks/fxg-manifest.xml
    flex/sdk/trunk/frameworks/mxml-2009-manifest.xml

  • IPhoto won't update - "Update unavailable with this ID"

    Dear all, I recently updated to Mavericks (OS X 10.9.1) and since then iPhoto and iMovie do not work. I especially need iPhoto, which is now covered by a crossed circle sign.
    The available updates for both appear under "Updates" of the Apple Store app, but when click "update" it requests my passwork twice and then it says "Update unavailable with this Apple ID - This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled".
    My Apple ID is unique, and I am using the correct one. The original iMovie and iPhoto came installed in the new MacBook when I bought it. It is a MacBook Pro 13-inch, Mid-2012.
    What can I do?

    Genius reservation http://www.apple.com/retail/geniusbar/
    Apple Customer Relations - 1-800-676-2275

  • Updating fields with FRM-40200

    Hello all,
    I'm using Oracle10g with Form6i with XP sp2. I want to update a block's fields and i have a warning message FRM-40200 (field protected against updated). Here is my block and fields properties
    block TypeRelation => insert allowed no; update allowed yes; delete allowed no
    fields Nam => insert allowed no; update allowed no; delete allowed no
    Type => insert allowed no; update allowed yes; delete allowed no
    Relation => insert allowed no; update allowed yes; delete allowed no
    When i want to update Type and Relation fields, a FRM-40200 is display.
    Do you show me how to resolve this?
    Thanks.
    MK.

    My block isn't a block from DB. What i do is copying a single record from another block (displaying purpose only), display 2 lists items for user to choose and update DB with a new info.
    GO_BLOCK('F55150B1');
         SET_BLOCK_PROPERTY('F55150B1', INSERT_ALLOWED, PROPERTY_FALSE);
         SET_BLOCK_PROPERTY('F55150B1', DELETE_ALLOWED, PROPERTY_FALSE);
         SET_BLOCK_PROPERTY('F55150B1', UPDATE_ALLOWED, PROPERTY_TRUE);
         SET_ITEM_PROPERTY('F55150B1.CONTACT_TYPE_LIST', UPDATE_ALLOWED, PROPERTY_TRUE);
         SET_ITEM_PROPERTY('F55150B1.CONTACT_FUNCTION_LIST', UPDATE_ALLOWED, PROPERTY_TRUE);
         SET_ITEM_PROPERTY('F55150B1.CONTACT_TYPE_LIST', INSERT_ALLOWED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('F55150B1.CONTACT_FUNCTION_LIST', INSERT_ALLOWED, PROPERTY_FALSE);
    -- copy from F55150A
         :F55150B1.CONTACT_NAME := :F55150A.NOM;
         :F55150B1.MEDIA_NAME      := :F55150B.MEDIA_NAME;
         :F55150B1.MEDIA_TYPE      := :F55150B.MEDIA_TYPE;
         :F55150B1.PIG_KEY_NO      := :F55150B.PIG_KEY_NO;
         :F55150B1.MAG_KEY_NO      := :F55150B.MAG_KEY_NO;
         :F55150B1.TYPE_NO               := :F55150B.TYPE_NO;
         :F55150B1.FUNCTION_NO     := :F55150B.FUNCTION_NO;
    -- reset lists items                              
         CLEAR_LIST('F55150B1.CONTACT_TYPE_LIST');
         CLEAR_LIST('F55150B1.CONTACT_FUNCTION_LIST');
    -- populate a control list item
         POPULATE_LIST('F55150B1.CONTACT_TYPE_LIST', 'RECORD_GROUP_CONTACT_TYPE');     
         IF :F55150B.TYPE_NO IS NOT NULL
         THEN
              :F55150B1.CONTACT_TYPE_LIST := GET_LIST_ELEMENT_VALUE('F55150B1.CONTACT_TYPE_LIST', :F55150B.TYPE_NO);
         ELSE
              :F55150B1.CONTACT_TYPE_LIST := GET_LIST_ELEMENT_VALUE('F55150B1.CONTACT_TYPE_LIST', 1);
         END IF;
    -- populate a second list items with the control list item
         GO_ITEM('F55150B1.CONTACT_TYPE_LIST');
         EXECUTE_TRIGGER('WHEN-LIST-CHANGED');
    The only fields that could be updating are F55150B1.CONTACT_TYPE_LIST and F55150B1.CONTACT_FUNCTION_LIST. Others fields are lock for update.
    Thanks for your helps.
    Minh Khail.

  • SPAM update ends with tp error code 0219

    Hi,
    when trying to update SPAM with the latest version (release 6.40), the process stops on phase "CHECK_REQUIREMENTS".
    On the action log, we can see a tp error message with code 0219.
    The log message includes this information:
    Import phase 'CHECK_REQUIREMENTS' (28.01.2008, 16:48:58)
    Error during executing the tp command 'tp CONNECT D10   ...'
    tp return code: '0219' , tp message: 'tp got a signal (and terminated?)' , tp output:
      This is tp version 340.16.38 (release 640, unicode enabled)
      INFO: Exiting on signal 5. Further signals will be ignored ....
      tp got signal 5 and will produce a core now!
      tp returncode summary:
      TOOLS: Highest return code of single steps was: 0
      ERRORS: Highest tp internal error was: 0219
    Interrupt the import due to an error situation (28.01.2008, 16:48:59)
    Display detailed informations concerning the error in phase 'CHECK_REQUIREMENTS'
    Abort the import due to an error situation (28.01.2008, 16:49:22)
    Another information:
    we have just updated the kernel level to 213, including the latest tp component.
    Does anyone has a clue about what's going on?
    Thanks,
    Antonio

    Hi,
    on OS level I get the same error message. I have SAP installed on a IBM iSeries and kernel was updated to level 213 (it has no differences between database independent and database-related objects).
    Here's an overview of the tp connect D10 pf=tpparam_instD10 command, issued on OS level:
    > tp connect D10 pf=tpparam_instD10                                    
      This is R3640DUKR0/TP version 340.16.38 (release 640, unicode enabled)
    Warning: unknown parameter MSPORT in parameter file (line 6).  
    INFO: Exiting on signal 5. Further signals will be ignored ....
    Library   !(SRV)PGM  !Module    !Function/Statement No.        
    R3640DUKR0!TP        !TP        !main_a  4                     
    R3640DUKR0!TP        !TP        !nlsui_main  6                 
    R3640DUKR0!TP        !TP        !tp_former_main  185           
    R3640DUKR0!TP        !TPCONNECT !tp_connect  76                
    R3640DUKR0!TP        !DBSLINK   !db_connect  19                
    R3640DUKR0!TP        !DBSL      !DbSlControl  1                
    R3640DUKR0!TP        !DBSLXXX   !dbsl_control  1               
    R3640DUKR0!TP        !DBSCON    !db_con_test_and_open  2       
    R3640DUKR0!TP        !DBSCON    !supply_con  18                
    R3640DUKR0!TP        !DBSCON    !create_con  39                
    R3640DUKR0!TP        !DLO4      !DlLoadLib  60                 
    R3640DUKR0!TP        !O4DLFCNU  !dlopenU  83                   
    R3640DUKR0!TP        !O4DLFCNU  !dlopen_qsysU  43                                                               
    QSYS      !QLEAWI    !QLEPM     !QleActBndPgm  18                                                               
    QSYS      !QLEAWI    !QLEPM     !QleActBndPgmCommon__FPPvPULP24Qle_ActBndPgmInfo_Long_tPiPvPc  144              
    QSYS      !QLEAWI    !QLEPM     !Q LE leActivationInitRouter  42                                                
    R3640DUKR0!DBDB4SLIB !SQLE6A64E3!__sinit80000000__build_bas_640_REL_gen_optU_SQLExpression_cpp_3462347760__Fv  *N
    R3640DUKR0!DBDB4SLIB !SQLE6A64E3!__ct__11T_AffinHeapFUi  5                                                      
    R3640DUKR0!DBDB4SLIB !SQLE6A64E3!Preallocate__11T_AffinHeapFUi  4                                                                               
    tp returncode summary:                                                                               
    TOOLS: Highest return code of single steps was: 0                                                               
    ERRORS: Highest tp internal error was: 0219                                                                     
    tp finished with return code: 219                                                                               
    meaning:                                                                               
    tp got a signal (and terminated?)                                                                               
    thanks
    Antonio

  • Entity with key cannot be owned by another row

    Hi All,
    I have a master detail relationship between 2 VOs using Entity level association. When I try to create details rows using createAndInitRow(), I am getting below error. The Association has composition association, cascade delete, cascade update key attributes selected
    Entity with key:oracle.jbo.Key[ XXXXXXX ] cannot be owned by another row:oracle.jbo.Key[ XXXXXXX ]
    Code -
    RowSetIterator rsi = (RowSetIterator)((ParentVORowImpl)parentCurrentRow).getChildVO();
    NameValuePairs nvp = null;
    Row row = null;
    for (ExpressionObject obj : objectList) {
    nvp = new NameValuePairs();
    nvp.setAttribute("AAA", "AAA");
    nvp.setAttribute(<Attributes>, <Attribute Values>);
    row = rsi.createAndInitRow(nvp);
    rsi.insertRow(row);
    The moment createAndInitRow is called for first item I get the error and other items does not get associated with parent properly.
    Any clue what wrong am I doing??

    Copying from [http://www.packtpub.com/oracle-application-development-framework-real-world-developers-guide/book|Oracle ADF Real World Developers Guide]
    Creating child rows in composition association
    Creating a new child row is a bit tricky when the master-child entity association
    type is composition. When you mark an association between master and child entity
    objects as composition, the framework takes the necessary steps to ensure that the
    child entity object row does not exist without the master entity row. If you try to
    create a new child row by calling createRow() on the view object, the framework
    will throw the oracle.jbo.InvalidOwnerException: JBO-25030: Failed to
    find or invalidate owning entity exception.
    There are two possible ways to create child entity rows in this case:
    • Find the master row by using findByKey() or calling executeQuery() with
    a proper condition and then get the RowIterator for the child collection
    by accessing the view link accessor attribute. Now you can use the child
    RowIterator to call createRow() for creating the child row. The following
    code snippet illustrates the creation of the child entity row for the
    Country-Location composition association:
    //In application module implementation class
    * This custom method defined in application module
    * creates child location rows for a master
    * country entity through accessor iterator
    public void createChildRowsThruIter() {
    //Find the parent view object
    ViewObject countries = findViewObject("Countries");
    //IN is the Key value for a specific Country row
    Key key = new Key(new Object[] { "IN" });
    //Find the country for 'IN', maxNumOfRows=1
    Row rows[] = countries.findByKey(key, 1);
    //Access the RowIterator for Location
    RowIterator locIter = (RowIterator)rows[0].
    getAttribute("LocationVO");
    //Create and init location row
    Row row = locIter.createRow();
    row.setAttribute("LocationId", 2200);
    row.setAttribute("City", "Bangalore");
    locIter.insertRow(row);
    • Alternatively, you can directly create a new row in the child view object,
    using createAndInitRow() by passing an appropriately constructed instance
    of oracle.jbo.NameValuePairs, which includes the foreign key attribute
    that provides the context for a child row. Here is an example:
    //In application module implementation class
    * This custom method defined in application module
    * creates child location rows for a master
    * country entity using createAndInitRow()
    public void createChildRowsThruNameValuePairs() {
    ViewObject locations = findViewObject("Locations");
    //Initialize Attributes and Values
    String[] attributes = new String[] { "CountryId" };
    Object[] values = new Object[] { "IN" };
    //Pass the foreign key value for Country while
    //initializing new location row
    Row locRow = locations.createAndInitRow(new
    NameValuePairs(attributes, values));
    //Set other attributes
    locRow.setAttribute("LocationId", 2200);
    locRow.setAttribute("City", "Bangalore");
    locations.insertRow(locRow);
    }

  • [svn:fx-trunk] 12924: update playerglobal with the marlin player.

    Revision: 12924
    Revision: 12924
    Author:   [email protected]
    Date:     2009-12-14 14:17:11 -0800 (Mon, 14 Dec 2009)
    Log Message:
    update playerglobal with the marlin player.  I missed this in the merge
    Modified Paths:
        flex/sdk/trunk/frameworks/libs/player/10/playerglobal.swc

Maybe you are looking for

  • Is your Zen Touch froz

    Does it hang at the "Zen Touch" screen? Is it not accesible whatsoever?Okay here's the thing. A lot of people are having this problem, even I had it. So this is what you need to do: First off, try running a cleanup of your Zen. To run the cleanup you

  • IPod connection trouble with itunes

    Hey, My IPod connects to itunes without any problems, but when i want to change any settings such as, enabling disk use, i get an error message saying my IPod cannot be found :S!

  • Mountain Lion - Safari 6 and Private Browsing

    Safari 6 - Mountain Lion. If I enable Private Browsing, I am not able to read a new page. To do an example: If I have active yahoo page and I try to resume an other internet page (i.e. repubblica) from top sites page, the address change, but no refre

  • Block the payment

    Expert How to block the paymnet of a delivery till inpection stock is accepted Pls give me in details step Faisal

  • Change Mandatory of all fields of subform

    Hello, Im working with the ES2 designer and trying to make the subform hidden and the elements of the subform which are mandatory = "error" to mandatory="visible" here is my sample: the action is performed on a checkbox click if(this.rawValue==1) {