hi,
I have a doubt on retrieve a row from a ViewObject based on given ID. I have written a method in AppModuleImpl class. Here based on usid , i want to get the row from customVo, and its returning a null value inspite of the value being present in the DB . Help me to find solution for this.
public void revDragDropAction() {
{
ViewObject customVO = this.getSprintUserstoryViewVO1();
ViewObject usSprintVO = this.getPmpUserstorySprintView1();
Row drag = usSprintVO.getCurrentRow();
BigDecimal usid= (BigDecimal)drag.getAttribute("UsId");
// created the key object
Key key = new Key(new Object[] { usid});
System.out.println("key value last " + key);
Row k = customVO.getRow(key);
if(k!=null)
{
k.setAttribute("UsStatus", "N");
System.out.println("Row key value " + k);
}
this.getDBTransaction().commit();
}