[
https://issues.apache.org/jira/browse/OFBIZ-6941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15202710#comment-15202710 ]
Amardeep Singh Jhajj commented on OFBIZ-6941:
---------------------------------------------
Looked into the issue and I think it is working fine. We have tried the following scenarios:
Test Case 1st :
Set the parameter in the action tag and passed it from the layer-modal link to the modal widget like:
Action Tag
{code}
<set field="demoParam" value="demoValue"/>
{code}
Screen Widget
{code}
<link target="AddJobManagerLock" text="${uiLabelMap.CommonAdd}" style="buttontext create" link-type="layered-modal">
<parameter param-name="demoParam"/>
</link>
{code}
On layered modal screen
{code}
<decorator-section name="body">
<label text="${parameters.demoParam}"></label>
<include-form name="AddJobManagerLock" location="component://webtools/widget/ServiceForms.xml"/>
</decorator-section>
{code}
Result : I was able to get that parameter value on respective layered-modal.
Test Case 2nd :
Set the parameter name and value corresponding to it in layered-modal widget like:
Screen Widget
{code}
<link target="AddJobManagerLock" text="${uiLabelMap.CommonAdd}" style="buttontext create" link-type="layered-modal">
<parameter param-name="demoParam" value="demoValue"/>
</link>
{code}
On layered modal screen
{code}
<decorator-section name="body">
<label text="${parameters.demoParam}"></label>
<include-form name="AddJobManagerLock" location="component://webtools/widget/ServiceForms.xml"/>
</decorator-section>
{code}
Result : I was able to get that parameter value on respective layered-modal.
Please have a look on attached screenshot and let us know if I am missing something here.
Thanks.
> Layered-Modal link type doesn't work with parameters
> ----------------------------------------------------
>
> Key: OFBIZ-6941
> URL:
https://issues.apache.org/jira/browse/OFBIZ-6941> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Trunk
> Reporter: Pierre Smits
> Labels: modalwindow, renderer
> Attachments: OFBIZ-6941-Screenshot-1.png
>
>
> When having a link of type layered-modal it should with assocated parameters.
> However the parameters aren't passed to the modal window.
> Example code:
> {code}
> <link target="nProductionRunPartyAssocLayer" link-type="layered-modal" width="1000" height="400">
> <parameter param-name="productionRunId"/>
> </link>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)