oitem is a GenericValue object, you have to use the methods of this object. Use setString(key, value) instead.
Bilgin On Tue, Jun 29, 2010 at 5:02 PM, chaohua wang <[email protected]> wrote: > Hi, Folks, > > in the orderstatus.bsh file. > > oii = orderItems.iterator(); > > while (oii.hasNext()) { > oitem = oii.next(); > > String itDes = oitem.getString("itemDescription"); > ........................... > } > > I want to update itemDescription value. I tried to use > > oitem.updateString("itemDescription", "®"); > > but threw the exceptions: > > Method updateString( java.lang.String, java.lang.String ) not found in > class'org.ofbiz.entity.GenericValue')) > > Could you tell me how to update itemDescription of orderitem? > > Thanks > > Chwang >
