I'm missing a functionality to sort a list by clicking on a column header.
I saw a few implementations using header-link=<url>?orderBy=<fieldname> but
there's no generic
construct. 

In our project I'm using such a generic construct. Internally of the
ModelFormField class, I'm building
a hyper-link out of the name. 
Now the only thing I have to do is setting the new attribute sort="true" and
I got a header sorting mechanism.

Only restriction: It's sorting on database fields, so it's only working on
database field columns.

I'm just wondering if there's a implementation planned for this subject 
or if I should submit my changes to the JIRA. What do you think??

Regards,
Michael

Sample: Table with two rows Login/ Enabled. Sorting available on Login.
---------------------------------------------------------------------------------------
    <form name="ListLogin" type="list" list-name="listIt">
        <actions>
            <set field="entityName" value="UserLogin"/>
            <service service-name="performFind" result-map-name="result"
result-map-list-name="listIt">
                <field-map field-name="inputFields"
env-name="requestParameters"/>
                <field-map field-name="entityName" env-name="entityName"/>
            </service>
        </actions>
        <field name="userLoginId" title="Login" sort="true">
            <display/>
        </field>
        <field name="enabled" title="Enabled">
            <display/>
        </field>
    </form>   

http://www.nabble.com/file/7851/list.jpg 
-- 
View this message in context: 
http://www.nabble.com/Sorting-columns-on-header-click-tf3570354.html#a9974775
Sent from the OFBiz - Dev mailing list archive at Nabble.com.

Reply via email to