Wiki Spaces


Get Help from Others

Q&A: Ask OpenMRS »
Discussion: OpenMRS Talk »
Real-Time: IRC Chat

IRC Logs

Child pages
  • 2008-08-06 - OpenMRS
Skip to end of metadata
Go to start of metadata
00:05:28 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <>
00:14:25 *** sioraiocht has joined #openmrs
00:29:32 *** Nzeyi has joined #openmrs
00:39:08 *** sioraiocht has quit IRC
01:31:37 *** sgrannis has joined #openmrs
01:36:45 *** openmrs_1302 has joined #openmrs
01:46:16 *** james_regen has joined #openmrs
01:46:16 *** ChanServ sets mode: +v james_regen
01:59:51 *** sgrannis has quit IRC
02:00:28 *** bwolfe has joined #openmrs
02:00:28 *** ChanServ sets mode: +o bwolfe
02:05:07 *** upul has quit IRC
02:38:39 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <>
02:50:52 *** bmckown has joined #openmrs
02:50:52 *** ChanServ sets mode: +o bmckown
04:04:21 *** Nzeyi has quit IRC
04:04:38 *** Nzeyi has joined #openmrs
04:12:51 *** atomicturtle has quit IRC
04:16:40 *** sioraiocht has joined #openmrs
04:20:59 *** bwolfe has quit IRC
04:23:41 *** bwolfe has joined #openmrs
04:23:41 *** ChanServ sets mode: +o bwolfe
04:30:55 *** bwolfe has quit IRC
04:33:36 *** sioraiocht has quit IRC
04:33:36 *** jacobb has quit IRC
04:33:58 *** njero has joined #openmrs
04:34:54 *** ChanServ sets mode: +v njero
04:38:19 *** sioraiocht has joined #openmrs
04:38:19 *** jacobb has joined #openmrs
04:49:42 *** atomicturtle has joined #openmrs
05:02:29 *** ChanServ sets mode: +v sioraiocht
05:13:39 *** Nzeyi has quit IRC
05:20:00 *** njero has quit IRC
05:20:56 *** njero has joined #openmrs
05:20:56 *** ChanServ sets mode: +v njero
05:59:34 *** openmrs_1302 has quit IRC
06:14:08 *** Keelhaul has quit IRC
06:44:42 *** upul has joined #openmrs
06:49:39 *** bwolfe has joined #openmrs
06:49:39 *** ChanServ sets mode: +o bwolfe
06:53:23 *** sgrannis has joined #openmrs
06:53:33 *** ChanServ sets mode: +v sgrannis
07:05:57 *** upul has quit IRC
07:13:58 *** TorLye has quit IRC
07:20:04 *** bmckown has quit IRC
07:20:10 *** bmckown_ has joined #openmrs
07:26:26 <nribeka> bwolfe, when changing the global property, we need to manually delete old global property value?
07:28:17 <bwolfe> no
07:29:11 <nribeka> eh ... i update the global property in the config.xml but the one in the database still the old one
07:29:39 <nribeka> i delete the row manually
07:31:01 <nribeka> after i delete the row, the global property is updated with the new one (i don't think i need to say this one :D)
07:34:19 <bwolfe> nribeka: ah, I see what you're saying
07:34:43 <bwolfe> the global properties in the config.xml are only written to the user's db if it doesn't exist
07:34:48 <bwolfe> it doesn't check for changes
07:34:55 <bwolfe> if you want to change it, use the sqldiff.xml
07:37:10 <nribeka> so i need to put the delete row command in the sqldiff then. right bwolfe?
07:37:17 <nribeka> ic ic now
07:37:31 <bwolfe> nribeka: whats your use case here ?
07:39:55 *** sioraiocht has quit IRC
07:40:07 <nribeka> just curious bwolfe. because right now i'm play with a global property in the patient matching module and when i update it the new value is not in the database
07:41:01 <bwolfe> nribeka: yeah, the config.xml is not the place for htat
07:41:10 <bwolfe> that config is just for first time loading of your module
07:41:25 <bwolfe> so that your module can guarantee that all users of the system have a global property named that
07:41:47 <nribeka> ah ic ic. ok ok :D
07:41:56 <nribeka> i just do it manually then
08:21:15 <r0bby> bwolfe: I like to think of DWR as the swiss army knife but it's only good when you need server-side checks :S
08:21:40 <r0bby> meh
08:22:00 <bwolfe> no, its only good when you want pseudo server side checks :-p
08:22:07 <bwolfe> server side would be at submission
08:22:19 <bwolfe> DWR is /usually/ not used for're abusing it by using it for that :-p
08:54:51 <r0bby> bwolfe: ahem
08:54:54 <r0bby> wrongo
08:55:00 <r0bby> DWR is running server side
08:55:00 <r0bby> :P
08:55:13 <bwolfe> yes, thats why I said pseudo serverside
08:55:21 <r0bby> pfft
08:55:31 <bwolfe> true serverside is on submit
09:00:06 *** nribeka has quit IRC
09:03:28 <r0bby> pfffffffffffffft
09:10:08 <r0bby> you and I dont see eye to eye there
09:10:15 <r0bby> where the f is burke
09:11:02 <r0bby> bwolfe: how do I load a JSP from the application data directory?
09:11:04 <r0bby> is there a way?
09:11:50 *** bmckown_ has quit IRC
09:13:06 <bwolfe> r0bby: no idea
09:13:09 <bwolfe> r0bby: see
09:13:11 <OpenMRSBot> <> (at
09:13:31 <bwolfe> r0bby: you'll have to compile the jsp yourself and make the .class available
09:15:14 <r0bby> programmatically.
09:15:31 <r0bby> I'm just gonna move it into the contextpath
09:16:11 *** bmckown has joined #openmrs
09:16:11 *** ChanServ sets mode: +o bmckown
09:17:30 <r0bby> gah
09:17:37 <r0bby> this is gonna be difficult
09:18:09 <r0bby> I need to basically dyanamically add JSPs to the context
09:19:14 <r0bby> http://localhost:8080/openmrs/module/groovyforms/mynewform10/form.jsp is how it's gonna look
09:19:24 <r0bby> or rather how i'll load it into the portlet
09:19:35 <r0bby> it'll basically be a JSP include
09:19:39 <r0bby> so I SHOULD be able to do
09:20:01 <r0bby> WEB-INF/view/module/groovyforms/myform10/form.jsp
09:20:04 <r0bby> right
09:29:34 <bmckown> bwolfe... hehe... gotta sec to help?
09:30:28 <bwolfe> only because you used two ellipses
09:30:58 <bmckown> cannot figure out why my module service doesn't get loaded in the junit test. the module compiles and loads without error. i can run other services in this junit test. just cannot load my service. seems like its mapped right in applicationContext.xml
09:31:00 <bmckown> but.
09:31:37 <bwolfe> stack trace ?
09:31:40 <bmckown> i'm using a HibernateDAO, but not using a hibernate mapping because i'm not creating tables.
09:32:41 <bmckown>
09:32:54 <r0bby> bwolfe: I'm gonna convert you to become a web 2.0 junky
09:33:03 <r0bby> I'm gonna lead the way
09:33:06 <bwolfe> r0bby: I used to be. I kicked the habit
09:33:15 * r0bby pours a glass of kool-aid
09:33:27 <r0bby> come on...take a sip :)
09:33:34 * bmckown bumps over the kool-aid
09:33:36 <bmckown> oops
09:33:45 * r0bby pours another
09:33:50 <r0bby> drink it
09:34:08 <r0bby> try aghain bmckown ad i'll pour one for you }:-)
09:34:24 <r0bby> with the secret ingredient
09:34:31 <bwolfe> bmckown: try loading SelectionFileService by Class serviceToGet = OpenmrsClassLoader.getInstance().loadClass(....SelectionFileService);
09:34:40 <bwolfe> then pass serviceToGet to the Context.getService() method
09:34:52 <r0bby> so bwolfe
09:34:54 <bmckown> okay. thanks.
09:34:58 <r0bby> why'd you kick the habit
09:35:03 <bwolfe> r0bby: um, don't all kool aids have the "secret ingredient" ??
09:35:13 <bwolfe> r0bby: not backwards compatible enough
09:35:34 <r0bby> yeh well I'm not kicking it
09:35:47 <r0bby> I already have too much work done and it's too late to roll back
09:35:48 <bwolfe> r0bby: not as widely adopted (different actions/outcomes in different browsers)
09:36:00 <r0bby> I'll assume firefox in all cases
09:36:08 <bwolfe> r0bby: thats fine. I didn't say you had to change everything....yet ;-)
09:36:16 <r0bby> I'll test it IE7 and ff
09:36:19 <bwolfe> r0bby: I'll wait until a few days before your final review
09:36:34 <r0bby> bwolfe: then fail me?
09:36:45 <bwolfe> r0bby: no. I was kidding
09:36:45 <r0bby> or urge burke to fail me?
09:36:57 <bwolfe> web 2.0 is fine for version 1.0
09:37:09 <bwolfe> you can always refactor later if users say they prefer a different way
09:37:11 <r0bby> matt shanks is in the same boat as me :)
09:37:18 <bwolfe> what same boat is that ?
09:37:28 <r0bby> mentor goes MIA for weeks :)
09:37:59 <bwolfe> matt shanks is MIA himself...
09:38:05 <r0bby> or maybe burke and paul expect a lot from their students -- namely the ability to work independently :)
09:38:08 <bwolfe> but yes, paul and burke travel a lot
09:38:09 <r0bby> bwolfe: he's working
09:38:25 <bwolfe> r0bby: have you seen output? I haven't...
09:38:59 <r0bby> bwolfe: I'm confident he's been working
09:39:04 <r0bby> he said he hasn't slept much
09:39:10 <r0bby> (spoke to him yesterday)
09:39:21 <r0bby> meh I wanna be in the city today
09:39:35 <r0bby> and I hate spring mvc
09:39:57 <r0bby> I found out a way to change the form metadaya
09:40:00 <r0bby> keyup event :)
09:40:35 <r0bby> that could lead to a server ...beating
09:40:51 <r0bby> each time you hit a key, the server is hit
09:40:58 <r0bby> but there is no db hit
09:41:02 <r0bby> it's all in-memory
09:45:01 <bwolfe> r0bby: that'll suck on slow servers
09:45:08 <bwolfe> or on slow connections
09:45:44 <r0bby> I'm thinking of doing it on blur
09:46:03 <r0bby> (I'll explicitly state how it works, don't worry!)
09:46:55 <r0bby> meh
09:58:47 <bmckown> bwolfe... Class serviceToGet = OpenmrsClassLoader.getInstance().loadClass("org.openmrs.module.selectionfile.SelectionFileService"); gives a Console output "CacheManager already shutdown" and then the same stack trace as before. :-\
09:59:23 <bmckown> so i must have missed something somewhere... cannot figure it out yet.
10:00:10 <bwolfe> bmckown: and you're passing serviceToGet to the getService() method ?
10:00:29 <bmckown> yes. SelectionFileService service = (SelectionFileService)Context.getService(serviceToGet);
10:00:39 <bwolfe> ok, just wanted to make sure
10:01:25 <bmckown> Others in the openmrs community have successfully run JUnit4 Service Tests in modules, right?
10:03:44 <bwolfe> bmckown: I haven't tested junit4 in modules yet
10:04:03 <bwolfe> bmckown: was actually planning on getting to that today
10:04:13 <bmckown> i see. but maybe someone has.
10:05:04 <bwolfe> doubtful
10:05:58 <bmckown> well simple pojo tests work okay. tests on other openmrs services work okay.
10:08:35 <bmckown> r0bby, did you say that burke is in the process of requesting an open source license for intellij IDEA? As in for __ number of coders?
10:11:40 <r0bby> bmckown: last i spone to him he said he was
10:11:56 <r0bby> because I can easily say ~98% of my project is now in groovy :)
10:12:07 <r0bby> I <3 GStrings
10:12:14 <bwolfe> bmckown: do you have <classpathentry kind="lib" path="metadata"/> in your .classpath ?
10:12:18 <bwolfe> or in your classpath file at all ?
10:12:21 <bmckown> okay... i'll ask him about it tomorrow then.
10:12:24 <bmckown> yes, bwolfe
10:12:25 <bwolfe> or whatever netbeans uses for a classpath ?
10:12:33 <bmckown> i'm in eclipse today
10:12:54 <r0bby> GroovyForm form = groovyForms.find { GroovyForm form -> == id }
10:13:08 <bmckown> i also have <classpathentry kind="lib" path="dist"/>
10:13:48 <r0bby> bmckown: why i love groovy :)
10:13:59 <r0bby> one line to find a given form w/ a given id :)
10:14:14 <bmckown> that's nice.
10:14:19 <r0bby> returns null if it's not find
10:15:26 <r0bby> and the whoel 'groovy truth' takes verbossity away
10:15:28 <r0bby> :)
10:15:34 <r0bby> verbosity*
10:15:39 <r0bby> is that a word?
10:16:30 <r0bby> of and bmckown
10:16:39 <r0bby> groovyForms << form
10:16:45 <r0bby> add a form to the list.
10:16:52 <r0bby> operator overloading
10:17:05 <r0bby> it's as easy as overriding a method :)
10:17:14 <bmckown> r0bby I thought you liked verbosity.
10:17:16 <bwolfe> bmckown: put a breakpoint in the setService method and see what class and classloader is getting used there
10:17:25 <bmckown> Ah.. okay.
10:17:26 <bwolfe> bmckown: and just see if your service is getting put in there
10:17:33 <r0bby> bmckown: what gave you that idea?
10:17:38 <bmckown> hehe
10:17:53 <r0bby> my original JS ajax code?
10:18:00 <r0bby> if you notice i cut it down?
10:18:06 <bmckown> your irc
10:18:12 <r0bby> s/\?//
10:18:13 <bmckown> :-)
10:18:27 <r0bby> bite me.
10:18:34 <bmckown> (he didn't get my joke) oh. he did. :-)
10:18:42 <bmckown> just having fun. :-)
10:18:48 <r0bby> static def groovyForms = []
10:18:58 <r0bby> my list.
10:19:24 <r0bby> duck typing++
10:19:35 <r0bby> after soc i wanna try and introduce duck typing into openjdk
10:19:42 <r0bby> learn about compilers :)
10:20:02 <r0bby> or maybe just play around more w/ BGGA :)
10:20:18 <r0bby> technically duck typing exists
10:20:26 <r0bby> sort of
10:20:55 <r0bby> List<Object> foo = new ArrayList<Object>(); // will take most things
10:21:18 <r0bby> although in cases where that's used i say use a container class :)
10:23:31 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #959 (enhancement created): reporttemplate module: Drive report definition from uploaded template <> || OpenMRS Tickets: Ticket #958 (defect created): Errors in exiting patient from care <> || OpenMRS Tickets: Ticket #957 (defect created): module not loading certain classes <> || OpenMRS Tickets: Ticket #951 (enhancement closed): Add Solaris operating system <>
10:23:57 <bmckown> bwolfe, you mean breakpoint in the junit test testSetSelectionFileService?
10:24:12 <bwolfe> bmckown: no, in the Context class
10:24:24 <bmckown> okay.
10:24:39 <bwolfe> you might need to add the trunk source to your debug path
10:25:23 <bwolfe> debug dialog-->choose your test-->source-->add from workspace
10:53:29 *** bwolfe has quit IRC
10:59:26 <r0bby> shou7ld I bloig?
11:00:01 *** atomicturtle has quit IRC
11:07:45 *** sgrannis has quit IRC
11:12:33 *** bmckown has quit IRC
11:16:59 *** njero has quit IRC
11:27:50 *** nribeka has joined #openmrs
11:53:14 *** james_regen has quit IRC
12:10:25 *** nribeka has quit IRC
12:18:34 *** [mharrison] has quit IRC
13:19:06 <r0bby> /j/js
15:25:26 *** bwolfe has joined #openmrs
15:25:26 *** ChanServ sets mode: +o bwolfe
15:47:26 <r0bby> meh i tried to do the Activator in groovy
16:28:32 *** upul has joined #openmrs
16:33:19 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: vmware image <>
16:37:15 *** upul has quit IRC
16:44:53 *** sgrannis has joined #openmrs
16:44:59 *** ChanServ sets mode: +v sgrannis
16:53:01 *** bwolfe has quit IRC
16:58:19 *** sgrannis has quit IRC
17:03:29 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #960 (enhancement created): Multiple relationships can exist between patient and one person <>
17:07:18 *** nribeka has joined #openmrs
17:18:59 *** [mharrison] has joined #openmrs
17:22:03 *** upul has joined #openmrs
18:02:40 *** sgrannis has joined #openmrs
18:02:51 *** ChanServ sets mode: +v sgrannis
18:05:06 <sgrannis> nribeka: any questions/comments tonight, or should we touch base tomorrow?
18:05:51 <nribeka> hi sgrannis
18:06:10 <nribeka> i'm writing the patientToRecord method now
18:06:45 <nribeka> is it ok if i do the one i mention in the email?
18:06:55 <nribeka> i'm working on it ...
18:07:19 <nribeka> if it's done then we can combine it with james's dedup funtcion and all should set by then :D
18:07:33 <nribeka> (hopefully, fingers crossed)
18:09:59 <sgrannis> what does the patientToRecord method do? create linkage objects from an XML file, or something else?
18:10:04 *** njero has joined #openmrs
18:10:04 *** ChanServ sets mode: +v njero
18:12:22 <nribeka> i think it's a part of the reader
18:12:38 <nribeka> i think it transfer the patient object to a record object
18:12:49 <sgrannis> ah, i see
18:13:14 <sgrannis> makes sense.
18:14:14 <sgrannis> so the HQL queries return patient objects? and record objects are created from patient objects?
18:15:41 <nribeka> yep.
18:15:56 <nribeka> record object will be used for the matching ...
18:15:59 <sgrannis> very good
18:16:05 <sgrannis> got it.
18:16:05 <nribeka> i think this is the workflow sgrannis :D
18:16:13 <sgrannis> great.
18:16:29 <sgrannis> well, I'll get out of your way ... we can chat more tomorrow
18:16:38 <nribeka> ok ok :D
18:16:57 <nribeka> we will talk about some stuff that i might come up later on :D
18:17:50 <sgrannis> have a good night
18:17:56 <nribeka> u2 sgrannis :D
18:18:07 <nribeka> cya tomorrow then sgrannis
18:18:08 *** sgrannis has quit IRC
18:25:24 *** atomicturtle has joined #openmrs
18:30:42 <r0bby> OPH MY GOD
18:30:47 * r0bby humps OpenMRSBot
18:30:53 <r0bby> I'm happpy
19:46:50 *** openmrs_1302 has joined #openmrs
19:49:20 *** openmrs_1302 has quit IRC
19:49:40 *** openmrs_1302 has joined #openmrs
19:54:09 <r0bby> hey openmrs_1302
20:04:21 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #963 (defect created): CD4 Count Concept Contains Non-Alphanumeric Characters in the Units <> || OpenMRS Tickets: Ticket #962 (enhancement created): Drug Regimen Start and End Dates Not Ordered <> || OpenMRS Tickets: Ticket #961 (defect created): Error thrown when downloading form XSN from Design Schema <>
20:59:24 *** njero has quit IRC
21:29:25 *** njero has joined #openmrs
21:29:25 *** ChanServ sets mode: +v njero
21:59:38 *** openmrs_1302 has quit IRC
22:08:54 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Problem with RemoteFormEntry Module Implementation <>
22:27:35 *** TorLye has joined #openmrs
22:48:37 *** openmrs_1302 has joined #openmrs
23:41:52 *** sioraiocht has joined #openmrs
  • No labels