**** BEGIN LOGGING AT Sat Mar 31 02:59:59 2012 Mar 31 03:10:16 hmm. afterOpen() in Popup seems to get called twice, in Enyo 1 Mar 31 04:48:20 holy crap Mar 31 04:48:30 do NOT set a kind as fittablecolumns Mar 31 04:48:32 and then Mar 31 04:48:37 set the layoutkind to fittablerows Mar 31 04:48:44 chrome does NOT like that. Mar 31 05:47:16 hmm.. Mar 31 05:47:49 anyone know if there's a wrapper that exists for desktop systems to run html apps that includes fun abilities such as "file access" and "running external programs"? Mar 31 05:48:32 i absolutely 100% suck at writing windows programs, but i want to write a utility to make dealing with all this multiplatform stuff easier Mar 31 05:58:29 IF I WASN'T HALF ALSEEP i'd probably be able to answer Mar 31 05:58:36 i don't know much about that Mar 31 05:58:47 but i'm wrigint windows apps / scrips at my internship Mar 31 05:59:07 so if i could think about it i may come up w/ an answer Mar 31 06:10:15 i could probably do it in python Mar 31 06:10:25 but i abhor GTK and that's the only GUI i know for Python Mar 31 07:03:14 grrrrrrrrrrr Mar 31 07:03:19 i'm so frustrated Mar 31 07:03:26 the enyo 2.0 repeater can't rebuild. at all Mar 31 07:03:29 -______________________________- Mar 31 07:03:39 time to toss in the towel tonight Mar 31 07:06:48 argh i've actually done what i wanted to do, too Mar 31 07:06:53 and i'm limited by this Mar 31 16:26:41 just kidding. i lied. Mar 31 16:26:46 build() then render() Mar 31 16:26:49 >_< Mar 31 20:07:39 who's so damned good-looking it hurts and is traveling to Sunnyvale tomorrow? this guy Mar 31 20:23:32 Is it possible to set a value to a date picker object? Mar 31 20:23:41 in enyo 1.0? Mar 31 20:36:13 should be Mar 31 20:36:44 this.$.datePicker.setValue() Mar 31 20:41:25 huh, i must have been doing something wrong before... it wouldn't work until i tried it again. Mar 31 20:41:43 is there a way to "reset" it back to default? Mar 31 20:41:44 it's because I'm awesome Mar 31 20:41:53 haha, i have no doubt ;) Mar 31 20:42:23 default? well, you would need to keep the original somehow and just .setValue() back to it Mar 31 20:42:30 or maybe setValue(null)? Mar 31 20:43:45 null gives this error: Uncaught TypeError: Cannot call method 'getMonth' of null Mar 31 20:44:21 ah, so you will need to keep the original value (make sure it's a date object or make one) and use that instead Mar 31 20:46:57 where would the best place to put that be? I tried throwing var defaultDate = this.$.itemsEdit.$.startDate.getValue(); in the ready: function(), but it doesn't like it Mar 31 20:47:20 "Uncaught TypeError: Cannot read property '$' of undefined"4 Mar 31 20:47:43 oh dear, you should try to avoid using the double-$ thing Mar 31 20:48:13 yeah, it's not my favorite thing, but i'm pretty much a noob :p Mar 31 20:48:55 you want to only access this.$.itemsEdit when you are sure it's rendered. So ready may or may not be the best place depending on what the containing kind is....is it a Control or a Component? Mar 31 20:49:37 m0ngr31: advice, when you're getting into multiple-$ accesses, it might be time to start writing your own kinds to hold some of the functionality and componetns Mar 31 20:49:42 si Mar 31 20:52:24 it's a component Mar 31 20:54:38 i've been modeling it after the "extended enyo tutorial" Mar 31 20:54:49 so when are you rendering itemsEdit? Mar 31 20:55:30 like you could do this in ready: this.$.itemsEdit.render(); this.$.itemsEdit.$.datePicker.... Mar 31 20:55:44 and that will probably work Mar 31 20:56:14 http://pastebin.com/GkMdwva2 Mar 31 20:56:36 ah, that's a control Mar 31 20:56:50 it has components, of which itemsedit is one Mar 31 20:56:51 okay Mar 31 20:57:46 haha, told you i'm a noob Mar 31 20:58:54 so, first thing I would do to troubleshoot that is wrap it in a if (this.$.itemsEdit) {} block...maybe somehow ready is getting triggered before all of the components are ready (doubtful) Mar 31 21:01:26 looks like it is being rendered Mar 31 21:03:31 here is the easy way to make sure in your current situation. Since the containing component is a Control (VFlexBox), you can just make a rendered method (like ready) and move that code in there Mar 31 21:03:55 don't forget to be using this.inherited(arguments) in all of the methods you override...might need one at the top of ready, there, too Mar 31 21:04:33 ok thanks Mar 31 21:04:43 I'll try that Mar 31 21:09:16 So i got it to where it'll work fine switching between the dates, but as soon as I refresh it doesn't work anymore. if i have a different date in localstorage than the defaultDate variable, it throws an error Mar 31 21:09:43 Uncaught TypeError: Object 2019-03-31T21:07:28.305Z has no method 'getMonth' Mar 31 21:13:44 localStorage stores strings not objects Mar 31 21:14:11 you need to json.stringify an object before storing it and json.parse it to retrieve it Mar 31 21:14:22 yes, that Mar 31 21:14:34 OR Mar 31 21:14:46 imo, it would be a major improvement to have localStorage error when trying to load things that arent' strings to it Mar 31 21:15:04 you can get the Date object from the picker, make it spit out the ms time as a value, store it, then make a new Date object with that value after retrieval Mar 31 21:15:57 so I have this: this.inventoryList = JSON.parse(this.inventoryList); Mar 31 21:16:12 and localStorage.setItem("inventoryList", JSON.stringify(this.inventoryList)); Mar 31 21:16:20 that's what you were meaning right? Mar 31 21:16:25 can my son ask mojo questions here without getting shot? Mar 31 21:16:59 hmmm, that's a good question Mar 31 21:17:03 ;) Mar 31 21:17:11 I hardly remember any Mojo Mar 31 21:17:29 but if he gets no traction in here, #webos is still around Mar 31 21:18:16 kay I'll let him know Mar 31 21:21:20 #webos would be more appropriate Mar 31 21:23:42 EricBlade1, okay I've directed him to use that one Mar 31 21:28:17 Could it be that defaultDate is "Sat Mar 31 2012 15:27:27 GMT-0600 (MDT)" and what pull from localstorage is "2019-03-31T21:07:28.305Z"? Mar 31 21:28:42 *pulls Mar 31 21:29:36 m0ngr31: try this, store the value you get from the picker in some var, like myDate. Then store myDate.getTime(); Mar 31 21:29:52 when you read that value, do new Date(theValue) Mar 31 21:30:03 and then you should be able to set THAT to the picker Mar 31 21:30:37 store myDate.getTime() in local storage is what I mean Mar 31 21:36:56 i get the same thing. "Uncaught TypeError: Object 1345930572542 has no method 'getMonth'" Mar 31 21:37:53 before you set that as the value you need to construct a new Date object with it: Mar 31 21:37:59 new Date(thatvalue) Mar 31 21:38:32 var pickDate = new Date(theValue); thePicker.setValue(pickDate); Mar 31 21:38:34 something like that Mar 31 21:39:59 kk, lemme try that Mar 31 21:41:50 That worked! Thanks so much! Mar 31 21:43:01 np Mar 31 22:34:55 do you have to create a new scene and/or stage to make an enyo app fulscreen on an hp veer? Mar 31 22:53:16 there's no such thing as scenes or stages in enyo Mar 31 22:54:18 sugardave: why sunnyvale? are they like, locking you up for being too good looking or something? Mar 31 22:55:28 summatusmentis: meeting week and team get-together Mar 31 22:55:41 woohoo Mar 31 22:55:42 most on my team are remote Mar 31 23:03:30 hmm Mar 31 23:03:40 i can help w/ mojo Mar 31 23:03:44 who wanted mojo help Mar 31 23:03:58 i want to make my app fullscreen Mar 31 23:04:07 in mojo or enyo? Mar 31 23:04:23 it's mojo but i could learn enyo Mar 31 23:04:46 do you use palm-package? Mar 31 23:05:01 i have the sdk and emulator Mar 31 23:06:02 this.controller.stageController.setWindowOrientation("right"); Mar 31 23:06:29 i'll try that Mar 31 23:06:33 that's not the right line Mar 31 23:06:38 that's a example hold on Mar 31 23:06:55 kk Mar 31 23:07:13 i think it's setFullScreen(true) Mar 31 23:07:41 Mojo.Controller.StageController.setFullScreen(true); Mar 31 23:07:42 okay. i'll try that Mar 31 23:07:52 or setWindowFullScreen(true) Mar 31 23:08:30 im editing it with internalz Mar 31 23:09:41 1st one didn't work Mar 31 23:10:02 window.PalmSystem.enableFullScreenMode(true) Mar 31 23:10:06 this will work Mar 31 23:10:10 other apps work fine Mar 31 23:10:41 none of the oter sources told me that and i will try Mar 31 23:11:10 does it work in a stage assistant? Mar 31 23:11:19 you can call that anywhere Mar 31 23:11:23 it'll always have scope Mar 31 23:11:50 you may have to add this to body onload(): if(window.PalmSystem){window.PalmSystem.stageReady();} Mar 31 23:11:52 and is the stage assistant linked to index.html? Mar 31 23:12:54 yes the stage assistant is always called. you've got to swap scenes to your first scene in stage assistant Mar 31 23:13:29 index.html worked for my other apps Mar 31 23:13:59 well sure if you've got a web app Mar 31 23:14:18 ok Mar 31 23:14:28 you don't necesarrily need a first scene. although it's good to make one Mar 31 23:14:33 are you making a tablet or a phone app? Mar 31 23:15:00 either, i set uiRevision to 2 Mar 31 23:15:20 i can make a new scene Mar 31 23:15:25 which device are you programming for though Mar 31 23:15:40 mainly pre or touchpad Mar 31 23:15:42 do you have appinfo.json and frameworkconfig.json Mar 31 23:15:47 for my dad Mar 31 23:16:05 ah. yes mojo is okay for that Mar 31 23:16:23 framework_config.json? Mar 31 23:16:43 i have that Mar 31 23:17:16 did you try the window.PalmSystem.enableFullScreenMode(true) Mar 31 23:17:24 it works for me on my mojo app, on the touchpad at least Mar 31 23:17:34 i'm coding that now Mar 31 23:18:10 hmm, not working Mar 31 23:18:56 you can also try this.controller.enableFullScreenMode(true) Mar 31 23:19:07 i even tried setting window height to screen height. Mar 31 23:19:09 yes Mar 31 23:19:09 or Mojo.Controller. all should theoretically work. mojo has a mind of its own sometimes Mar 31 23:19:19 yeah Mar 31 23:19:50 Mojo.Controller.SceneController.enableFullScreenMode(true); Mar 31 23:20:00 http://www.weboshelp.net/webos-mojo-development-resources/api-reference/582-mojocontrollerscenecontrollerenablefullscreenmodeyesno-?catid=67%3Amojocontrollerscenecontroller Mar 31 23:20:41 i'll try that Mar 31 23:26:30 yay! new scene fixed it! Mar 31 23:26:53 thank you SO much! Mar 31 23:28:03 woo your welcome Mar 31 23:28:08 glad i could hel Mar 31 23:28:11 p Mar 31 23:28:29 i'll test it on my veer Mar 31 23:28:45 that was the emulator it worked on Mar 31 23:29:04 it should work on the veer then. the emulators for phones are pretty evolved Mar 31 23:29:26 how do you get into card view on the emulator? Mar 31 23:29:31 TP Mar 31 23:29:54 the tp emulator Mar 31 23:30:28 i don't know where an emulator for phones is Mar 31 23:30:54 pageup Mar 31 23:31:05 ok Mar 31 23:31:53 im on a mac by the way Mar 31 23:32:30 works the same Mar 31 23:32:33 i pressed it but nothing happened Mar 31 23:33:33 it may be home. escape works Mar 31 23:33:39 kk Mar 31 23:34:10 its home Mar 31 23:34:32 ty Mar 31 23:34:35 np Mar 31 23:35:05 ;) Mar 31 23:35:48 now i recode it Mar 31 23:36:16 because i deleted it before you helped me Mar 31 23:36:33 it will maybe be on preware Mar 31 23:36:50 as Astronomy Flashlight Mar 31 23:37:54 bye! Mar 31 23:37:58 bye! Mar 31 23:38:05 thanks for ur help! Mar 31 23:38:35 * fxspec06 end mojo Apr 01 00:44:18 ok, so, that thing that i'm hoping exists somewhere.. something like Pokki .. but with functionality for doing regular app stuff somewhere Apr 01 02:03:10 * phil_bw wanders by Apr 01 02:26:26 * phil_bw wanders by again Apr 01 02:33:16 anyone wanna test something for me? Apr 01 02:33:49 I pushed some code to github but I'm not sure if I pushed a working copy and no touchpad to test Apr 01 02:36:36 I would, but no touchpad Apr 01 02:38:55 :( Apr 01 02:54:09 i can do the emulator Apr 01 02:54:16 TP Apr 01 02:54:39 :) Apr 01 02:55:34 where is the GitHub link? Apr 01 02:58:13 And what is it supposed to do? Apr 01 02:58:31 ;) Apr 01 02:58:42 !;( **** ENDING LOGGING AT Sun Apr 01 02:59:58 2012