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

Nameet Jain commented on OFBIZ-12154:
-------------------------------------

Hi [~jleroux] 

Please replace the below form in ExampleForms.xml#FindExamples
{code:java}
<form name="FindExamples" type="single" target="FindExample" 
default-entity-name="Example">
    <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there 
then with all fields empty no query will be done --></field>
    <field name="exampleId" 
title="${uiLabelMap.ExampleExampleId}"><text-find/></field>
    <field name="exampleName" 
title="${uiLabelMap.CommonName}"><text-find/></field>
    <field name="exampleTypeId" title="${uiLabelMap.CommonType}">
        <drop-down allow-empty="true" current-description="">
            <entity-options key-field-name="exampleTypeId" 
entity-name="ExampleType">
                <entity-order-by field-name="description"/>
            </entity-options>
        </drop-down>
    </field>
    <field name="statusId" title="${uiLabelMap.CommonStatus}">
        <drop-down allow-empty="true" current-description="">
            <entity-options key-field-name="statusId" 
entity-name="ExampleStatusItem"/>
        </drop-down>
    </field>
    <field name="listOtherElements">
        <check>
            <option key="items"/>
            <option key="features"/>
            <option key="status"/>
        </check>
    </field>
    <field name="searchButton"><submit/></field>
    <field name="exportButton" position="2" widget-style="smallSubmit" title=" 
">
        <hyperlink also-hidden="false" target-type="plain" 
description="${uiLabelMap.CommonExport}"
                   target="javascript: 
document.FindExamples.action='ListExampleExport'; 
document.FindExamples.submit();"/>
    </field>
</form>
{code}

The field *listOtherElements* is originally a radio button, I changed it to a 
checkbox.

Thanks

 

> Form widget "checkbox" do not persist selected value with multiple options 
> checked
> ----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-12154
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12154
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Nameet Jain
>            Priority: Major
>         Attachments: OFBIZ-12154.patch
>
>
> I tried to use the form-widgets checkbox on my find screen. But when 
> searching values with multiple options checked, no checkbox appears to be 
> selected.
> I found similar kind of ticket OFBIZ-11933. 
> Seems the checkbox was replaced by a dropdown here. 
> I suggest fixing this bug at the framework level.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to