[ 
https://issues.apache.org/jira/browse/OFBIZ-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471947
 ] 

Chris Howe commented on OFBIZ-710:
----------------------------------

Hey Anil,

This is related to OFBIZ-278.  This reminded me of it and I think I've found a 
solution for OFBIZ-278 that would take care of this as well. I'm going to test 
my guess and report back later today.  

Looking over your patch, why do the screen.render at all?  Why not put
<screen name="EditInventoryItem">
<snip>
<html-template 
location="component://product/webapp/facility/inventory/EditInventoryItem.ftl"/>
<snip>
<include-screen name="nonSerialFormScreens"/>
<snip>
</screen>


<screen name="nonSerialFormScreens">
<section>
<conditional>
<if-compare field="inventoryItem.inventoryItemTypeId" 
value="NON_SERIAL_INV_ITEM"/>
</conditional>
<widgets>
<include-form name="ViewPhysicalInventoryAndVariance" 
location="component://product/webapp/facility/inventory/InventoryForms.xml"/>
<include-form name="CreatePhysicalInventoryAndVariance" 
location="component://product/webapp/facility/inventory/InventoryForms.xml"/>
</widgets>
</section>
</screen>

and remove the final conditional test from the end of EditInventoryItem.ftl

> EditInventoryItem.bsh has HtmlFormWrapper rendering code. This be replaced 
> with screens.render in ftl.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-710
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-710
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: product
>            Reporter: Anil K Patel
>         Attachments: EditInventoryItemRefactored.patch, 
> EditInventoryItemRefactored.patch
>
>
> EditInventory.bsh file uses HtmlFormWrapper for rendering  
> /inventory/InventoryForms.xml#CreatePhysicalInventoryAndVariance, 
> ViewPhysicalInventoryAndVariance forms. Path to the forms file is relative to 
> facility webapp. This causes limitation in using the EditInventory screen 
> from other components.
> The code for rendering should be moved to EditInventory.ftl file and should 
> use screens.render.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to