Edit DataSet View fields

Asked by Barry Wood

Could you explain what the 'Lower Row Limit' and 'Upper Row Limit' fields do in the Edit DataSet View window, please? Presumably the values must be integers? And what values are permissible in the 'Order' field?

I've played with a few figures to work this out but without much success :-(

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Barry Wood
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
RLaurette (rlaurette) said :
#1

These limit the range of rows that can be displayed. For example, if you have 25 rows and want to display data from only rows 10 to 15, set Lower Row Limit to 10 and Upper Row Limit to 15.

However this feature has two bugs:

When creating or editing a dataset, rows are numbered begin at 1, however when adding a dataset to a region, in Edit DataSet View, it seems row numbers begin at 0. (e.g. to display data from row 3 to 6, it's necessary to specify Lower Row Limit 2 and Upper Row Limit 5)

and

Specifying 0 in Lower Row Limit causes all rows to be displayed, regardless of the value in Upper Row Limit.

Revision history for this message
RLaurette (rlaurette) said :
#2

Order refers to the data sort order in the dataset view.

To sort ascending (A to Z) specify the column name you want to sort on. e.g. if the column name is "dish", simply write: dish

To sort descending, (Z to A) specify the column name you want to sort on, followed by DESC, like this: dish DESC

Note: all data is stored as a string and the sort order is alphabetical. I.e. an ascending sort of prices (e.g. in a wine list) 40, 60, 80, 100 would result in this output: 100, 40, 60, 80 (because "1" comes before "4"). To remedy this, prefix the narrower prices with spaces so that they contain the same number of characters as the widest price. i.e. "40","60","80" become " 40", " 60", " 80". Note: "100" being the widest, needs to remain "100".

Revision history for this message
Barry Wood (barry-x8) said :
#3

Many thanks, that answers my question. To me this is just 1 bug - numbering from a 0 start is not unusual. I assume the 'bug' relating to specifying 0 as the Lower Row Limit is known by the developers and will be fixed in due course.

Revision history for this message
Barry Wood (barry-x8) said :
#4

I've tested this and adding 'DESC' to the field does not work. For instance specifying field name 'Date' works fine, specifying 'DATE DESC' does not return any rows.

Revision history for this message
RLaurette (rlaurette) said :
#5

Isn't it upper/lower case sensitive?

Try this: Date DESC

Revision history for this message
Barry Wood (barry-x8) said :
#6

Makes no difference - Date DESC or DATE DESC - neither works for me. Dropping the DESC on either options works fine.

Revision history for this message
RLaurette (rlaurette) said :
#7

All data is stored as a string and the sort order is alphabetical. Thus, to have dates sorted properly, they need to be in the format:
 yyyy-mm-dd

Note: "-" could be another character such as "/", but must be consistent for all entries.

Revision history for this message
Barry Wood (barry-x8) said :
#8

I understand sort orders, the question is why DESC doesn't work. Whatever the value in the field I would expect DESC to reverse the natural order (i.e. a b c would become c b a, 1 2 3 would become 3 2 1 etc)

Revision history for this message
RLaurette (rlaurette) said :
#9

Sorry, I don't know why it doesn't work for you. (It works on my setup.)

my unsorted data in column: Date
2013-01-01
2013-12-31
2012-01-01
2012-12-31
2014-01-01

what I see for Order: Date
2012-01-01
2012-12-31
2013-01-01
2013-12-31
2014-01-01

what I see for Order: Date DESC
2014-01-01
2013-12-31
2013-01-01
2012-12-31
2012-01-01

Revision history for this message
Barry Wood (barry-x8) said :
#10

I've tested more and t does work. Not sure how I saw it didn't before, must clean my glasses :-). That's good. It would also be good to know all the other parameters that can be used in this field. I've an outstanding query about what can go in the Filter field, as I want to know how to limit the number of records shown.