You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by amit charaya <of...@palinfocom.net> on 2007/06/06 13:04:27 UTC
error
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.
Re: error
Posted by Krzysztof Podejma <kp...@gmail.com>.
try this
<sequenced-id-to-env sequence-name="HelloHobby" env-name="
newEntity.helloHobbyId"/>
Krzysztof Podejma
2007/6/6, amit charaya <of...@palinfocom.net>:
>
>
> 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.
>
>