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

Bilgin Ibryam commented on OFBIZ-1943:
--------------------------------------

Bruno, 
your solution works, but as you said it requires lots of code in the form 
definition and also search parameters (like begins with, contains, ignore case) 
gets the default values and search result is not correct.


I have tried to implement the same functionality in the form widget level
For this I also used the styles and images from Bruno's patch. Also added one 
more image.
To test the patch(columnSort.diff) you need to add also the images from 
columnSort.rar to framework/images...
And you can see the columns to sort in Example list form.

Would be nice also to have comments/review by someone familiar with widgets.
Bilgin

> List/Multi form column sorting
> ------------------------------
>
>                 Key: OFBIZ-1943
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1943
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>            Reporter: Bruno Busco
>            Priority: Minor
>         Attachments: framework_images_webapp_images.zip, 
> sortable_form_column.jpg, sortable_form_columns.patch
>
>
> Hi,
> I would like to submit, to be reviewed, what I have done to implement 
> sortable columns in multi and list forms.
> I wonder if there is a simpler and better solution that could, for instance, 
> be implemented in the form widget itself requiring less code in the xml file.
> To be reviewed I implemented the sortable column in the FindExample Screen.
> This solution requires a little change in the framework (included in the 
> patch). Basically the header-link-style attribute of the field tag needs to 
> be parsed by FlexibleStringExpander in order to be used with a ${}.
> Two little arrow-up and arrow-down icons are also attached, those are shown 
> close to the field name indicating which is the sorted column and the sort 
> order.
> Thank you for reviewing,
> Bruno

-- 
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