[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ganymede Help] setting a field value...
|
Oops, I made a typo.
if (field.getID() == OWNER)
{
System.out.println("I am here ");
strField = (StringDBField) getField(ROOMNUMBER);
retVal = strField.setValueLocal("Value set");
if (retVal != null && !retVal.didSucceed())
{
System.out.println("Error setting ROOMNUMBER field!");
System.out.println(retVal.getDialogText());
}
else
{
retVal = new retVal(true, true); // indicate success
this ^^^^^
should be
retVal = new ReturnVal(true, true); // indicate success
^^^^^^^^^ this
retVal.addRescanField(this.getInvid(), ROOMNUMBER);
}
System.out.println("I am now here");
// pass back a successful ReturnVal with a rescanField instruction
// if we succeeded in setting ROOMNUMBER, else return back the
// error condition that prevented the setValueLocal() call from
// completing
return retVal;
}
return null; // if we weren't changing the OWNER field, always approve
}
Sorry about that.
--
-------------------------------------------------------------------------------
Jonathan Abbey jonabbey@arlut.utexas.edu
Applied Research Laboratories The University of Texas at Austin
Ganymede, a GPL'ed metadirectory for UNIX http://www.arlut.utexas.edu/gash2
Re: [Ganymede Help] setting a field value...
- From: Jonathan Abbey <jonabbey@arlut.utexas.edu>