8 Replies Latest reply on Jul 10, 2013 9:24 AM by Priyanka Saxena-Oracle

    row reference issue in CO

      My req is on selecting a check box in an advanced table on a seeded page, I had to disable a textinput. personalized the screen, added 2 columns checkbox and textinput. Substituted the standard VO, added 2 attributes for these 2 newly added columns.
      extended the controller, added PPR logic on checkbox programatically in PR. In CO PFR, added the PPR handling logic. Inside it, im getting row reference and trying to get the value of one of attributes.

      after deploying the code, on selecting check box, it is going inside the PPR handling logic and is erring out while im getting the attribute value.
      I checked the standard VO and it neither has a primary key nor a key attribute. Hence while substituting the VO, I marked one of attributes as key attribute, deployed back code and bounced apache.

      still im getting null pointer exception, please let me know how to get row reference in this case.

      PR :-
      OAMessageCheckBoxBean chkbox = (OAMessageCheckBoxBean)oawebbean.findIndexedChildRecursive("SelectInv");
      FirePartialAction firePartialAction = new FirePartialAction();

      PFR :-
      String rowRef = oapagecontext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
      Row currentRow = am.findRowByRef(rowRef);
      if("Y".equals(currentRow.getAttribute("Select"))) ---I'm getting null pointer here

      tried using currentRow != null, it didnt go inside the loop in this case.