Re: [Freeipa-devel] [PATCH] 160 Development page for DataTables.

2011-05-20 Thread Adam Young

Works well on a liver server, but didn't work with my static checkout.

The keystroke filtering is very nice, and would be useful.

The number of results returned can be changed with the additional 
parameter.


Sorting can be done on the client side if needs be.  
array.sort(/sortfunction/)  where the sortfunction parameter would be 
able to compare two rows based on the specified field.  I'd like to 
disable the sorting feature until less than 200 results are returned, so 
as not to give the impression that we are doing server side sorting.





On 05/20/2011 12:32 AM, Endi Sukma Dewata wrote:

NOTE: This patch is intended for development only. It should not be
committed into IPA repository.

An HTML page has been created to explore DataTables integration strategy
into IPA WebUI. To use the page, open dataTables.html either in static
mode or with live server. Select one of the entities from the list, it
will show the entries in a table. The IPA command is shown underneath
the table. Below it is a list of parameters generated by DataTables that
can be used to specify the search filter, pagination, and sorting on the
IPA command.

Current status:

 - Search filter works in live mode. Each keystroke in the search filter
   field will trigger an IPA command that uses the specified filter. The
   content of the table will be updated immediately.

 - Pagination can be configured by selecting the number of entries shown
   per page, but the content is unchanged because there is no server
   support.

 - Sorting order can be changed by clicking the column header, but the
   content is unchanged because there is no server support.


___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Re: [Freeipa-devel] [PATCH] 160 Development page for DataTables.

2011-05-20 Thread Endi Sukma Dewata

On 5/20/2011 11:10 AM, Adam Young wrote:

Works well on a liver server, but didn't work with my static checkout.


The filter wouldn't work with static checkout because it expects the 
server to return filtered data, but you should still be able to view the 
contents for different entities.



The keystroke filtering is very nice, and would be useful.


I'm not sure this is a good thing because it will trigger many 
unnecessary queries. It might be better if we can use some kind of time 
delay (e.g. 1 second after the last keystroke).



The number of results returned can be changed with the additional
parameter.


Do you mean the sizelimit? Without the ability to specify the starting 
index (i.e. pagination) it's usage will be rather limited.



Sorting can be done on the client side if needs be.
array.sort(/sortfunction/) where the sortfunction parameter would be
able to compare two rows based on the specified field. I'd like to
disable the sorting feature until less than 200 results are returned, so
as not to give the impression that we are doing server side sorting.


Client-side sorting will only work if the client has the entire data. If 
the data is only partially returned (because of pagination or 
truncation), the client can only sort that subset of data, not the 
entire database, which is probably not what people would expect.


--
Endi S. Dewata

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel