ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Howe <cjhowe76...@yahoo.com>
Subject Re: Problem with storing data into Data base
Date Wed, 04 Oct 2006 12:55:23 GMT
orderId is undefined.  If you've defined it elsewhere,
the error should be printed in the log.

--- "G.Venkata Phanindra" <phani1983@gmail.com> wrote:

> Hi,
>      I am trying to add an entry into one of the
> table Named OrderHeaderExt
> i am writting the following lines of code but the
> data is not getting stored
> into data base.what is that iam doing worng in the
> following lines of code.
>
------------------------------------------------------
>  String deliveryDate = "22/Sep/2006";
>             Date deliveryDateValue =
> df.parse(deliveryDate);
>             Timestamp deliveryDateTimestamp = new
> Timestamp(
> deliveryDateValue.getTime());
>             GenericValue orderHeaderExt =
> delegator.makeValue("OrderHeaderExt",
> UtilMisc.toMap("orderId", orderId, "deliveryDate",
> deliveryDateTimestamp));
>             try {
>                 orderHeaderExt.store();
>             } catch (GenericEntityException e) {
>                 e.printStackTrace();
>             }
> 
> -- 
> G.Venkata Phanindra
> Mob:: 9849852989
> 


Mime
View raw message