Identifier 'row' Resolved to Null !!

Dear All
i have a Business Component Exist in my JSF Interface as a Table and i made one att Auto Submit = true
and this true property makes error message for me *"Identifier 'row' Resolved to Null"*
Please Advise

Hi,
row is the default variable that is used to build the table when it initially is rendered. Adter this the row is null as it is no longer needed. In your case the erro points to a wrong referene of his variable in your page source
Frank

Similar Messages

  • How to localize "Target Unreachable, identifier 'row' resolved to null"

    Hi everybody
    How can I localize "Target Unreachable, identifier 'row' resolved to null" message?
    Thanks!
    Version
    ADF Business Components 11.1.1.56.60
    Java(TM) Platform 1.6.0_18
    Oracle IDE 11.1.1.3.37.56.60

    Hi Barbara,
    I do not know how to customize the message, but I can tell you how you can make the primary key attributes updateable without receiving such errors.
    ADF Faces use the primary key attributes to produce a rowkey that is used as a row ID in a table model. If you modify the value of a primary key attribute of a row in an <af:table> then the ADF Faces could not be able to find that row after that. In our projects we workaround this problem as follows:
    1) Define in the EO a "service" primary key consisting of a single ROWID attribute of a datatype oracle.jbo.domain.RowID. Base this attribute on the ROWID pseudocolumn of the corresponding DB table and mark the attribute as "Refresh After Insert";
    2) Modify the real primary key to become an alternate key (not in the DB table but in the corresponding ADF Business Components);
    3) Mark the RowID attribute as a key attribute in the VO instead of the real primary key attributes.
    In this way you will never modify at runtime primary key attributes (from ADF's point of view), so you will never lose the corresponding rowkeys and you will never get such errors. Note, that this approach does not require creation of a surrogate (for example, sequence based) primary key in DB.
    Dimitar

  • ADF Tree table :  Target Unreachable, identifier 'node' resolved to null

    Hi, we are using a tree table:
    <af:treeTable value="#{bindings.FacilitySummaryVO1.treeModel}"
    var="node"
    emptyText="#{bindings.FacilitySummaryVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    selectionListener="#{bindings.FacilitySummaryVO1.treeModel.makeCurrent}"
    rowSelection="#{pageFlowScope.facilitySummaryHelper.tableSelectionMode}"
    id="tt1" width="100%" contentDelivery="immediate"
    binding="#{backingBeanScope.facilitySummary.facilityTree}"
    autoHeightRows="#{pageFlowScope.facilitySummaryHelper.tableHeight}"
    columnStretching="column:c6">
    <f:facet name="nodeStamp">
    <af:column id="c8" width="5px" headerText=""></af:column>
    </f:facet>
    <af:column id="c5"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_SELECT}"
    width="40" align="center"
    rendered="#{pageFlowScope.facilitySummaryHelper.showColumnSelect}">
    <af:group id="g1">
    <af:panelLabelAndMessage label="" id="plam1">
    <af:selectBooleanCheckbox text="" autoSubmit="true"
    rendered="#{node.ShowSelectCheckBox}"
    valueChangeListener="#{backingBeanScope.facilitySummary.facilitySelectCheckboxEventListener}"
    label="" id="sbc1"
    value="#{node.bindings.SelectedFacilityLandingPage.inputValue}"/>
    </af:panelLabelAndMessage>
    </af:group>
    </af:column>
    <af:column id="c6"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_FACILITY}">
    <af:group id="g2">
    <af:panelGroupLayout layout="horizontal" id="pgl2">
    <af:spacer width="#{node.IndentationWidth}" height="10"
    id="s2"/>
    <af:commandLink text="" textAndAccessKey="#{node.FacilityName}"
    disabled="#{pageFlowScope.facilitySummaryHelper.itemReadonly}"
    visible="#{(node.NodeType == facilitySummary_rb.ACCOUNT_VALUE)? false : true}"
    actionListener="#{backingBeanScope.facilitySummary.treeExpandDiscloseActionListener}"
    id="cl2">
    <af:image source="#{node.NodeImgPath}" id="i2" shortDesc=""></af:image>
    </af:commandLink>
    <af:spacer width="10" height="10" id="s1"/>
    <af:commandLink text="#{node.FacilityName}"
    textAndAccessKey="#{node.FacilityName}" id="cl1"
    actionListener="#{backingBeanScope.facilitySummary.showDetailsActionListener}"></af:commandLink>
    </af:panelGroupLayout>
    </af:group>
    </af:column>
    <af:column id="c12"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_ACTION}"
    width="110"
    rendered="#{pageFlowScope.facilitySummaryHelper.showColumnAction}">
    <af:selectOneChoice valueChangeListener="#{backingBeanScope.facilitySummary.nodeActionValueChangeListener}"
    value="#{node.bindings.SelectActionValue.inputValue}"
    label=""
    unselectedLabel="#{origination_rb.LBL_IB_UNSELECTED_VALUE}"
    readOnly="#{pageFlowScope.facilitySummaryHelper.itemReadonly}"
    id="soc1" autoSubmit="true">
    <f:selectItems value="#{node.NodeAction ==null? pageFlowScope.facilitySummaryHelper.defaultSelectItems : node.NodeAction}"
    id="si2"/>
    </af:selectOneChoice>
    </af:column>
    </af:treeTable>
    af:selectOneChoice has an option to remove the row in the tree table by clearing the VO and populate new data into it. (with the exception of the removed row)
    The row get removed from the vo and the screen but i got this error Target Unreachable, identifier 'node' resolved to null
    No stack trace got printed in the stack trace.
    It works with jdev/adf 11.1.1.1.4. only with jdev/adf 11.1.1.1.5 (JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013) we're having this error. FacilitySummaryVO doesnt have primary key attribute.
    Data got populated to VO programmatically
    All VO attribute value updatable value is always

    Hi,
    hard to say. Actually the "node" variable reference is only available during tree rendering. So if you have any reference to the "node" variable that is invoked after tree rendering then this would explain the exception
    Frank

  • Error: Target Unreachable, identifier 'userMenu' resolved to null

    Hi,
    I wonder if any one could help me please. I am trying de resolve my error from the morning but no result.
    I got an error when I click to my panelMenuItem, the panemenu data works well but the panelMenuitem Action is not.
    the error is as follow:
    javax.el.PropertyNotFoundException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Target Unreachable, identifier 'userMenu' resolved to null
            at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:193)
    What i would like to do is to display on the outputPanel the characteristic of the panelMenuItem's option.
    here is my java code:
    public HtmlPanelMenu addControls() {
             FacesContext context = FacesContext.getCurrentInstance();  
             Application application = context.getApplication();
             panelMenu.setId("panelMenu");
             panelMenu.setStyle("width:200px");
             panelMenu.setMode("ajax");
             panelMenu.setIconExpandedGroup("disc");
             panelMenu.setIconCollapsedGroup("disc");
             panelMenu.setIconExpandedTopGroup("chevronUp");
             panelMenu.setIconGroupTopPosition("right");
             panelMenu.setIconCollapsedTopGroup("chevronDown");
             panelMenu.setIconGroupTopPosition("right");
             List childrenMenu = getPanelMenu().getChildren();
            if(authenticatedUser.getProfile().getAccessRight().equals("customer") ) {
                customerProducts();        
                 HtmlPanelMenuGroup panelMenuGroup = new HtmlPanelMenuGroup();
                 panelMenuGroup.setId("Products");
                 panelMenuGroup.setLabel("products");
                 List childrenGroup = panelMenuGroup.getChildren();
                 Iterator it = userProducts.iterator();
                 while(it.hasNext() ) {
                     Product prod = (Product) it.next();
                     HtmlPanelMenuItem panelMenuItem = new HtmlPanelMenuItem();
                     panelMenuItem.setId("panelMenuItem"+prod.getProductId() );
                     panelMenuItem.setLabel(prod.getName() );
                     panelMenuItem.setRendered(true);
        application.createMethodBinding("#{characteristicServiceProduct}", new class [] { ActionEvent } );
                     ELContext eLContext = context.getCurrentInstance().getELContext();
                     MethodExpression me = application.getExpressionFactory().createMethodExpression(eLContext,
                                                                        "#{this.searchServiceProduct(prod)}", null, new Class[]{ActionEvent.class} );
                     panelMenuItem.setActionExpression(me);
                     childrenGroup.add(panelMenuItem);
                     childrenMenu.add(panelMenuGroup);
                     updateOutputPanel();
    return panelMenu;
    public HtmlAjaxOutputPanel addOutputPanel() {
            outputPanel.setId("outputPanel");
            outputPanel.setAjaxRendered(true);
            outputPanel.setTitle("Products caracteristic");
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue("");
            outputPanel.getChildren().add(outputText);
            return outputPanel;
        public void updateOutputPanel(){
            HtmlDataTable dataTable = new HtmlDataTable();
            UIColumn columnName, columnAmount;
            dataTable.setValue("#{characteristicServiceProduct}");
            dataTable.setVar("chSePr");
            columnName = new UIColumn();
            HtmlOutputText outputTextName = new HtmlOutputText();
            outputTextName.setValue("#{chSePr.characteristic.name}");
            columnName.getChildren().add(outputTextName);
            columnAmount = new UIColumn();
            HtmlOutputText outputTextAmount = new HtmlOutputText();
            outputTextAmount.setValue("#{chSePr.amount}");
            columnAmount.getChildren().add(outputTextAmount);
            dataTable.getChildren().add(columnName);
            dataTable.getChildren().add(columnAmount);
            outputPanel.getChildren().add(dataTable);
        }my .xhtml page is as follow
    <rich:panelMenu binding = "#{userMenu.addControls()}"/>
                   <rich:panel>
                        <a4j:outputPanel ajaxRendered="true" binding="#{userMenu.addOutputPanel()}">
                            <!--<h:outputText value="service #{userMenu.service}"/>-->
                        </a4j:outputPanel>
                    </rich:panel>thank you so much
    regards
    bibou

    Well i didn't define the scope. Now it's look better. T've got the followuing error:
    javax.el.PropertyNotWritableException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Illegal Syntax for Set Operation
            at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)
    contact1 >> 09:46:37,663 ERROR [ExceptionFilter] handling uncaught exception
    javax.servlet.ServletException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Illegal Syntax for Set Operation
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    Caused by: javax.el.PropertyNotWritableException: /pages/users/Customer.xhtml @76,72 binding="#{userMenu.addControls()}": Illegal Syntax for Set Operation
            at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
            at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:249)

  • Target Unreachable, identifier 'viewBundle' resolved to null

    I'm using Jdev 11g to develop JSF application. it works well when I'm run the application within default server within Jdev. but it fails when i deploy it to weblogic server which i've installed ADF libraries.
    it says: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'viewBundle' resolved to null
    which my code in page is like: <c:set var="viewBundle"
    value="#{adfBundle['com.dstintl.hiport.unitpricing.view.ViewBundle']}"/>
    but it works when I use " <f:loadBundle basename="" var=""/>"
    Is it some libraries missing within my war?
    thank you.

    Hi,
    don't think you are missing something.
    Frank
    Edited by: Frank Nimphius on Dec 29, 2008 1:24 PM

  • Resolved to null

    Hi,
    I'm able to show a list through an ADF table, but once I've clicked 'Edit' button, I've got
    javax.el.PropertyNotFoundException: Target Unreachable, identifier 'Controller' resolved to null
    How can I know where the problem is within the Java class?
    Best Regards

    I guess you have added the backing bean for the component... the bean that will get displayed in the option will be in backingbean scope.. in your adfc-config.xml or in your task flow.. the scope can be changed when you go to overview tab -> managed bean - > of your taskflow or adfc-config.xml..
    here you will find the list of beans associated.. and the option to change the scope for the bean..

  • Target unreachable 'row' resolved null

    What are the cases of error "*Target unreachable 'row' resolved null*"
    I am using choice list as one of the filed in grid and also a button in that same grid.
    while clicking the button i am getting a popup has error like "*Target unreachable 'row' resolved null*"
    Edited by: user8776490 on Aug 13, 2010 6:02 AM

    1. Define Lov on the attribute which you would like to see as choice list.
    2. Drag and drop the VO as af:table
    3. In the table wizard remove the columns you don't like to see
    4. For the attribute( you would like to see as choicelist ) make sure it has 'ADF Select One Choice' select under Component To Use column.
    That's it.
    OR if you already have table dropped in you page and need to add the attribute:
    1. do step 1 of above
    2. Select table in structure window, go to properties tab, select column... add a new column (one you want) and make sure it has 'ADF Select One Choice' select under Component To Use column.
    Amit

  • JBO-25019: Entity row of key null not found even though key filled in??

    Hi All,
    I'm using jdev 10.1.2, adf bc's and jsp's.
    I have a view object derived from 2 entity objects, which the user is allowed edit. It's a standard adf edit. Even though the key fields are filled in i keep getting this error when the page is submitted... "JBO-25019: Entity row of key null not found in Milk. " where milk is one of the entities
    I've checked that the fields are bound, which they are. I created a test method in the app module where i got the current row (i.e. the row i'm editing) and got the key values no problem. I've created the page again, same problem.
    This problem occurs in another edit page which uses the same view object. I've other edit pages which use different view objects, but who are based on the same entities and there is no problem.
    i cannot understand why. I have tried creating the view object again and creating a new edit page but i still get the same error.
    I can't understand why this is happening. If anyone could help, i'd be really grateful.
    Thanks in advance,
    newbe.

    I take your point about not all databases support triggers.
    However I am not using DBSequence...the above is a bug surely.For non-oracle SQLBuilders, if RETURNING clause is not supported by the DB in insert/update DML, then to perform refresh-on-insert/update BC4J calls the corresponding entity's doRefreshSQL() method. The javadoc says:
    if refresh-on-insert or update setting is set on an attribute which
    is a primary key attribute, then this method will fail to fetch the entity as the primary key
    in the databse for the equivalent row would have potentially changed. If that's true,
    then subclasses need to implement this method and perform "custom" sql to fetch the refresh-attrs
    based on some unique criteria for this entity.

  • VBScript - Identifying Rows that are too large for a page

    I am trying to write a VBScript that will identify rows that are too large to fit on a page.
    So far I have:
    Sub IfRowIsTooBigBreakAcrossPage()
    'Use to track number of tables in the document
    Dim t As Integer
    'Use to track number of rows in a Table
    Dim r As Integer
    'Get the number of tables in the document
    t = ActiveDocument.Tables.Count
    For i = 1 To t
    'Get the number of rows in a table
    r = ActiveDocument.Tables(i).Rows.Count
    For n = 1 to r
    If ActiveDocument.Tables(i).Rows(n).Height > 6 Then
    Active Document.Tables(i).Rows(n).AllowBreakAcrossPages = True
    End If
    Next
    Next
    End Sub
    I am having a hard time just getting this to run.   This is meant to run on tables that have been exported from IBM Doors.  I'm not sure if that [having been exported from Doors] is the issue or if I'm just missing something when it comes to the
    Rows attributes.
    Any help is appreciated!

    Hi David,
    I'm afraid that it is not the correct forum about this issue, since this forum is to discuss Visual Basic.
    For some reason, I can't help you to move this case to Scripting forum, please feel free to open a new thread in that forum for better response:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG
    Thanks for your understanding.
    Best regards,
    Franklin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unknown property resolving to null in PropertyNotFoundException

    While debugging a DTE issue, we could see that there were no meaningful exceptions other than a PropertyNotFoundException but the arguments that it contained seemed to make little sense.
    The stacktrace is as follows
    javax.el.PropertyNotFoundException: Target Unreachable, '6' resolved to null
    at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
    at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
    at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
    at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getUncached
    ReadOnly(EditableValueRenderer.java:489) at
    oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:343) at
    oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:116) at
    oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56) at
    oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:328)
    What does '6' here refer to in the exception? Generally isnt the name of the property that resolved to null supposed to be there?

    Hi,
    have you checks if the page has a reference to "6" somewhere. The error seems to indicate that you used a property reference that actually is no property. This could also in case e.g. you call object.label. If "object" is a string then there is no label in which case "string name" resolves to null
    Frank
    Edited by: Frank Nimphius on Sep 10, 2012 4:19 PM

  • How to get average between rows that are null?

    I need to get the average between the 2 positive numbers.
    Then update the table with the average for those rows that are NULL between the 2 positive numbers.
    The average will come (78+89)/2= 83.5. Round it to 84.
    Then it will be:
    6-4-13       84
    6-5-13        84
    6-6-13        84
    As for 6-9-13 and 6-10-13, those values will still be NULL.
    {code}
    create table dummy( tmestmp date
    ,maxtemp number(4,0));
    insert into dummy(tmestmp,maxtemp) values(to_date('20130601','YYYYMMDD'),70);
    insert into dummy(tmestmp,maxtemp) values(to_date('20130602','YYYYMMDD'),81);
    insert into dummy(tmestmp,maxtemp) values(to_date('20130603','YYYYMMDD'),78);
    insert into dummy(tmestmp) values(to_date('20130604','YYYYMMDD'));
    insert into dummy(tmestmp) values(to_date('20130605','YYYYMMDD'));
    insert into dummy(tmestmp) values(to_date('20130606','YYYYMMDD'));
    insert into dummy(tmestmp,maxtemp) values(to_date('20130607','YYYYMMDD'),89);
    insert into dummy(tmestmp,maxtemp) values(to_date('20130608','YYYYMMDD'),91);
    insert into dummy(tmestmp) values(to_date('20130609','YYYYMMDD'));
    insert into dummy(tmestmp) values(to_date('20130610','YYYYMMDD'));
    {/code}
    I need the output to look like this:
    Header 1
    Header 2
    01-JUN-13
    02-JUN-13
    03-JUN-13
    04-JUN-13
    05-JUN-13
    06-JUN-13
    07-JUN-13
    08-JUN-13
    09-JUN-13
    10-JUN-13
    70
    81
    78
    84
    84
    84
    89
    91
    null
    null
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE 10.2.0.4.0 Production"
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Suggestions?
    TIA.
    Steve42

    select  tmestmp,
            nvl(
                maxtemp,
                round(
                       last_value(maxtemp ignore nulls)
                         over(order by tmestmp) +
                       first_value(maxtemp ignore nulls)
                         over(order by tmestmp
                              rows between 1 following and unbounded following
                      ) / 2
               ) maxtemp
      from  dummy
    TMESTMP                MAXTEMP
    06/01/2013 00:00:00         70
    06/02/2013 00:00:00         81
    06/03/2013 00:00:00         78
    06/04/2013 00:00:00         84
    06/05/2013 00:00:00         84
    06/06/2013 00:00:00         84
    06/07/2013 00:00:00         89
    06/08/2013 00:00:00         91
    TMESTMP                MAXTEMP
    06/09/2013 00:00:00
    06/10/2013 00:00:00
    10 rows selected.
    SQL>
    SY.

  • Oracle.jbo.RowAlreadyDeletedException: JBO-25019: Entity row of key null

    Hi ,
    I am trying to extend one OA page.
    1. My requirement is to add two new messageTextInput to a page.
    2. But this page always updates data. It never creates records.
    3. But my two new fields belongs to a new table and other attributes belongs to a different vanila table (which is vanilla functionality). There is record in the vanila table but no recoed at the new table.
    4 so My requirement is when i will try to save the values , it will update into the old vanila table and i[b]nsert[b[/b]] into other table(new table).
    So when i try to save data it shows error
    oracle.jbo.RowAlreadyDeletedException: JBO-25019: Entity row of key null not found in EAddInfoEO
    Can anybody help me ??
    Thanks,
    Prabhat

    For Error: method getEntityDef() has protected access in class oracle.apps.fnd.framework.server.OAEntityImpl
    try this
    There is a method called
    EntityImpl[] getEntities() in OAViewRowImpl, so call this method and get the entity.
    Once you have the entity, call the getEntityDef() on this object.
    so what you are essentially doing is calling the getEntityDef() on EntityImpl object directly instead of calling it from a subclass of OAEntityImpl.
    For Error: variable customEO not found in class xxxxxxx
    See if you have a variable/object reference by this name in the class.
    Thanks
    Tapash

  • How to identify rows to update on tabular form?

    Application Express 3.2.1.00.10
    Hello!
    I have a tabular form in my application that I created through the wizard. The form is based on a table with a primary key and a trigger to populate the next key upon insert, so as a result going through the wizard was not a problem. It created page processes for ApplyMRU, ApplyMRD, AddRows, etc. I'm curious how APEX knows which row is updated without the user having to select the checkbox and clicking Submit. It seems the checkbox is only for cases where the user wants to delete a record.
    I want to be able to replicate this in another tabular form page which I am manually creating, although it will be based on a view without a PK (which I had to "fake" by concatenating unique identifying columns). In this form page, when I make attempt to make an update to a record, nothing happens in the database, unless I actually check a checkbox and click on Submit. How do I get around having the user to click off records to update? I want the form to just accept changes, and "know" which records to update in the table, similar to how APEX does it out of the box.
    Any ideas? Thanks!

    Denes,
    I tried as you have suggested, but for some reason, it doesn't seem that any action is taking place. Either the column arrays are empty or apex_application.g_f01(i) does not have a value. I've verified that none of the records in the database have changed. Any ideas?
    The Process Success Message is set to:
    Changes successful. &P7_REC_UPDATE_COUNT. records updated.  &P7_REC_INSERT_COUNT. records inserted. ... and it shows Changes successful. 0 records updated. 0 records inserted.
    This is the Page Process executed on submit of the "Submit" button:
    DECLARE
      v_return  NUMBER;
      v_msgcode NUMBER;
      v_message VARCHAR2(250);
      v_row     BINARY_INTEGER;
      v_insert_cnt INTEGER := 0;
      v_update_cnt INTEGER := 0;
    BEGIN
       FOR i IN 1..apex_application.g_f01.COUNT  LOOP
          IF  apex_application.g_f10(i) IS NOT NULL             -- CHECKSUM FIELD
             AND wwv_flow_item.md5 (apex_application.g_f01(i),   -- PK_COLUMNS
                                    apex_application.g_f05(i),   -- org_code
                                    apex_application.g_f07(i),   -- access_flag
                                    apex_application.g_f08(i),   -- external_flag
                                    apex_application.g_f09(i)   -- confid_ind
                                   ) != apex_application.g_f10(i)
          THEN
          ROLLBACK;
          RAISE_APPLICATION_ERROR(-20001,'Current version of data in database has changed '||
                                   'since user initiated update process.');                      
          RETURN;
        END IF;
      END LOOP;
      FOR i IN 1..apex_application.g_f01.COUNT LOOP
       IF apex_application.g_f01(i) IS NOT NULL THEN
         -- update existing record if PK value exists
         USER_SEC_UPDATE (I_ACTION        => 'U',
                          I_WK            => apex_application.g_f02(i),
                          I_USER_ID       => apex_application.g_f03(i),
                          I_ORG_CODE      => apex_application.g_f05(i),
                          I_ACCESS_FLAG   => apex_application.g_f07(i),
                          I_EXTERNAL_FLAG => apex_application.g_f08(i),
                          I_RPT_LEVEL     => NULL,
                          I_CONFID_IND    => apex_application.g_f09(i),
                          O_RETURN        => v_return,
                          O_MSGCODE       => v_msgcode,
                          O_MESSAGE       => v_message);   
         v_update_cnt := v_update_cnt + 1;
       ELSE
         -- insert new record if PK value doesn't exist
         USER_SEC_UPDATE (I_ACTION        => 'I',
                          I_WK            => NULL,
                          I_USER_ID       => apex_application.g_f03(i),
                          I_ORG_CODE      => apex_application.g_f05(i),
                          I_ACCESS_FLAG   => apex_application.g_f07(i),
                          I_EXTERNAL_FLAG => apex_application.g_f08(i),
                          I_RPT_LEVEL     => NULL,
                          I_CONFID_IND    => apex_application.g_f09(i),
                          O_RETURN        => v_return,
                          O_MSGCODE       => v_msgcode,
                          O_MESSAGE       => v_message);   
         v_insert_cnt := v_insert_cnt + 1;              
       END IF;
      END LOOP;
      :P7_REC_UPDATE_COUNT :=  v_update_cnt;
      :P7_REC_INSERT_COUNT :=  v_insert_cnt;
    END;

  • Programmatically selecting some row - selectedItem is null

    Hey guys
    In my application, I have a datagrid that is bound to RemoteObject. The datagrid has a corresponding form that contains the details. When the user clicks on a row in the datagrid the form populates with the values from the DataGrid's selectedItem.
    I want to programatically select some row in my DataGrid when the application loads.
    In order to do this, I have to call validateNow() and scrollToIndex()
    eg.
    dg.selectedIndex = i; dg.validateNow();
    dg.scrollToIndex(i);
    I put this code in the Applications creationComplete handler.
    This all works great - the desired row is highlighted and selected and the selectedIndex is i. The problem is that I can't access the data to populate the details form. When I try to retrieve the dg.SelectedItem property - it is null.
    How does one programatically select some row in the grid on load AND access the row data?
    thanks

    Hey Alex,
    Thanks for your reply.
    I have searched this issue from Bug and Issue Management System.I did find a similar bug in <mx:List> ,see SDK-4782,But not Datagrid.I'm using SDK 3.2,is there any way to resolve it?

  • Table.rows.find() returns null in a table where the row exists.

    Hi...
    I am working in a Project in Visual Studio 2013 where I have to read an Excel report related with a list of business opportunities. Some of the Fields that are involved in it are:  Opportunity ID, BU, Account, close date, Account Manager,
    Total Value and so on. As soon as I get the conection with the Excel Report, I fill a DataTable and declare the columns [Opportunity ID] and [BU] as my Primary Keys.  In that way, an Opportunity value may have one o more rows
    with different BU code each of them.  In consequence, you can define one row in the table if you specify the [Opportunity ID] and the [BU] values.
    My problem starts when I try to get information of those rows that have an specific value of [Opportunity ID]. For that situation I make a "foreach" structure where I check the BU codes that are involved with that Opportunity. So
    I use the Find() Method to get the information of the row specified by the Opportunity ID and BU.  The first time it goes to find the information it gets the results successfully but in the next cycle changing just the [BU] using the same [Opportunity
    ID] value, the find() method returns a "null" and I do not know why because I am sure that the row exists in the table.  I have verified the "Unique" property for the  [Opportunity ID] and [BU] columns (which are
    my primary keys)  and they are in false which is OK.
    I share the code that I am using...
    Hope someone can help.
    Thanks.
    Alfmar.
    void ObtenTotalesxBUs(string Opportunity, string[] BUs, Object[] TotalBUs, Object[] ExpTotalBUs)
    ArrayList TotalesBUs = new ArrayList(); //Required information from the row.
    ArrayList ExpTotalesBUs = new ArrayList(); //Required information from the row.
    foreach(string businessUnit in BUs)
    Object[] LlaveBusqueda = { Opportunity, businessUnit }; //Provide values to the Primary Keys.
    DataRow RenglonInfo = null;
    RenglonInfo = TablaFunnel.Tabla.Rows.Find(LlaveBusqueda); //Find method receives the Primary Keys values. Here is where I have a "null" in return the second time changing just the [BU] field.
    TotalesBUs.Add(RenglonInfo["Total"]); //Get the required information from the row.
    ExpTotalesBUs.Add(RenglonInfo["Expected Total Value"]); //Get the required information from the row.
    TotalBUs = TotalesBUs.ToArray();
    ExpTotalBUs = ExpTotalesBUs.ToArray();}

    Hi Viorel..
    Thanks a lot for you help.
    I am absolutely sure that the second ítem of BU is valid and exist in the table because I tried to make a "Select" statement in the table providing the values of [Opportunity ID] and [BU] and I get the expected record. So, why is not
    working using Find() with the defined Primary Keys??? 
    I tried this in order to test that the record exists...
    if(RenglonInfo == null)
    string strSelect = "[Opportunity ID] = '0000218256' AND [BU] = 'SFW'";
    RenglonInfo2 = TablaFunnel.Tabla.Select(strSelect);

Maybe you are looking for