[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ganymede Help] setting a field value...

Date Tue, 14 May 2002 14:53:34 -0400
From "Gaurav Bhargava" <gaurav.bhargava@villanova.edu>

Hi Jon,
I am trying to set a value in a field in the finalizeSetValue() method
It doesnt give me any error but it just doesnt set any value ....please 
have a look at it.

public synchronized ReturnVal finalizeSetValue(DBField field, Object 
value)  
   {
   	StringDBField strField;
   	if (field.getID() == OWNER)
    {  
       System.out.println("I am here "); 	
       strField = (StringDBField) getField(ROOMNUMBER);
	   strField.setValueLocal("Value set");
	   System.out.println("I am now here");
	}
return null; // success!
}
it goes in the method as i can see the system.out.println() messages on 
the console.
I also have a field called ipaddress on which i have to use the same 
method setValueLocal() to set the value(the field is a IPDBField). Can 
you tell me as to what parameter the method will accept.......like if a 
setValueLocal() is used on a string field it takes  string as a 
parameter....will it take a string???
Thanks
Gaurav


----------------------------------------------------------------------------
To make changes to your subscription to the Ganymede Help list, send
mail to majordomo@arlut.utexas.edu.

To unsubcribe, include the line

unsubscribe ganymede-help

in the body of your mail message

Visit the Ganymede web page at http://www.arlut.utexas.edu/gash2

----------------------------------------------------------------------------