You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacek Wagner <ja...@berkeley.edu> on 2008/12/12 00:49:04 UTC
how to retrieve partyId from createCustomer
All,
There is a very complex service implementation "createCustomer". Yet
there is not a single service definition that defines createCustomer api.
What would be the best way to retrieve partyId from this service?
Jacek
Re: how to retrieve partyId from createCustomer
Posted by Abhishake Agarwal <ab...@gmail.com>.
if you call service through controller event, I think result map containing
partyid_OUT_VariableName is set to request attribute.
On Fri, Dec 12, 2008 at 10:54 PM, Jacek Wagner <ja...@berkeley.edu>wrote:
> createCustomer before change:
> .......
> <call-service service-name="createPersonAndUserLogin"
> in-map-name="personUserLoginContext">
> <result-to-field result-name="partyId" map-name="tempMap"/>
> <result-to-field field-name="createdUserLogin"
> result-name="newUserLogin"/> </call-service>
> .........
> createCustomer after change:
> ......
> <call-service service-name="createPersonAndUserLogin"
> in-map-name="personUserLoginContext">
> <result-to-field result-name="partyId" map-name="tempMap"/>
> <result-to-field field-name="createdUserLogin"
> result-name="newUserLogin"/> </call-service>
> <field-to-result map-name="tempMap" field-name="partyId"
> result-name="partyId_OUT_VariableName"/>
> ......
>
> Result: any reference to tempMap, partyId or partyid_OUT_VariableName in
> subsequent screen widget shows no data
>
> Jacek
>
>
> Abhishake Agarwal wrote:
>
>> try <field-to-result map-name="tempMap" field-name="partyId"
>> result-name="partyId_OUT_VariableName"/>
>>
>> On Fri, Dec 12, 2008 at 9:32 PM, Jacek Wagner <jacek_wagner@berkeley.edu
>> >wrote:
>>
>>
>>
>>> CJay,
>>>
>>> I have already tried to use tempMap in the subsequent screen widget
>>>
>>> <set field="partyId" from-field="tempMap"/> ; did not work
>>>
>>> Jacek
>>>
>>>
>>>
>>> CJay Horton wrote:
>>>
>>>
>>>
>>>> Jacek,
>>>>
>>>> I am new to ofbiz, but perhaps what you are looking for is here and
>>>> the lines below it in the method:
>>>>
>>>> <call-service service-name="createPersonAndUserLogin"
>>>> in-map-name="personUserLoginContext">
>>>> <result-to-field result-name="partyId" map-name="tempMap"/>
>>>> <result-to-field field-name="createdUserLogin"
>>>> result-name="newUserLogin"/>
>>>> </call-service>
>>>>
>>>> Calls the simple method createPersonAndUserLogin located in
>>>> PartySimpleMethods.xml
>>>>
>>>> I hope this is what you are looking for.
>>>>
>>>> -CJ
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
Re: how to retrieve partyId from createCustomer
Posted by Jacek Wagner <ja...@berkeley.edu>.
createCustomer before change:
.......
<call-service service-name="createPersonAndUserLogin"
in-map-name="personUserLoginContext">
<result-to-field result-name="partyId" map-name="tempMap"/>
<result-to-field field-name="createdUserLogin"
result-name="newUserLogin"/>
</call-service>
.........
createCustomer after change:
......
<call-service service-name="createPersonAndUserLogin"
in-map-name="personUserLoginContext">
<result-to-field result-name="partyId" map-name="tempMap"/>
<result-to-field field-name="createdUserLogin"
result-name="newUserLogin"/>
</call-service>
<field-to-result map-name="tempMap" field-name="partyId"
result-name="partyId_OUT_VariableName"/>
......
Result: any reference to tempMap, partyId or partyid_OUT_VariableName in
subsequent screen widget shows no data
Jacek
Abhishake Agarwal wrote:
> try <field-to-result map-name="tempMap" field-name="partyId"
> result-name="partyId_OUT_VariableName"/>
>
> On Fri, Dec 12, 2008 at 9:32 PM, Jacek Wagner <ja...@berkeley.edu>wrote:
>
>
>> CJay,
>>
>> I have already tried to use tempMap in the subsequent screen widget
>>
>> <set field="partyId" from-field="tempMap"/> ; did not work
>>
>> Jacek
>>
>>
>>
>> CJay Horton wrote:
>>
>>
>>> Jacek,
>>>
>>> I am new to ofbiz, but perhaps what you are looking for is here and
>>> the lines below it in the method:
>>>
>>> <call-service service-name="createPersonAndUserLogin"
>>> in-map-name="personUserLoginContext">
>>> <result-to-field result-name="partyId" map-name="tempMap"/>
>>> <result-to-field field-name="createdUserLogin"
>>> result-name="newUserLogin"/>
>>> </call-service>
>>>
>>> Calls the simple method createPersonAndUserLogin located in
>>> PartySimpleMethods.xml
>>>
>>> I hope this is what you are looking for.
>>>
>>> -CJ
>>>
>>>
>>>
>>
>
>
Re: how to retrieve partyId from createCustomer
Posted by Abhishake Agarwal <ab...@gmail.com>.
try <field-to-result map-name="tempMap" field-name="partyId"
result-name="partyId_OUT_VariableName"/>
On Fri, Dec 12, 2008 at 9:32 PM, Jacek Wagner <ja...@berkeley.edu>wrote:
> CJay,
>
> I have already tried to use tempMap in the subsequent screen widget
>
> <set field="partyId" from-field="tempMap"/> ; did not work
>
> Jacek
>
>
>
> CJay Horton wrote:
>
>> Jacek,
>>
>> I am new to ofbiz, but perhaps what you are looking for is here and
>> the lines below it in the method:
>>
>> <call-service service-name="createPersonAndUserLogin"
>> in-map-name="personUserLoginContext">
>> <result-to-field result-name="partyId" map-name="tempMap"/>
>> <result-to-field field-name="createdUserLogin"
>> result-name="newUserLogin"/>
>> </call-service>
>>
>> Calls the simple method createPersonAndUserLogin located in
>> PartySimpleMethods.xml
>>
>> I hope this is what you are looking for.
>>
>> -CJ
>>
>>
>
>
Re: how to retrieve partyId from createCustomer
Posted by Jacek Wagner <ja...@berkeley.edu>.
CJay,
I have already tried to use tempMap in the subsequent screen widget
<set field="partyId" from-field="tempMap"/> ; did not work
Jacek
CJay Horton wrote:
> Jacek,
>
> I am new to ofbiz, but perhaps what you are looking for is here and
> the lines below it in the method:
>
> <call-service service-name="createPersonAndUserLogin"
> in-map-name="personUserLoginContext">
> <result-to-field result-name="partyId" map-name="tempMap"/>
> <result-to-field field-name="createdUserLogin"
> result-name="newUserLogin"/>
> </call-service>
>
> Calls the simple method createPersonAndUserLogin located in
> PartySimpleMethods.xml
>
> I hope this is what you are looking for.
>
> -CJ
>
Re: how to retrieve partyId from createCustomer
Posted by CJay Horton <ja...@gmail.com>.
Jacek,
I am new to ofbiz, but perhaps what you are looking for is here and
the lines below it in the method:
<call-service service-name="createPersonAndUserLogin"
in-map-name="personUserLoginContext">
<result-to-field result-name="partyId" map-name="tempMap"/>
<result-to-field field-name="createdUserLogin"
result-name="newUserLogin"/>
</call-service>
Calls the simple method createPersonAndUserLogin located in
PartySimpleMethods.xml
I hope this is what you are looking for.
-CJ