00:27:46
|
*** nribeka has joined #openmrs
|
00:27:46
|
*** ChanServ sets mode: +v nribeka
|
00:35:31
|
<nribeka> hi bwolfe
|
00:35:56
|
<bwolfe> hi nribeka
|
00:48:29
|
<r0bby> I hate this -- I'm still having issues
|
00:48:41
|
<r0bby> It's not that its not saving -- it's that it's not doing it properly
|
00:48:47
|
* r0bby continues working
|
00:49:24
|
<r0bby> wait bwolfe
|
00:50:00
|
<r0bby> FacilityDataFormSection has many FacilityDataFormQuestions -- but FacilityFormQuestion has one section
|
00:50:05
|
<r0bby> :/
|
00:50:23
|
<r0bby> so wouldn't that be many to one?
|
00:51:03
|
<r0bby> :X
|
00:59:28
|
<bwolfe> sure
|
00:59:55
|
<bwolfe> but I thought a section could be reused on different sections ??
|
01:02:50
|
<r0bby> a question*
|
01:02:52
|
<r0bby> true
|
01:03:04
|
<r0bby> I dont know how to define the sections
|
01:03:05
|
<r0bby> :(
|
01:03:29
|
<r0bby> er relations
|
01:08:02
|
<r0bby> okay list is persisting
|
01:30:13
|
*** atomicturtle has joined #openmrs
|
01:34:55
|
<r0bby> bwolfe: could you peek at some code?
|
01:35:26
|
<r0bby> hibernate is still pissing me off :(
|
01:35:30
|
*** atomicturtle has left #openmrs
|
01:36:01
|
<r0bby> i hate that i hit a lot of problems like this :(
|
01:36:14
|
<r0bby> it seems hibernate has held me back every time i work with it
|
01:37:58
|
<bwolfe> r0bby: maybe you should spend some time reading up on it.
|
01:38:09
|
<bwolfe> r0bby: or maybe you should try doing things that you have examples ofr
|
01:38:20
|
<bwolfe> r0bby: like using form/form_field/field as your example. use sets, etc
|
01:38:55
|
<r0bby> I'm trying to wing it
|
01:39:02
|
<r0bby> and it's not working :(
|
01:40:25
|
<r0bby> problem is: forms are different
|
01:40:29
|
<r0bby> design wise
|
01:43:53
|
<r0bby> I map it exactly that way minus the fact it's a List (that's not my issue)
|
01:44:03
|
<r0bby> my issue is im prolly doing something weird w/ how im sitting it up
|
01:44:14
|
<r0bby> hence why a second set of eyes might help
|
01:47:39
|
<r0bby> im contemplating ditching my mock code and just writing the creation UI
|
01:48:17
|
<r0bby> but this may be a bug in my dao or service class -- though nothing looks out of the ordinary in those classes :X
|
01:48:46
|
<r0bby> anyways lemme pastebin
|
01:51:31
|
<r0bby> http://pastie.org/private/ruzlxa1pmdql8zzbkq2kq
|
01:52:58
|
<r0bby> do you see *ANYTHING* out of the ordinary :X
|
02:08:34
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8723]: htmlformentry module: fixing returnUrl redirect after deleting an ⦠<http://dev.openmrs.org/changeset/8723> || OpenMRS Changesets: Changeset [8722]: schedulerquartz: displayed the range of recurrence for every tabs except ⦠<http://dev.openmrs.org/changeset/8722> || OpenMRS Changesets: Changeset [8721]: schedulerquartz: class name validation implemented <http://dev.openmrs.org/changeset/8721>
|
02:16:11
|
<bwolfe> r0bby: you should be able to just do a save on a section and it will cascade to the questions
|
02:16:31
|
<r0bby> it doesn't
|
02:16:38
|
<r0bby> because it doesn't call the AOP
|
02:16:42
|
<r0bby> to set creator etc
|
02:16:49
|
<bwolfe> ok
|
02:17:03
|
<bwolfe> you could set those in your service method and then let hibernate cascade
|
02:17:33
|
* r0bby sighs
|
02:17:40
|
<r0bby> bwolfe: it doesn't call the service does it?
|
02:17:55
|
<r0bby> when it cascades
|
02:18:01
|
<bwolfe> no
|
02:18:11
|
<r0bby> so where the hell do i set those...
|
02:18:23
|
<r0bby> s/hell/heck/
|
02:19:44
|
<bwolfe> in your service method. I said that already. saveSection(Section s) { for Question q : s.getQuestions() { q.setUuid(UUID.randomUuid()); q.setCreator()....} (and check if htose are null before doing that)
|
02:19:55
|
<r0bby> AHHH
|
02:19:56
|
<r0bby> ok
|
02:20:08
|
<r0bby> first do a null check of course
|
02:20:19
|
<r0bby> ok
|
02:20:43
|
<r0bby> it doesn't seem to be setting the question and section FK
|
02:20:59
|
<r0bby> ok
|
02:21:20
|
<r0bby> i'll try that
|
02:21:34
|
<r0bby> i didnt think about that sorry :X
|
02:21:44
|
<bwolfe> you need to set the FK on the objects
|
02:21:55
|
<bwolfe> the handlers do that for Concept Names, etc
|
02:22:03
|
<r0bby> ill look at that
|
02:26:05
|
<r0bby> so I should set up a handler for those i guess :X
|
02:27:00
|
<r0bby> thanks ben
|
02:27:00
|
*** upul has joined #openmrs
|
02:27:00
|
*** ChanServ sets mode: +v upul
|
02:27:02
|
*** atomicturtle1 has joined #openmrs
|
02:27:43
|
<bwolfe> r0bby: a handler or just set them manually in your save method
|
02:27:54
|
<bwolfe> r0bby: just start with setting it manually. if that works, then mess with the handler
|
02:28:22
|
<bwolfe> r0bby: or actually, just leave the handler to the end of the summer. you need to get a move on. if you can't get this working, I say you put data into your database and move onto ui
|
02:28:28
|
<bwolfe> then come back to this later in the summer
|
02:29:36
|
<r0bby> okay
|
02:58:15
|
*** bwolfe has quit IRC
|
03:32:30
|
*** nribeka has quit IRC
|
03:33:23
|
*** atomicturtle1 has left #openmrs
|
03:44:39
|
<OpenMRSBot> Recent updates in the world of openmrs: Upul Godage: Limiting Answers to Concept Classes and Sets <http://upulgsoc.wordpress.com/2009/06/24/limiting-answers-to-concept-classes-and-sets/>
|
04:48:38
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: OpenMRS version vs. DB Version <http://forum.openmrs.org/viewtopic.php?f=9&t=459#p1676>
|
05:20:42
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8724]: serialization: added one example of how to call short serializer and one ⦠<http://dev.openmrs.org/changeset/8724>
|
05:26:01
|
*** atomicturtle has joined #openmrs
|
05:59:16
|
*** upul has quit IRC
|
05:59:41
|
*** upul has joined #openmrs
|
05:59:41
|
*** ChanServ sets mode: +v upul
|
06:09:30
|
*** upul has quit IRC
|
06:15:15
|
*** upul has joined #openmrs
|
06:15:15
|
*** ChanServ sets mode: +v upul
|
06:26:46
|
*** jmiranda has quit IRC
|
06:35:58
|
*** upul_ has joined #openmrs
|
06:35:58
|
*** ChanServ sets mode: +v upul_
|
06:36:36
|
*** upul has quit IRC
|
06:36:47
|
*** upul_ is now known as upul
|
06:50:07
|
*** pascal` has joined #openmrs
|
07:02:53
|
<upul> Good morning pascal`
|
07:02:58
|
<pascal`> hi upul
|
07:40:02
|
<r0bby> I love this
|
07:40:16
|
<upul> me too
|
07:40:17
|
<r0bby> it worked the first time then says "screw you, i dont wanna work"
|
07:46:23
|
<upul> difference may be you saved something in the database the first time
|
07:52:09
|
<pascal`> is "screw you, i dont wanna work" the _exact_ error message?
|
07:52:39
|
<pascal`> because you'll need the exact message to start debugging
|
07:58:04
|
<r0bby> after that i get
|
07:59:15
|
<r0bby> ERROR - errorhandler_jsp._jspService(72) |2009-06-24 03:47:34,779| Error on page /openmrs-15x/errorhandler.jsp
|
07:59:18
|
<r0bby> java.lang.IllegalArgumentException: Cannot convert org.openmrs.module.facilitydata.model.BooleanCodedQuestion@f8cd27 of type class org.openmrs.module.facilitydata.model.FacilityDataQuestion$$EnhancerByCGLIB$$d910e85a to class org.openmrs.module.facilitydata.model.NumericQuestion
|
07:59:28
|
<r0bby> im making lazy="false"
|
07:59:47
|
<pascal`> ok
|
07:59:58
|
<pascal`> well, shouldn't be too tough to find
|
08:00:03
|
<pascal`> firstly, i agree with upul
|
08:00:21
|
<pascal`> if it consistently works with an empty database once, then fails, then i must be due to have the data
|
08:00:25
|
<r0bby> oh doh
|
08:00:28
|
<pascal`> *it
|
08:00:36
|
<pascal`> *d'oh
|
08:00:44
|
<r0bby> I manually assigned the FK's
|
08:07:49
|
<r0bby> http://pastie.org/private/ruzlxa1pmdql8zzbkq2kq
|
08:08:14
|
<r0bby> the getService() calls are out for the mock methods except in the schema save
|
08:08:19
|
<r0bby> i cant get this :|
|
08:12:12
|
<pascal`> hmm
|
08:12:41
|
<pascal`> well the error message says you're trying to convert a boolean to a numeric question
|
08:12:47
|
<r0bby> yes
|
08:12:51
|
<r0bby> ignore that for the moment
|
08:12:54
|
<pascal`> a code inspection should help you find that
|
08:13:13
|
<r0bby> this is happening because I manually assigned the FK
|
08:14:05
|
<r0bby> formQuestion.setQuestion(question);
|
08:14:10
|
<r0bby> that should set the section
|
08:14:14
|
<r0bby> question
|
08:15:57
|
<pascal`> does the error occur while trying to persist?
|
08:21:22
|
<r0bby> loading
|
08:21:34
|
<r0bby> lemme try this
|
08:26:52
|
*** atomicturtle1 has joined #openmrs
|
08:26:52
|
*** atomicturtle has quit IRC
|
08:40:26
|
<r0bby> making a seperate table for now works
|
10:13:27
|
*** bwolfe has joined #openmrs
|
10:13:27
|
*** ChanServ sets mode: +o bwolfe
|
10:13:57
|
<r0bby> bwolfe: what the...
|
10:14:00
|
<r0bby> it's 612am!
|
10:14:26
|
* r0bby gets out the frying pan
|
10:14:53
|
<bwolfe> r0bby: I'm showing 6:14
|
10:15:11
|
<r0bby> i am too
|
10:15:53
|
<r0bby> I don't think this is healthy
|
10:16:03
|
<r0bby> not wanting to stop working until things work
|
10:17:20
|
<r0bby> things are still not working right
|
10:17:34
|
<r0bby> I got the stuff working now w/ the cascading
|
10:18:00
|
<r0bby> but the questions aren't persisting right
|
10:18:04
|
<bwolfe> r0bby: good.
|
10:18:06
|
<bwolfe> r0bby: bad.
|
10:18:12
|
<r0bby> yeh
|
10:18:26
|
<r0bby> also the section and question foreign keys are both not being set on the form question :|
|
10:19:04
|
<r0bby> http://robbyoconnor.blogspot.com/2009/06/overdue-progress-report.html
|
10:19:06
|
<OpenMRSBot> <http://ln-s.net/3NHr> (at robbyoconnor.blogspot.com)
|
10:19:08
|
<r0bby> explains the design
|
10:19:43
|
<r0bby> anyways :(
|
10:27:59
|
<r0bby> :/let's see if a set works
|
10:31:29
|
<r0bby> bwolfe: is it a bad idea to disable cglib -- it's getting in the way of my instanceof checks
|
10:33:13
|
<bwolfe> r0bby: yes, its one of the worst ideas you've ever had
|
10:33:25
|
<bwolfe> r0bby: use class.isAttributableFrom(class)
|
10:34:08
|
<r0bby> ahh ok
|
10:35:38
|
<r0bby> you mean isAssignableFrom()?
|
10:36:13
|
<bwolfe> sure
|
10:36:59
|
<r0bby> will that work if it's a cglib proxy
|
10:37:08
|
<r0bby> instanceof *SHOULD* do the same thing shouldn't it?
|
10:37:17
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: OpenMRS version vs. DB Version <http://forum.openmrs.org/viewtopic.php?f=9&t=459#p1677>
|
10:39:03
|
<r0bby> I've basically hosed any chance of doing soc again w/ openmrs it seems :(
|
10:39:38
|
* r0bby stabs firefox
|
10:39:40
|
<bwolfe> r0bby: use isAssignableFrom
|
10:39:58
|
<bwolfe> r0bby: it works with cglib, thats why I suggested it. :-)
|
10:40:58
|
<r0bby> okies
|
10:41:04
|
<r0bby> im using it :)
|
10:41:05
|
<r0bby> thanks bwolfe
|
10:41:11
|
<r0bby> you're a saint :)
|
10:41:15
|
<r0bby> for taking a risk on me :X
|
10:41:29
|
<r0bby> the fact im awake shows im determined :)
|
10:41:44
|
<r0bby> I've gotten the hardest part done :) -- I shoulda done this last summer
|
10:41:56
|
<r0bby> Mike is a genius
|
10:42:27
|
<r0bby> and i haven't sent him 50,000 emails -- i've gotten some design misunderstandings as a result of that but still feels damn good
|
10:44:19
|
* r0bby sighs
|
10:45:35
|
<r0bby> what could cause a FK to not set
|
10:59:36
|
<r0bby> <many-to-one name="question" class="org.openmrs.module.facilitydata.model.FacilityDataQuestion" not-null="false" cascade="save-update,persist" update="false" insert="false"/>
|
10:59:39
|
<r0bby> <many-to-one name="section" class="org.openmrs.module.facilitydata.model.FacilityDataFormSection" not-null="false" cascade="save-update,persist" update="false" insert="false"/>
|
10:59:42
|
<r0bby> that's the mapping
|
11:05:30
|
<upul> r0bby: why do you have update, insert to false?
|
11:05:39
|
<r0bby> hrm that could be why
|
11:10:02
|
*** james_regen has joined #openmrs
|
11:10:02
|
*** ChanServ sets mode: +v james_regen
|
11:13:22
|
*** bwolfe has quit IRC
|
11:18:03
|
<r0bby> yeh still not setting the value for the FK
|
11:19:31
|
<upul> r0bby: do you do both parent.getChildren().add(child) and child.setParent(parent)
|
11:20:02
|
<r0bby> hrm no
|
11:20:45
|
<r0bby> i set the child side
|
11:20:53
|
<upul> do both
|
11:21:07
|
<r0bby> wait
|
11:21:10
|
<r0bby> hold on
|
11:24:35
|
<r0bby> thanks upul
|
11:24:54
|
<r0bby> http://pastie.org/private/tiyzaxag4xj323b1x3bkfg
|
11:24:57
|
<OpenMRSBot> <http://ln-s.net/3NIv> (at pastie.org)
|
11:25:32
|
<r0bby> line 176
|
11:25:32
|
*** atomicturtle1 has quit IRC
|
11:25:37
|
<r0bby> and also at the top
|
11:25:40
|
<r0bby> ( i set the question there
|
11:25:52
|
<r0bby> then I set the section when i create each section
|
11:27:00
|
*** atomicturtle has joined #openmrs
|
11:27:15
|
<r0bby> be right back if you have time upul
|
11:27:22
|
<upul> i got to go
|
11:27:30
|
<r0bby> Okay
|
11:27:32
|
<upul> will log in later, does it work now?
|
11:27:37
|
<r0bby> No
|
11:27:42
|
<r0bby> I'll work at uit
|
11:27:47
|
<upul> okay, see you
|
11:27:48
|
<r0bby> so set it on both sides of the relation
|
11:28:04
|
*** upul has quit IRC
|
11:33:00
|
*** atomicturtle has left #openmrs
|
11:41:43
|
*** Agnor has joined #openmrs
|
11:56:50
|
<r0bby> hey Agnor
|
11:57:04
|
<Agnor> hi r0bby
|
11:59:10
|
<r0bby> sup :)
|
12:12:23
|
<Agnor> working on my project
|
12:12:49
|
<Agnor> I'm trying to get something ready to show today :)
|
12:13:09
|
<Agnor> I'm still at an early phase, though
|
12:15:34
|
*** bwolfe has joined #openmrs
|
12:15:34
|
*** ChanServ sets mode: +o bwolfe
|
12:25:03
|
<r0bby> http://pastie.org/private/tiyzaxag4xj323b1x3bkfg <-- updated code ben
|
12:25:04
|
<OpenMRSBot> <http://ln-s.net/3NIv> (at pastie.org)
|
12:25:40
|
<r0bby> I can't see what's going wrong here; I'm contemplating ditching this portion
|
12:25:44
|
<bwolfe> r0bby: ok great. updated how.
|
12:26:33
|
<r0bby> I now set all required fields via the service method for FacilityDataFormSchema
|
12:26:42
|
<r0bby> (not shown there, because it's irrelevent)
|
12:26:58
|
<bwolfe> then whats different about what you pasted?
|
12:27:08
|
<r0bby> removed all service calls
|
12:27:15
|
<r0bby> to let cascading take care of it
|
12:27:20
|
<r0bby> I dont know what's going on here :(
|
12:27:50
|
<r0bby> the question/section FK on the form question isn't going through and i'm about to sat f it and go ahead and create the creation UI
|
12:29:14
|
<bwolfe> so section.schema_id isn't being set ?
|
12:29:23
|
<r0bby> no
|
12:29:32
|
<r0bby> okay
|
12:30:25
|
<r0bby> FacilityDataFormQuestion has 4 fields: 1) display name 2) question # 3) the enclosing section 4) the FacilityDataQuestion that is associated with it
|
12:30:36
|
<r0bby> the section/question isn't being set
|
12:30:54
|
<r0bby> hrm
|
12:30:55
|
<r0bby> wait
|
12:31:53
|
<r0bby> FacilityDataFormQuestion has 4 fields: 1) question (FacilityDataQuestion) 2) display name 3) section 4) question number
|
12:32:12
|
<r0bby> no wait i got it right the first time I didn't see the pound sign i ussed for number
|
12:32:23
|
<r0bby> the two fields that aren't being set: question and section
|
12:32:58
|
<r0bby> i *DO* set them
|
12:33:45
|
<bwolfe> then its a problem with your mapping
|
12:33:47
|
<bwolfe> pastbint hat
|
12:33:53
|
<r0bby> okay
|
12:34:29
|
*** kane77 has joined #openmrs
|
12:35:37
|
*** bmckown has joined #openmrs
|
12:35:37
|
*** ChanServ sets mode: +o bmckown
|
12:36:23
|
<r0bby> http://pastie.org/private/tzddj6fpurjy5adedvmq
|
12:39:39
|
<bwolfe> r0bby: why do you insist on NOT following examples ?
|
12:39:59
|
<r0bby> you mean not using a set?
|
12:40:30
|
*** upul_ has joined #openmrs
|
12:40:30
|
*** ChanServ sets mode: +v upul_
|
12:40:40
|
*** upul_ is now known as upul
|
12:41:29
|
<bwolfe> do NOT put cascade="save-update,persist" onto the creator/changedBy.
|
12:41:36
|
<r0bby> the problem is: there isn't necessarily a field on the other side
|
12:41:51
|
<r0bby> that's why the whole many to one, one to many makes no sense to me
|
12:41:53
|
<r0bby> :|
|
12:43:22
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: OpenMRS version vs. DB Version <http://forum.openmrs.org/viewtopic.php?f=9&t=459#p1678>
|
12:43:34
|
<bwolfe> cascade means that properties on creator will be saved when you save a question. you do NOT want that
|
12:44:01
|
<bwolfe> whats the column names on formquestion?
|
12:44:11
|
<r0bby> hold
|
12:44:27
|
<r0bby> `question_number` varchar(255) not null,
|
12:44:27
|
<r0bby> `display_name` varchar(255) not null,
|
12:44:27
|
<r0bby> `section` int(11) not null,
|
12:44:29
|
<r0bby> `question` int(11) not null,
|
12:44:48
|
<r0bby> with a FK (section -> facilitydata_form_section
|
12:44:56
|
<r0bby> question -> facilitydata_question
|
12:45:37
|
<bwolfe> have you looked at formfield.hbm.xml like I've told you ?
|
12:49:50
|
<r0bby> yeh
|
12:50:27
|
<r0bby> so basically model it after that as much as possible?
|
12:50:38
|
<r0bby> lemme try that
|
12:50:46
|
<r0bby> after i get coffee so i dont fall asleep
|
12:51:43
|
<r0bby> I looked at form/formfield
|
12:53:18
|
<r0bby> FormSection -> FormQuestion is the same as Form/FormField
|
13:02:28
|
<r0bby> I'm nuts
|
13:13:54
|
<r0bby> so it's a bidirectional list?
|
13:14:00
|
<r0bby> sigh
|
13:14:02
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: cannot design form that contains a complex_obs (image) <http://forum.openmrs.org/viewtopic.php?f=3&t=462#p1681> || OpenMRS Forum: Re: OpenMRS version vs. DB Version <http://forum.openmrs.org/viewtopic.php?f=9&t=459#p1680> || OpenMRS Forum: Re: OpenMRS version vs. DB Version <http://forum.openmrs.org/viewtopic.php?f=9&t=459#p1679>
|
13:14:06
|
<r0bby> I hate wrapping my head around this
|
13:14:25
|
<r0bby> At some pt i should read java Persistence with hibernate ratherthan flipping through it
|
13:15:12
|
<bwolfe> that can be your bedtime reading today
|
13:15:39
|
<bwolfe> you don't really help yourself staying up all night.
|
13:15:42
|
<r0bby> when i lay down, im gonna conk out the second i hit the pillow :(
|
13:15:56
|
<bwolfe> as much as it kills you to leave it where it is, you should go to bed now
|
13:16:00
|
<r0bby> it's just i feel i need to get done :(
|
13:16:14
|
<r0bby> no, then i'll sleep all day and it'll be rinse and repeat
|
13:16:21
|
*** jmiranda has joined #openmrs
|
13:16:21
|
*** ChanServ sets mode: +o jmiranda
|
13:16:23
|
<r0bby> so i need to stay up
|
13:16:38
|
<r0bby> just drink coffee -- my code wont suffer so long as i dont do javadoc comments
|
13:18:21
|
<r0bby> I went to atlantic city one day on no sleep
|
13:19:03
|
<r0bby> :X
|
13:25:11
|
<r0bby> bwolfe: did you see any other things in my mapping?
|
13:25:31
|
<r0bby> that i missed
|
13:26:59
|
<bwolfe> r0bby: why did you set the key column to be update=false ?
|
13:29:07
|
<r0bby> because it was acting wonky, but setting it to update=false fixed it
|
13:30:01
|
<bwolfe> wonky doesn't tell me anything
|
13:30:12
|
<r0bby> i dont remember what was happening
|
13:30:34
|
*** atomicturtle has joined #openmrs
|
13:32:30
|
<bwolfe> r0bby: its not in the form/form_field/field example. I suggest against it
|
13:35:34
|
*** atomicturtle has left #openmrs
|
13:36:05
|
<r0bby> Okay -- i'll remove it
|
13:36:50
|
<r0bby> do you advise against using a List?
|
13:39:06
|
*** sdefabbiakane has joined #openmrs
|
13:41:07
|
<bwolfe> r0bby: yes
|
13:41:20
|
<bwolfe> only because you're in uncharted territory
|
13:45:31
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Cannot design XForm <http://forum.openmrs.org/viewtopic.php?f=3&t=463#p1682> || OpenMRS Changesets: Changeset [8725]: Added localization support for name and/or description attributes in Code, ⦠<http://dev.openmrs.org/changeset/8725> || OpenMRS Modules: XForms 2.7 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=xforms&version=&2.7>
|
13:48:15
|
<r0bby> bwolfe: explain
|
13:48:41
|
<r0bby> bwolfe: I suppose i could use a LinkedHashSet (which maintains insertion order)
|
13:49:17
|
<r0bby> so order is kept the way i want it :)
|
13:49:26
|
<bwolfe> r0bby: look at Person/PersonAddress. it uses a sorted set
|
13:49:37
|
<r0bby> bwolfe: I want insertion order
|
13:49:50
|
<r0bby> I dont really have anything to sort by
|
13:50:17
|
<r0bby> a LinkedHashSet (like a LinkedHashMap) maintains and guarentees that the insertion order is maintained
|
13:50:27
|
<r0bby> that's what I care about
|
13:50:50
|
<bwolfe> but hibernate won't return that to you from the database. it needs to have a sort column
|
13:51:01
|
<bwolfe> or use a list. I don't care. its your wasted time. :-p
|
13:51:07
|
<r0bby> see this is why i want a List :)
|
13:51:24
|
<bwolfe> at some point you need to make compromises instead of always trying out something new and spending 10x as long getting it to work! :-)
|
13:57:58
|
*** r0bby has quit IRC
|
13:58:06
|
*** r0bby has joined #openmrs
|
13:58:06
|
*** ChanServ sets mode: +v r0bby
|
14:01:00
|
*** pascal` has quit IRC
|
14:03:30
|
*** r0bby has quit IRC
|
14:03:34
|
*** r0bby has joined #openmrs
|
14:03:34
|
*** ChanServ sets mode: +v r0bby
|
14:08:55
|
*** r0bby has quit IRC
|
14:08:59
|
*** r0bby has joined #openmrs
|
14:08:59
|
*** ChanServ sets mode: +v r0bby
|
14:12:00
|
<r0bby> as i was saying
|
14:14:20
|
*** r0bby has quit IRC
|
14:14:26
|
*** r0bby has joined #openmrs
|
14:14:26
|
*** ChanServ sets mode: +v r0bby
|
14:16:22
|
<r0bby> am i dropping?
|
14:16:33
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: custom queue module <http://forum.openmrs.org/viewtopic.php?f=8&t=464#p1683>
|
14:16:44
|
<sdefabbiakane> yeah
|
14:17:12
|
*** r0bby has quit IRC
|
14:17:18
|
*** catechu has joined #openmrs
|
14:18:55
|
*** r0bby has joined #openmrs
|
14:18:56
|
*** ChanServ sets mode: +v r0bby
|
14:22:27
|
<catechu> hi everyone
|
14:22:34
|
<catechu> what is the standard way to refresh a page in OpenMRS?
|
14:24:13
|
<catechu> I have been using 'location.reload'
|
14:26:20
|
<r0bby> ok seems to stabilze
|
14:28:10
|
<bwolfe> catechu: that should be fine. why are you needing to refresh via javascript ?
|
14:32:55
|
<catechu> bwolfe: the patient matching module has a checklist which is not displaying the result after it's done -- I wanted to debug it by refreshing
|
14:34:13
|
<bwolfe> catechu: is "after its done" in javascript or in a java controller ?
|
14:34:44
|
<catechu> in javascript
|
14:37:13
|
<r0bby> HAI
|
14:38:00
|
* r0bby yawns
|
14:47:44
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8727]: Tagging r8625 on 1.5.x branch as 1.5.0 beta <http://dev.openmrs.org/changeset/8727> || OpenMRS Changesets: Changeset [8726]: Fixed some deprecated api calls and javadocs references - #1142 Author: ⦠<http://dev.openmrs.org/changeset/8726>
|
14:55:03
|
<r0bby> global properties is a great example of how im gonna do the creation UI :)
|
14:55:10
|
<r0bby> except im gonna use Jquery :)
|
14:56:42
|
*** catechu has quit IRC
|
15:19:46
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8728]: active-lists: Added ConceptClass and ConceptSet fields to ConceptAnswer <http://dev.openmrs.org/changeset/8728>
|
15:51:24
|
*** sdefabbiakane has quit IRC
|
16:04:46
|
*** Mkop has joined #openmrs
|
16:13:55
|
*** nribeka has joined #openmrs
|
16:13:55
|
*** ChanServ sets mode: +v nribeka
|
16:21:52
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8729]: amrs-14x: Applying patch for #1298 to make EncounterType description ⦠<http://dev.openmrs.org/changeset/8729>
|
16:22:00
|
*** Mkop has quit IRC
|
16:22:12
|
*** Mkop has joined #openmrs
|
16:31:16
|
*** nribeka has left #openmrs
|
16:35:32
|
*** nribeka has joined #openmrs
|
16:35:32
|
*** ChanServ sets mode: +v nribeka
|
16:37:50
|
*** nribeka has quit IRC
|
16:39:10
|
*** nribeka has joined #openmrs
|
16:39:10
|
*** ChanServ sets mode: +v nribeka
|
16:39:13
|
*** nribeka has quit IRC
|
16:40:05
|
*** nribeka has joined #openmrs
|
16:40:05
|
*** ChanServ sets mode: +v nribeka
|
16:45:09
|
<r0bby> ?!?!
|
16:45:19
|
<r0bby> why is nribeka on the regenstrief host?!?!?!
|
16:46:05
|
<r0bby> nribeka: ?!?!?!?!
|
16:47:12
|
<nribeka> hi r0bby
|
16:48:35
|
<nribeka> new guy here
|
16:49:22
|
<r0bby> you got hired?
|
16:49:26
|
<r0bby> congrats :)
|
16:49:33
|
<nribeka> thank you r0bby :)
|
16:49:48
|
* r0bby sighs
|
16:51:20
|
<nribeka> updating projects. it's been a while. internet was a bit slow back home
|
16:53:56
|
<r0bby> nribeka: so you're maintaining last year's project
|
16:53:58
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1588 (defect created): LazyInitializationException: failed to lazily initialize a collection of role: org.openmrs.User.userProperties, no session or session was closed <http://dev.openmrs.org/ticket/1588> || OpenMRS Forum: Re: cannot design form that contains a complex_obs (image) <http://forum.openmrs.org/viewtopic.php?f=3&t=462#p1685> || OpenMRS Forum: Re: cannot design form that contains a complex_obs (image) <http://forum.openmrs.org/viewtopic.php?f=3&t=462#p1684>
|
16:54:18
|
<r0bby> I gotta refactor some of this code since some of tghe PIH guys will be maintaining it when i can't :X
|
16:54:35
|
<nribeka> i'm not sure yet. i need to see burke
|
16:54:46
|
<nribeka> i think i will work on logic
|
16:55:48
|
<r0bby> bastard
|
16:55:49
|
<Mkop> congrats, nribeka!
|
16:56:12
|
<nribeka> thanks Mkop
|
16:56:38
|
<Mkop> so you're back in the US then?
|
16:57:28
|
<nribeka> yes sir
|
16:57:53
|
<r0bby> this country is going down the crapper :)
|
16:59:09
|
<Mkop> so you're just working at regenstrief for the summer, I assume?
|
16:59:15
|
<Mkop> how far is Indy from Pittsburgh?
|
16:59:24
|
<Mkop> not close enough to go during the year, I imagine
|
17:00:04
|
<Mkop> yeah, it's 5 hours
|
17:00:05
|
<r0bby> the regenstrief people supposedly like me
|
17:00:07
|
<r0bby> not sure why
|
17:06:38
|
<bmckown> hmm. do we like r0bby ??
|
17:06:42
|
<bmckown> yea.
|
17:06:48
|
* bmckown likes r0bby.
|
17:07:17
|
*** sdefabbiakane has joined #openmrs
|
17:10:31
|
<r0bby> not sure why :P
|
17:10:45
|
<r0bby> Like Apollo 13, groovy forms was a successful failure
|
17:11:11
|
<r0bby> okay i gotta work
|
17:11:19
|
<r0bby> need coffee brain is on auto pilot right now
|
17:26:04
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8732]: schedulerquartz: error message renamed for invalid class name <http://dev.openmrs.org/changeset/8732> || OpenMRS Changesets: Changeset [8731]: amrs-14x: Fixing error in ticket-1298 patch and in mysqldiff file. <http://dev.openmrs.org/changeset/8731> || OpenMRS Changesets: Changeset [8730]: reporting: Implemented the following user stories and enhancements. * ⦠<http://dev.openmrs.org/changeset/8730>
|
17:32:20
|
*** Mkop has quit IRC
|
17:32:48
|
*** Mkop has joined #openmrs
|
17:58:04
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8733]: schedulerquartz: implement disabling and enabling repeat radio button when ⦠<http://dev.openmrs.org/changeset/8733>
|
18:14:24
|
*** Keelhaul has joined #openmrs
|
18:14:24
|
*** ChanServ sets mode: +v Keelhaul
|
18:35:16
|
*** upul has quit IRC
|
18:45:18
|
*** Mkop has quit IRC
|
19:01:37
|
*** Mkop has joined #openmrs
|
19:01:47
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1589 (task created): reportingcompatibility: Patches to apply for 1.6 release <http://dev.openmrs.org/ticket/1589>
|
19:04:19
|
<bmckown> Ben... question if you can answer... Now that I updated FormEntry Module to add the extra HL7 for ConceptName in the taskpane... what do you propose is the best way to handle forms whose schema was created without the extra HL7 for ConceptName. That is: 1941^CURRENT ARV^99DCT^1939^CURRENT ARV (but the Infopath gives an error cause everything after 99DCT was not in the original schma. ? Suggestion?
|
19:05:24
|
<bmckown> Basically... just wondering a way to fix this without changing ALL of our forms.
|
19:05:42
|
<bwolfe> hmm, so the inside the infopath form it is hardcoding only one 99DCT ?
|
19:05:53
|
<bmckown> correct... in the schema
|
19:06:07
|
<bwolfe> but the schema should be updated to have the longer one when you rebuild
|
19:06:20
|
<bwolfe> are you sure the form is being rebuilt and not silently erroring when you do a "rebuild all" ?
|
19:06:35
|
<bwolfe> aka, try rebuilding the form manually and see if there is an error
|
19:06:50
|
<bmckown> no. i actually did not know that rebuilding forms would update the schema. okay... will try that.
|
19:08:35
|
<bwolfe> but didn't you do a "rebuild all" yesterday ?
|
19:09:02
|
<bmckown> yes i did rebuild all yesterday
|
19:16:17
|
<bmckown> hmm. could not duplicate error sent from ampath on the dev server. will try it in eldoret.
|
19:16:45
|
<bmckown> maybe they were getting the error before i rebuilt all. maybe i forgot to rebuild all the first day of update.
|
19:17:25
|
<Mkop> what is eldoret?
|
19:21:43
|
<bwolfe> a city in kenya
|
19:23:02
|
<Mkop> i.e. an openmrs production site
|
19:23:25
|
<Mkop> s/production/not sure what the right word is/
|
19:23:59
|
<bwolfe> Mkop: implementation is the "right" word
|
19:24:15
|
<bwolfe> but yes, eldoret is where RG's implementation is
|
19:24:29
|
<Mkop> RG?
|
19:24:49
|
<bwolfe> regenstrief
|
19:26:00
|
<Mkop> oh
|
19:26:10
|
<Mkop> I should have figured that out
|
19:26:16
|
<Mkop> I was thinking it was some person's initials
|
19:28:12
|
*** james_regen has quit IRC
|
19:56:35
|
*** Mkop has quit IRC
|
19:56:53
|
*** Mkop has joined #openmrs
|
20:02:36
|
*** sdefabbiakane has quit IRC
|
20:18:01
|
*** Mkop has quit IRC
|
20:18:19
|
*** Mkop has joined #openmrs
|
20:22:27
|
*** Mkop has quit IRC
|
20:23:55
|
*** sdefabbiakane has joined #openmrs
|
20:34:20
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8734]: ncd: Fixes to a few of the context checking operations. <http://dev.openmrs.org/changeset/8734>
|
20:43:48
|
*** Mkop has joined #openmrs
|
20:58:05
|
*** yurinotigor has joined #openmrs
|
21:06:22
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8735]: ncd: Added display for Indicating Critic on the reportable result detail ⦠<http://dev.openmrs.org/changeset/8735>
|
21:35:14
|
*** bmckown has quit IRC
|
21:36:30
|
*** meridian`plat has joined #openmrs
|
21:37:00
|
<meridian`plat> Where can i find the OpenMRS Appliance?
|
21:37:21
|
<meridian`plat> The site says it's available on the download page, however, it was not located there.
|
21:37:28
|
*** meridian`plat is now known as iplat
|
21:38:49
|
<nribeka> are you just looking the apps iplat? or the code too?
|
21:39:22
|
<iplat> my intentions are just to test openMRS without all of the hassle of setting up a new installation
|
21:39:49
|
<iplat> No need for source for now.
|
21:39:58
|
<nribeka> if you just want to test it out, you can check the demo online
|
21:40:03
|
<bwolfe> iplat: the latest release (1.4.3) doesn't have an appliance yet. Look at 1.4.1 on the releases page: http://openmrs.org/wiki/Releases
|
21:40:44
|
<iplat> excellent! Many thanks!
|
21:40:45
|
<nribeka> demo is dead :P
|
21:40:50
|
<iplat> indeed :P
|
21:41:04
|
<bwolfe> nribeka: yeah, we lost the labs, ci, and demo today :-/
|
21:41:11
|
<Mkop> nribeka: I think your current hostmask allows us to blame everything on you...
|
21:41:36
|
<nribeka> eh ... why Mkop? :D
|
21:41:38
|
<bwolfe> those machines are donated to us...and the guy who set it up for us just emailed us today and said "SOMEONE DELETED ALL OF YOUR ACCOUNTS!!!!!"
|
21:42:06
|
<nribeka> Mkop did it lol
|
21:42:09
|
<bwolfe> so....they are restoring the machines from backup tmrw or friday I think :-/
|
21:42:16
|
<Mkop> nribeka: that hostmask doesn't come for free - it has responsibilities too.....
|
21:43:57
|
<Keelhaul> =(
|
21:44:19
|
<nribeka> i thought it's just CI and labs
|
21:44:48
|
<bwolfe> whoa, the US beat Spain?!
|
21:44:58
|
<iplat> Can OpenMRS be set up to send HL7 messages to different vendors?
|
21:45:21
|
<Keelhaul> serves spain right
|
21:45:26
|
<nribeka> wow ... 2 - 0 bwolfe?
|
21:45:33
|
<Mkop> Keelhaul: I assume you're talking football?
|
21:45:36
|
<nribeka> i thought it's gonna be spain vs brazil
|
21:45:38
|
<Keelhaul> yea
|
21:45:41
|
<iplat> I'm interested in using OpenMRS to test an interface i'm working on for HL7 messages.
|
21:45:42
|
<bwolfe> iplat: I'm sure someone has done that. I don't know of many people that send /from/ openmrs
|
21:46:14
|
<bwolfe> iplat: the guys at webreach have a module that connects it to mirth
|
21:46:30
|
<iplat> ahh, i've used mirth.
|
21:46:59
|
<iplat> I think my big problem is really getting enough HL7 messages to thoroughly test my app.
|
21:48:08
|
<bwolfe> be back later
|
21:48:31
|
*** bwolfe has quit IRC
|
22:09:40
|
*** nribeka has quit IRC
|
22:11:59
|
*** sdefabbiakane has quit IRC
|
22:13:54
|
*** atomicturtle has joined #openmrs
|
22:21:31
|
*** iplat has quit IRC
|
22:24:38
|
*** Keelhaul has quit IRC
|
22:24:46
|
*** Mkop has quit IRC
|
22:58:57
|
*** atomicturtle has quit IRC
|
23:12:27
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8738]: ncd: moved the "reportable" controls in the search criteria section of the ⦠<http://dev.openmrs.org/changeset/8738> || OpenMRS Changesets: Changeset [8737]: ncd: added tool tip strings for the reportable results list page search ⦠<http://dev.openmrs.org/changeset/8737> || OpenMRS Changesets: Changeset [8736]: 1.4.x branch Added DefaultAnnotationHandlerMapping so that modules can use ⦠<http://dev.openmrs.org/changeset/8736>
|
23:12:43
|
*** atomicturtle has joined #openmrs
|
23:34:47
|
*** jmiranda has quit IRC
|
23:35:31
|
*** atomicturtle has quit IRC
|
23:44:28
|
<OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8739]: ncd: changed NlpCriticContextDAO.listContextTypes to order by context type ⦠<http://dev.openmrs.org/changeset/8739>
|