This discussion is archived
2 Replies Latest reply: Jan 31, 2013 2:44 AM by Manohar Veerapaneni RSS

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

Manohar Veerapaneni Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points