error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

error

Pal Infocom Technologies-2
thanks for your help

i am trying to take input from form for entity HelloHobby by calling simple method

here is simple method code
<simple-method short-description="create a hooby" method-name="createHobby" login-required="false">
    <make-value entity-name="HelloHobby" value-name="newEntity"></make-value>
    <sequenced-id-to-env sequence-name="HelloHobby" env-name="helloHobbyId"></sequenced-id-to-env>
   
    <set-pk-fields value-name="newEntity"  map-name="parameters"></set-pk-fields>
    <set-nonpk-fields value-name="newEntity" map-name="parameters"></set-nonpk-fields>
    <create-value value-name="newEntity"></create-value>
   
</simple-method>


when i press submit i got following error


 (SQL Exception while executing the following:INSERT INTO OFBIZ.HELLO_HOBBY (HELLO_HOBBY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (Column 'HELLO_HOBBY_ID'  cannot accept a NULL value.)))
Reply | Threaded
Open this post in threaded view
|

Re: error

Krzysztof Podejma
try this
<sequenced-id-to-env sequence-name="HelloHobby" env-name="
newEntity.helloHobbyId"/>

Krzysztof Podejma

2007/6/6, amit charaya <[hidden email]>:

>
>
> thanks for your help
>
> i am trying to take input from form for entity HelloHobby by calling
> simple
> method
>
> here is simple method code
> <simple-method short-description="create a hooby"
> method-name="createHobby"
> login-required="false">
>     <make-value entity-name="HelloHobby"
> value-name="newEntity"></make-value>
>     <sequenced-id-to-env sequence-name="HelloHobby"
> env-name="helloHobbyId"></sequenced-id-to-env>
>
>     <set-pk-fields value-name="newEntity"
> map-name="parameters"></set-pk-fields>
>     <set-nonpk-fields value-name="newEntity"
> map-name="parameters"></set-nonpk-fields>
>     <create-value value-name="newEntity"></create-value>
>
> </simple-method>
>
>
> when i press submit i got following error
>
>
> (SQL Exception while executing the following:INSERT INTO OFBIZ.HELLO_HOBBY
> (HELLO_HOBBY_ID, DESCRIPTION, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP,
> CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?) (Column
> 'HELLO_HOBBY_ID'  cannot accept a NULL value.)))
> --
> View this message in context:
> http://www.nabble.com/error-tf3877188.html#a10986385
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>