-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

what does the logs say
what version of ofbiz are you using


hairi007 sent the following on 2/22/2009 10:23 AM:
> (ofBiz newbie)
> Hi guys, im using a service to create a record in a database
> All tehe required datas are keyed in a textfield
> service.xml
>  <service name="createCustRequest" engine="simple"
> default-entity-name="CustRequest"
> location="org/ofbiz/order/request/CustRequestServices.xml"
> invoke="createCustRequest" auth="true">
>         <description>Create a custRequest record and optionally create a
> custRequest item.</description>
>         <attribute name="custRequestId" type="String" mode="IN"
> optional="true"/>
>          <attribute name="fromPartyId" type="String" mode="IN"
> optional="true"/>
>           <attribute name="custRequestDate" type="String" mode="IN"
> optional="true"/>
>       <attribute name="statusId" type="String" mode="IN" optional="true"/>
>     </service>
> 
> 
> and the simple method 
> 
>    <simple-method method-name="createCustRequest" short-description="Create
> Customer Request">
>         <make-value value-field="newEntity" entity-name="CustRequest"/>
>         <set-nonpk-fields map="parameters" value-field="newEntity"/> 
>       
>         <set from-field="fromPartyId" field="newEntity.fromPartyId"/>
>         <set from-field="custRequestDate"
> field="newEntity.custRequestDate"/>
>         <set from-field="statusId" field="newEntity.statusId"/>
>         
>               <sequenced-id sequence-name="CustRequest" 
> field="custRequestId"/>
>         <to-string field-name="custRequestId"/>
>         <set from-field="custRequestId" field="newEntity.custRequestId"/>
>         <create-value value-field="newEntity"/>
>         <field-to-result field="custRequestId" map-name="newEntity"/>
> 
>     </simple-method>
>       
> 
> When i click submit it shows success,however the new record is not reflected
> on my DB when i check ed it from webtools..Need your help ..thnx! :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJobGwrP3NbaWWqE4RAueVAJ9AG4MQ2atVXg4GfwKe8lMYnU446ACgm28u
fnN8eVg5AIJ1SMJnv2pp5bM=
=BiVE
-----END PGP SIGNATURE-----

Reply via email to