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

Re: [Ganymede Help] setting a field value...

Date Thu, 16 May 2002 14:59:45 -0400
From "Gaurav Bhargava" <gaurav.bhargava@villanova.edu>

Hey JOn,
I used the methods , 

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());
        }

      System.out.println("I am now here");

      return null; // approve the operation even if setting the 
ROOMNUMBER failed
    }

  return null; // if we weren't changing the OWNER field, always approve
}

it doesnt give any error message on the console rather it just prints 
the two print statements......i dont know whats going on here........is 
there anything i am missing here. DO you need any other specification 
for this .......please do let me know.I have a field called AID which 
has name space constraint , if i try to set a value in that field which 
allready existst then it gives me an  error on console but when i try 
it with a fresh value it doesnt set 
anything................................Pls help.
Thanks fot your help.
Gaurav Bhargava
(484)-919-0105(cell)
(610)-687-1941(Res.)
http://www.homepage.villanova.edu/gaurav.bhargava