Users - Change Insert to Update
Posted by
Charles Johnson-2 on
Jan 27, 2006; 1:31pm
URL: http://ofbiz.116.s1.nabble.com/Users-Change-Insert-to-Update-tp137105.html
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