2008-04-21T01:34:27 *** Mark__T has joined #openils-evergreen 2008-04-21T09:23:28 *** gmcharlt has joined #OpenILS-Evergreen 2008-04-21T09:48:08 *** Karen_ has joined #OpenILS-Evergreen 2008-04-21T09:55:17 *** Mark__T has left #openils-evergreen 2008-04-21T10:22:46 *** greg-g has joined #openils-evergreen 2008-04-21T15:27:03 *** Karen__ has joined #OpenILS-Evergreen 2008-04-21T15:27:03 *** Karen_ has quit IRC 2008-04-21T15:34:37 *** Karen__ has left #OpenILS-Evergreen 2008-04-21T15:34:50 *** Karen__ has joined #OpenILS-Evergreen 2008-04-21T17:08:15 *** Karen__ has quit IRC 2008-04-21T19:38:35 *** djfiander has joined #OpenILS-Evergreen 2008-04-21T19:39:39 yo 2008-04-21T20:22:30 djfiander: yo 2008-04-21T20:23:14 I don't think I'm going to update for a little while :) 2008-04-21T20:24:12 heh.. i promise the tumult will setting down soon.. almost done with utterly destroying everything 2008-04-21T20:24:19 s/will/will be/ 2008-04-21T20:43:38 I think I'm starting to get the hang of this ;-) 2008-04-21T20:57:13 excellent... 2008-04-21T21:07:27 hmm... tricky question: How do I get data out of a dojo store, assuming I have a row index? 2008-04-21T21:08:00 djfiander: a grid row index? 2008-04-21T21:08:06 yup 2008-04-21T21:08:16 sec. I find an example 2008-04-21T21:08:26 grid.model.getRow(idx) works well 2008-04-21T21:08:34 miker_: I'm in the "onRowClick" handler, and ... tx 2008-04-21T21:09:05 that actually gets you a has instead of a store item, but the hash is probably what you want, yeah? 2008-04-21T21:09:31 all I need is the jub id of the row that was clicked, so yeah, the hash will work. 2008-04-21T21:09:42 if you want the actual store item then you can use fetchItemByIdentifier 2008-04-21T21:09:43 k 2008-04-21T21:13:07 example from dojo docs: 2008-04-21T21:13:09 var msg = mailGrid.model.getDatum(evt.rowIndex,6); 2008-04-21T21:13:16 way to hang with the magic numbers 2008-04-21T21:14:00 heh ... well, it's the column position, but yeah .. yuck 2008-04-21T21:14:18 miker_: of course it is. and column numbers never change, so it should be fine. 2008-04-21T21:14:24 haha 2008-04-21T21:14:25 yeah 2008-04-21T21:14:27 I agree 2008-04-21T21:42:20 sweet. 2008-04-21T21:42:56 I can display a picklist (modulo some display quirks) and I can click on a picklist entry to see the lineitem details 2008-04-21T21:43:16 the problem is that vendors, funds, and locations are all small integers. 2008-04-21T21:43:50 so, I need methods for retrieving the vendor map, the fund map, and probably a map of atlanta. 2008-04-21T21:44:18 oh, and berick's already broken everything, so I can't check any of this in :P 2008-04-21T21:44:27 * berick bows 2008-04-21T21:45:16 djfiander: i'm creating JS methods for fetching a single fund and provider. the locations can be retrieved with the existing OrgUtils code (findOrgUnit) 2008-04-21T21:46:13 berick: ok. and then we'll just lazily fill in a local cache as we run down the various lists. 2008-04-21T21:46:21 s/we/I 2008-04-21T21:46:56 no, wait. 2008-04-21T21:47:03 actually, the fund, funding_source, and provider code will have their own internal local caches 2008-04-21T21:47:17 as does the OrgUtils code 2008-04-21T21:47:26 I need the full list of funds and providers, for building pulldown menus 2008-04-21T21:48:01 i can help you there, too 2008-04-21T21:49:42 openils.acq.[Fund|FundingingSource].createStore will retrieve all of the objects based on a given perm that the user has access to 2008-04-21T21:49:49 I figure a couple of select widgets embeded in the dojo grid :) 2008-04-21T21:50:00 i need to expand the code to accept a user-defined perm and .. 2008-04-21T21:50:23 but it should be enough to get you started 2008-04-21T21:50:44 heh... as long as I'm willing to rebuild my env with the new structure ;-) 2008-04-21T21:50:51 so, you can create a ditit.form.FilteringSelect and set the store to a store created by one of those methods 2008-04-21T21:50:54 heh 2008-04-21T21:51:18 yeah.. there will be breakage 2008-04-21T21:51:28 ok. 2008-04-21T21:52:09 *** sarabee has quit IRC 2008-04-21T21:52:32 djfiander pasted "Notes on funds" at http://paste.lisp.org/display/59505 2008-04-21T21:52:55 ignore that paste. just me making notes 2008-04-21T21:53:04 * miker_ stumbles in 2008-04-21T21:54:18 ok. I think I'm going to stop for now. It's too late for me to try to update without screwing something up 2008-04-21T21:54:24 so that's what I'll do tomorrow. 2008-04-21T21:54:39 word 2008-04-21T21:54:40 if you just want to display values, use the get: property of the column def in the grid structure to define a function for finding the value 2008-04-21T21:55:18 djfiander++ 2008-04-21T21:56:06 djfiander annotated #59505 with "grid access functions" at http://paste.lisp.org/display/59505#1 2008-04-21T21:56:27 still making notes 2008-04-21T21:58:50 oh, and in my spare spare time, I'm learning how to right openoffice macros in python, so I can do some serious spreadsheet scripting ;-) 2008-04-21T22:01:21 *** djfiander has quit IRC 2008-04-21T22:01:57 *** sarabee has joined #openils-evergreen 2008-04-21T22:27:42 *** sarabee has quit IRC 2008-04-21T22:32:13 *** sarabee has joined #openils-evergreen