**** BEGIN LOGGING AT Fri Nov 14 03:00:00 2014 Nov 14 04:15:08 Does anyone have an example of setting the order of records in a DataList? Does one sort in the DataList, the Collection, the Store? Nov 14 04:22:40 Separately, to display all of a set of Models in one DataList, and a subset of it in another DataList, do I need two Collections, or can they use the same Collection object? Nov 14 04:29:43 i do it in the collection Nov 14 04:30:07 i'd imagine two different ones Nov 14 04:35:01 ok Nov 14 04:35:54 Does a DataList just display exactly the records in a Collection, in the order they’re in, in the Collection? Nov 14 12:15:47 I believe it does Nov 14 15:12:09 I want to use the MenuPane kind from the community gallery. Do I put it in lib or my own source folder? Nov 14 15:13:20 auto9: It shouldn't matter where you put it as long as it is in your package.js Nov 14 15:14:17 oh cool, thanks GodGinrai :) Nov 14 15:14:31 yw Nov 14 16:46:46 If I have two Collections that acess the same underlying data, do they need to have separate Stores? Nov 14 16:51:11 In particular, I’m getting the error: [Error] enyo.Store.addRecord: duplicate record added to store for kind `PersonModel` with primaryKey set to `_id` and the same value of `J1EcwkckJBw` which cannot coexist for the kind without the `ignoreDuplicates` flag of the store set to `true` Nov 14 16:51:56 DougReeder: why do they both have a store? why not just bind one to the other? Nov 14 16:52:38 There do not appear to be any axamples of this. Nov 14 16:53:07 Apparantly, I need separate Collections; I’m trying to figure out if I need separate Stores. Nov 14 16:53:40 I'm not sure what you mean Nov 14 16:53:53 can you give me the context for this problem? Nov 14 16:54:45 It’s the Contacts app for LuneOS - should work the same as the Contacts app in webOS 3.0.5, but uses Enyo 2.4. Nov 14 16:55:08 Theres’ a list of all persons, and a list of favorite persons. Nov 14 16:56:13 so they contain different data, but access the same info? Nov 14 16:56:26 well... one is a subset of the other, I mean Nov 14 16:56:29 The DataList of all persons is, indeed, displaying all Person records, but when I try to implement a DataList of favorite Persons, I get that error. Nov 14 16:56:35 Exactly. Nov 14 16:57:30 Apparantly a DataList displays only and exactly the Models in its Collection, so I need separate Collections. Nov 14 16:57:44 DougReeder: why not just use one collection and use Collection.filter to filter out a list of favorite persons? Nov 14 16:58:02 How would I do that? There are no examples I know of. Nov 14 16:58:40 SUre there’s a filter function, but how do I get a DataList to use it? Nov 14 16:59:07 let me see if I can make an example fiddle for you Nov 14 17:00:12 Thanks Nov 14 17:01:08 DougReeder, I actually ended up writing my own store to deal with the problem you're having Nov 14 17:01:28 I’m not surprised. Nov 14 17:01:40 lol Nov 14 17:02:11 I think the default "blow up when you have duplicate data" store is really dumb Nov 14 17:02:24 so I wrote one that automatically merges Nov 14 17:02:54 One hopes there’s a coherent paradigm behind the classes, but certainly the docs won’t tell you. Nov 14 17:03:54 * chall shrugs Nov 14 17:04:17 DougReeder, you can find the store I wrote here: https://github.com/pangea/xcore/blob/master/source/models/store.js Nov 14 17:04:41 it includes some stuff that's specific to the project, but those pieces are easy to remove Nov 14 17:08:01 Apparantly, Collection caches Models in memory, and Store caches Models in memory, so it’s not clear how responsibilities are divided up. Nov 14 17:12:37 The 2.4 release notes say: The filtered, filters, filterProps, and activeFilter properties have been removed, and the filter() method no longer can be used to clear the active filter. The whole filtering mechnanism is being rewritten for greater flexibility and improved performance. Nov 14 17:13:36 pretty sure it's already been rewritten Nov 14 17:15:45 Do I need to switch to 2.5 to filter a Collection? Nov 14 17:18:25 we'll find out soon enough Nov 14 17:24:06 hrm Nov 14 17:24:19 so filter is working in my fiddle.... Nov 14 17:24:30 but the transform function is giving a weird error Nov 14 17:24:38 Ah? Nov 14 17:24:52 "data.at is not a function" Nov 14 17:25:00 TypeError: data.at is not a function Nov 14 17:25:00 http://enyojs.com/enyo-2.4.0/enyo/source/ui/data/VerticalDelegate.js Nov 14 17:25:03 Line 142^ that Nov 14 17:25:58 oh wait Nov 14 17:26:02 I know what I did wrong Nov 14 17:26:51 Alright, Proof of Concept: http://jsfiddle.net/uokhh91r/ Nov 14 17:27:21 using enyo 2.4 as well Nov 14 17:28:31 gotta jet for lunch, bbl Nov 14 17:29:14 * DougReeder nods, reading Nov 14 17:29:40 Isn’t it 9:30am in Silicon Valley? Nov 14 17:34:17 So, the filtered collection is a generic Collection with no defaultSource, that you nevr call fetch() on. Nov 14 17:35:47 Does this work with the paging of DataList? Nov 14 17:46:34 morning enyos Nov 14 18:13:58 Hey Semanticfire_2 wb! Nov 14 18:17:05 :) Nov 14 18:23:47 GodGinrai, I did get your approach to filtering a DataList to work. I’m not sure if it’s efficient when the user has thousands of contacts. Nov 14 18:24:02 (Of course, most people don’t have thousands of contacts.) Nov 14 18:29:22 There is progressive filter available Nov 14 18:29:44 https://github.com/enyojs/enyo/blob/master/source/data/ProgressiveFilter.js Nov 14 18:29:44 Ah? Is there a sample of how to use that online? Nov 14 18:30:15 Is that Enyo 2.5? Nov 14 18:30:56 https://github.com/enyojs/moonstone/blob/3d916b42a45810ada1ed441a377364a74e64efe9/samples/HighlightTextSample.js#L57 Nov 14 18:31:39 Yeah, its a nightly thing, will be available in our first 2.5 tag Nov 14 18:34:32 We’ll probably wait for 2.5 final, then, and its documentation. Nov 14 18:35:25 dmanderson, will 2.5 contain a sizing fix ? :) Nov 14 18:35:35 :-/ I dunno. Nov 14 18:36:08 2.5 will be coming soon, I wanted to pass around a preview of the docs, but not sure if it’s private Nov 14 18:36:37 Can you guys get to this? http://enyosite.enyojs.com/docs/latest/#/home Nov 14 18:38:08 I can Nov 14 18:42:18 back Nov 14 18:42:47 So, you have a primary Collection. Would that contain a copy of every Model in memory? Nov 14 18:43:17 dmanderson: I can see it Nov 14 18:43:32 oh nice! Nov 14 18:43:39 It's all Carolina Blue <.< Nov 14 18:43:44 Feel free to poke around, and I’ll funnel feedback up to our technical writer Nov 14 18:44:44 dmanderson: Already loving the utility method section Nov 14 18:45:13 Although it is missing a lot of the utility methods Nov 14 18:45:34 Yeah, we’re still getting in there and doing cleanup, also try checking the ‘private’ box to see if some of your favs popup Nov 14 18:45:49 oops guess its a label in the right upper Nov 14 18:46:36 dmanderson: show private doesn't really do anything on the utilities section Nov 14 18:46:41 but it does on the kind section Nov 14 18:48:37 its a boy ! Nov 14 18:48:39 dmanderson, is there a sample of how to suport two DataLists which display different subsets of some underlying data? Nov 14 18:48:59 I do not think there is no. Nov 14 18:49:08 * DougReeder nods Nov 14 18:49:28 Semanticfire_2: It's a Tarheel >:( Nov 14 18:50:49 * Semanticfire_2 thinks that the visual kinds should contain either a screenshot or a link to a specific sampler Nov 14 18:55:32 Semanticfire_2: Sample code for each kind would be useful Nov 14 19:03:02 +1 Nov 14 19:03:10 +1 Nov 14 19:09:14 Maybe not separate sample code for every single kind - when kinds are designed to be used together, one sample code showing how to use them together might be best. Nov 14 19:10:34 RadioItems should be demonstrated in a RadioGroup Nov 14 19:11:49 The entry for Collection should probably just link to the DataRepeater and DataList samples. Nov 14 19:11:54 DougReeder: of course, but both the pages for RadioGroup and RadioItem should show that code Nov 14 19:12:06 Yes, or link to it. **** ENDING LOGGING AT Sat Nov 15 03:00:00 2014