Hi Ashish,
i got it working, without manually setting the partyIdFrom:
Index: applications/party/script/org/ofbiz/party/party/PartyServices.xml
===================================================================
--- applications/party/script/org/ofbiz/party/party/PartyServices.xml
(revision 665702)
+++ applications/party/script/org/ofbiz/party/party/PartyServices.xml
(working copy)
@@ -766,6 +766,7 @@
<simple-method method-name="createPartyRelationship"
short-description="createPartyRelationship">
<if-empty field-name="parameters.roleTypeIdFrom"><set
field="parameters.roleTypeIdFrom" value="_NA_"/></if-empty>
<if-empty field-name="parameters.roleTypeIdTo"><set
field="parameters.roleTypeIdTo" value="_NA_"/></if-empty>
+ <if-empty field-name="parameters.partyIdFrom"><set
field="parameters.partyIdFrom"
from-field="userLogin.partyId"/></if-empty>
<if-empty
field-name="parameters.fromDate"><now-timestamp-to-env
env-name="parameters.fromDate"/></if-empty>
should I post this to jira?
Greetings,
Roland
Ashish Vijaywargiya wrote:
You can take a help of the following URL to get more insight about the code
:-
https://localhost:8443/partymgr/control/EditPartyRelationships?partyId=admin
Inside EditPartyRelationships.ftl file line # 103 partyIdFrom is passed as
the hidden parameter to the service and the "partyId" has been set in the
Screen definition.
<input type="hidden" name="partyIdFrom" value="${partyId}"/>
You may need to pass the partyIdFrom in your service map as its passed as
the hidden field in the PartyRelationship screen that is present in Ofbiz.
Please let us know if you are unable to find the way from my comments.