Thread Rating:
  • 355 Vote(s) - 2.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sort of RecordView
11-21-2012, 03:52 PM, (This post was last modified: 11-21-2012, 03:54 PM by alchimiste.)
#4
RE: Sort of RecordView

The TOTAL record should not be sorted for all columns.


Users want to see the summary record such as TOTAL or AVERAGE.
The summary record usually is located in the bottom of RecordView.

I'm implementing this for the grid component, modified FastRecordGrid.

The source code that I wrote:

def rd = rv[rv.size - 1] || rv is RecordView
set rv.sort = {proc {r1:Record, r2:Record}:int
|| I thnk this code is stupid...Smile
{if r1 == rd then {return 1}}
|| the rest of logics is omitted for explanation
}








Messages In This Thread
Sort of RecordView - by alchimiste - 11-21-2012, 10:23 AM
RE: Sort of RecordView - by fukuta - 11-21-2012, 02:04 PM
RE: Sort of RecordView - by alchimiste - 11-21-2012, 03:52 PM
RE: Sort of RecordView - by ashimo - 11-21-2012, 02:23 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  RecordView.batch-events? の効果がない umemura 1 2,666 12-10-2013, 03:28 PM
Last Post: umemura
Forum Jump:


Users browsing this thread:
3 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('652')