In this post i willl explain you how to update the attribute value of a Row.
The following code will find the EmployeeId 100 in Employee View object and update the FirstName.
Number empid=100;
// create the key object
Key key = new Key(new Object[] { empid });
Employees1ViewImpl vo = (Employees1ViewImpl)this.getEmployees1View1();
//find the row using key reference in View Object.
Row k=vo.getRow(key);
//using this method we can set the new value to FirstName
k.setAttribute("FirstName", "stev");
this.getDBTransaction().commit();
System.out.println("the name is");
The following code will find the EmployeeId 100 in Employee View object and update the FirstName.
Number empid=100;
// create the key object
Key key = new Key(new Object[] { empid });
Employees1ViewImpl vo = (Employees1ViewImpl)this.getEmployees1View1();
//find the row using key reference in View Object.
Row k=vo.getRow(key);
//using this method we can set the new value to FirstName
k.setAttribute("FirstName", "stev");
this.getDBTransaction().commit();
System.out.println("the name is");