[
https://issues.apache.org/jira/browse/OFBIZ-6253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497540#comment-14497540 ]
Jacques Le Roux commented on OFBIZ-6253:
----------------------------------------
To clarify, actually here is what happens when I use the code below inside a simple-method
{code}
<call-simple-method method-name="getCustomerAddress">
<result-to-field result-name="resultMap"/>
</call-simple-method>
{code}
Works
{code}
<call-simple-method method-name="getCustomerAddress" scope="inline">
<result-to-field result-name="resultMap"/>
</call-simple-method>
{code}
Error in log:
{code}
2015-04-16 06:18:31,466 |http-bio-8443-exec-4 |ControlServlet |TRACE| [[[getCustomerInfoAndAddress(Domain:
https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2015-04-16 06:18:31,488 |http-bio-8443-exec-4 |MiniLangValidate |WARN| Inline scope cannot include <result-to-field> elements. Method = getCustomerInfoAndAddress, File = file:/[****], Element = <call-simple-method>, Line 71
{code}
{code}
<call-simple-method method-name="getCustomerAddress" scope="function">
<result-to-field result-name="resultMap"/>
</call-simple-method>
{code}
No errors in log but does not work, the resultMap is not returned
The schema only declares those 2 options and no default, I will have a look later...
> Fix <result-to-field> doc for <call-simple-method> in simple-methods-v2.xsd
> ---------------------------------------------------------------------------
>
> Key: OFBIZ-6253
> URL:
https://issues.apache.org/jira/browse/OFBIZ-6253> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release Branch 12.04, Release Branch 13.07, Release Branch 14.12, Trunk
> Reporter: Jacques Le Roux
> Assignee: Jacques Le Roux
>
> A wrong assertion in documentation: <result-to-field can only be used with inline scope not function scope
> Fixed in
> trunk r1673764
> R14.12 r1673765
> R13.07 r1673766
> R12.04 r1673767
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)