...
private NSMutableDictionary txImplication = new NSMutableDictionary();
public ForAjaxEditor Editor = new ForAjaxEditor();
...
public WOActionResults ajoutPerson() {
...
// Add line to set row and the String value
Editor.setIndex(session.getPersonneDg().allObjects().count() - 1);
Editor.setTempUtil("taux%");
// Here I use NSDictionnary, it's perfect
txImplication.put(Editor.getIndex(), Editor.getTempUtil());
...
}
public String theEditor() {
if (session.getPersonneDg().selectedObject() != null) {
Integer index = session.getPersonneDg().displayedObjects().indexOf(session.getPersonneDg().selectedObject());
if (txImplication.containsKey(index)) {
return (String) txImplication.get(index);
}
}
return Editor.getTempUtil();
}
public void setTheEditor(String aValue) {
session.getPersonneDg().setSelectedObject(session.getPersonRhRepetition());
EOIndividuUlr perso = ((EOIndividuUlr) session.getPersonneDg().selectedObject()).localInstanceIn(ed);
int index = session.getPersonneDg().displayedObjects().indexOf(perso);
if (txImplication.containsKey(index)) {
txImplication.setObjectForKey(aValue, index);
}
}