[ http://issues.apache.org/jira/browse/OFBIZ-240?page=all ]

Leon Torres updated OFBIZ-240:
------------------------------

    Attachment: selectAllSmallestImpact.patch

Here's the smallest impact patch for this feature.

To generate the select all, the user must define a <field name="_rowSubmit" 
title="somethingOrElse"><check/></field> in a form of type "multi".  The magic 
field name is because of selectall.js.

> selectAll on multi-forms
> ------------------------
>
>                 Key: OFBIZ-240
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-240
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Si Chen
>            Priority: Minor
>         Attachments: selectAllSmallestImpact.patch
>
>
> Add a "select-all" button to multi-forms.  Comments from mailing list:
> Si,
> I think you're right that this is broken. I just looked around for anything 
> in the form widget code referring to the "toggleAll" method and it's not 
> there... So, yeah, in the HtmlFormRenderer we should add the normal checkbox 
> to the header as is used elsewhere, like this:
> <input type="checkbox" name="selectAll" value="Y" 
> onclick="javascript:toggleAll(this, 'selectAllForm');"/>
> The "selectAllForm" string should be replaced dynamically with the form name, 
> and then that should do it... The rowSubmit fields should already be going in 
> with the use-row-submit attribute set to true.
> -David

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to