hello,
Put all log messages that you are getting on terminal so that anyone can help you :-)

Regards
Ravindra Mandre


hairi007 wrote:
(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! :)

Reply via email to