4 Replies Latest reply: Feb 15, 2013 4:54 AM by grodno RSS

    getCurrentRow() returns null on selected row

    grodno
      hi,

      on page i have a master-detail tables
      there's
      selectionListener="#{bindings.DcaRegisterView1.collectionModel.makeCurrent}"
      on table

      i click on detail to mark rows with boolean checkboxes, then call the following piece of code
      getCurrentRow() was working for a long time, but today i discovered it returns null. (after some changes )

      OperationBinding operationBinding = bindings.getOperationBinding("moveRegisterLines");
      dciter = (DCIteratorBinding)bindings.get("DcaRegisterLinesV1Iterator");
      Row currRow=dciter.getCurrentRow(); --it;s null here

      what might cause that table's row is not in synchro with model layer?
      jdev 11.1.2.3
        • 1. Re: dciter.getCurrentRow() returns null on selected row
          izzzooo
          Hi,
          Be aware of refreshing the query sometimes when you select a row from table and click a button some components may refresh your table.

          Then try like this;

          AppModule am = ADFUtils.getAppModuleInterface();
          ViewObject vo = am.findViewObject("your view object name");
          Row row = vo.getSelectedRow();

          i hope this will hellp you

          Best Regards
          • 2. Re: getCurrentRow() returns null on selected row
            Frank Nimphius-Oracle
            grodno,


            come on, give me a break.

            +getCurrentRow() was working for a long time, but today i discovered it returns null. *(after some changes* )+

            So what has changed since the working state and the broken state? Things don't happen overnight and usually have a cause. When you don't click the check box but on another row in the table, does it then select the row properly? If so then your check box is the cause to look at. Please provide additional information

            Frank
            • 3. Re: getCurrentRow() returns null on selected row
              grodno
              Frank,

              it's all right you write.
              i made some changes that can't rollback.
              the problem originally started to inflate when massive checkbox mark runtime took too long.
              so i created a stored proc to mark/unmark all records (several thousands) and then refresh table
              then in multiuser test i found locks on that table , but i checked any trigger on that table , even disabaled it.
              plus i added some js to call refresh
              so that's how i lost that tabgle being in synchro
              so what i 'd like to do is implement manual current row synchro in bb...
              • 4. Re: dciter.getCurrentRow() returns null on selected row
                grodno
                you meant vo.getCurrentRow() probable
                it doesn't help any way...
                problems is that layers are out of sync for some reason...