I have a record action table as seen on the picture below. I added status column with overriding getCalculatedFields. The problem I have is that the value of the field is the same for all rows but I would like to put a different values in each row. So far I haven’t figured it out how to get different values for each row. If someone can help me with it.
[attachment=0]Selection_046.png[/attachment]
my code:
class extending RecordActionTable:
@Override
protected List<ICalculatedField<LabAgentManagerTableRecord>> getCalculatedFields() {
List <ICalculatedField<LabAgentManagerTableRecord>> list= new ArrayList<ICalculatedField<LabAgentManagerTableRecord >>();
String print="something";
Status status= new Status(print);
list.add(status);
return list;
}
Status class:
public class Status implements RecordActionTable.ICalculatedField<LabAgentManagerTableRecord> {
String print;
public Status(String print) {
this.print= print;
// TODO Auto-generated constructor stub
}
@Override
public Object getFieldvalue(LabAgentManagerTableRecord record) {
return print;
}
@Override
public String getHeaderKey() {
return "LabAgentManager.table.satus";
}
}