2 Replies Latest reply: Jan 31, 2013 4:44 AM by Manohar Veerapaneni RSS

    problem while creating row with dependent select one choice in adf  table

    Manohar Veerapaneni
      Iam having independent and dependent select one choice in a ROW in adf af:table
      unable to insert more than one row with dependent select one choice using create insert in adf table.
      Able to add more rows in UI af:table but ,ignoring previous rows (select one choice values) and only latest current row values is getting inserted to the database.
      Following is the code used to create row and for pointing to the current row

      public void addRowOnSecSettings(){
      SecurityGroupSettingsVOImpl SecGroupSetVO =(SecurityGroupSettingsVOImpl) this.getSecurityGroupSettingsVO1();
      try{

      int rowCount = SecGroupSetVO.getRowCount();

      SecurityGroupSettingsVORowImpl SecGroupSetRow =
      (SecurityGroupSettingsVORowImpl)SecGroupSetVO.createRow();
      SecGroupSetRow.setNewRowState(Row.STATUS_INITIALIZED);
      SecGroupSetVO.insertRowAtRangeIndex(rowCount, SecGroupSetRow);
      SecGroupSetVO.setCurrentRowAtRangeIndex(rowCount);
      SecGroupSetVO.setCurrentRow(SecGroupSetRow);

      } catch (Exception e) {
      e.printStackTrace();
      }
      }
      Regards,
      Bhagavan