Users - Change Insert to Update

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

Users - Change Insert to Update

Charles Johnson-2
Following is a method from the tutorial. How can this be changed to
allow an update? I tried to use it as is, but it threw a dup key exception:

<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd">
    <simple-method method-name="createHelloPersonHobby"
short-description="Create a Hobby-Person relationship"
        login-required="false">
        <make-value entity-name="HelloPersonHobby" value-name="newEntity"/>
        <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
        <set-pk-fields map-name="parameters" value-name="newEntity"/>
        <create-value value-name="newEntity"/>
    </simple-method>
</simple-methods>

CJ
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users