IRC Chat : 2010-11-23 - OpenMRS

00:07:41 *** misha680 has quit IRC
01:24:34 *** misha680 has joined #openmrs
01:38:09 *** diptanuc has joined #openmrs
02:10:57 *** diptanuc has quit IRC
02:13:02 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS trunk #16652: [Wyclif Luyima] Applied ctrl+shift+F/O to conceptService methods for cleaner diffs for future patches <http://feedproxy.google.com/~r/OMRStrunk/~3/MeGs0pBjKsg/>
02:20:04 *** gbastien has joined #openmrs
03:30:08 <deadpool> bwolfe: is a module capable of superceding an openmrs api and customizing it
03:31:39 <bwolfe> deadpool: using AOP a module can change any return value of an api method
03:33:43 <deadpool> bwolfe: that also includes modifying jsp pages too?
03:36:27 <bwolfe> modifying jsp pages is different. you can overwrite any url with your own content just through spring. or you can insert content into other pages (using extension points)
03:36:40 <bwolfe> but not every jsp has an extension point in the place you will want to add content
03:37:21 <deadpool> hmm ic
03:38:08 <deadpool> i am trying to make a module to modify the registration page a little and was wondering if it was possible or if i had to go into the openmrs code itself and modify it there
03:38:14 *** fixl has joined #openmrs
03:40:39 <bwolfe> deadpool: how much modification?
03:40:55 <bwolfe> is it not something that the xforms custom reg page can't do?
03:41:02 <bwolfe> or do you need something really complex?
03:41:16 <bwolfe> or the registration module cna't do it?
03:42:04 <bwolfe> there are a few extension points on the "shortPatient.form" page..check the jsp to see what is there
03:42:08 *** fixl has quit IRC
03:42:13 *** gbastien has quit IRC
03:43:02 <deadpool> well the doctor asked while on the registration page if they could have a questionairre that helps decide if a patient needs financial help and if that happens on registration that would help them out a lot
03:43:32 *** fixl has joined #openmrs
03:43:48 <deadpool> can the xforms do that?
03:51:35 *** deadpool has quit IRC
03:57:57 <bwolfe> deadpool: not sure. but you can try. :-)
04:03:31 *** bwolfe has quit IRC
05:08:08 *** robbyoconnor has quit IRC
05:08:09 *** robbyoconnor has joined #openmrs
05:08:09 *** ChanServ sets mode: +v robbyoconnor
05:50:59 *** diptanuc has joined #openmrs
06:18:14 *** Pkirwa has joined #openmrs
06:25:08 *** diptanuc has quit IRC
06:25:36 *** diptanuc has joined #openmrs
06:51:28 *** robota has joined #openmrs
06:56:59 *** robota has quit IRC
07:34:08 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: XForms 3.9.7 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=xforms&version=&3.9.7>
07:35:12 *** robota has joined #openmrs
08:58:28 *** robota has quit IRC
10:06:32 *** robota has joined #openmrs
10:13:13 *** diptanuc has quit IRC
10:13:24 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS trunk #16655: [Wyclif Luyima] Localizing 'use sparingly' phrase on concept search page and moving the 'add concept' link above the search widget - TRUNK-1663 <http://feedproxy.google.com/~r/OMRStrunk/~3/lCMOqbd908Y/> || New Changeset: OpenMRS trunk #16654: [Wyclif Luyima] Added methods to the API to support batch look up for concepts, and converted concept search on the dictionary's index page - TRUNK-1663 <http://feedproxy.google.com/~r/OMRStrunk/~3/P1uFY2Kfwfs/>
10:52:12 *** diptanuc has joined #openmrs
10:59:58 *** pascal` has joined #openmrs
12:52:47 *** gbastien has joined #openmrs
13:00:38 *** diptanuc has quit IRC
13:15:57 *** bwolfe has joined #openmrs
13:15:57 *** ChanServ sets mode: +o bwolfe
13:23:18 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: how to remove Latitude and Longitude field <http://forum.openmrs.org/viewtopic.php?f=10&t=714#p2690>
13:23:42 *** upul` has joined #openmrs
13:23:42 *** ChanServ sets mode: +v upul`
13:43:28 *** Pkirwa has quit IRC
13:55:43 *** diptanuc has joined #openmrs
14:07:13 *** gbastien has quit IRC
14:20:36 *** robbyoconnor has quit IRC
14:27:28 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: how to remove Latitude and Longitude field <http://forum.openmrs.org/viewtopic.php?f=10&t=714#p2691>
14:32:10 *** fixl has quit IRC
14:33:56 *** upul` has quit IRC
14:43:53 *** pascal` has quit IRC
14:57:01 *** robota has quit IRC
15:16:03 *** pascal` has joined #openmrs
15:16:03 *** ChanServ sets mode: +v pascal`
15:16:13 <pascal`> oh no not the bwolfe guy again
15:16:19 <pascal`> *that
15:16:53 <bwolfe> pascal`: c'mon, lets get him!
15:16:57 * bwolfe grabs pitchfork
15:18:20 <pascal`> bwolfe, how's the weather?
15:18:28 <pascal`> still bad i assume? (=
15:18:39 <bwolfe> yesterday it was 70F here!
15:18:45 <diptanuc> bwolfe: Where are you?
15:18:48 <bwolfe> very strange, but welcomed none-the-less
15:19:14 <bwolfe> diptanuc: Indianapolis, IN : http://www.wunderground.com/cgi-bin/findweather/getForecast?query=46201
15:19:19 <OpenMRSBot> <http://ln-s.net/8-Bg> (at www.wunderground.com)
15:23:36 <bwolfe> pascal`: how is it down your way? Warm enough to swim yet?
15:24:43 <pascal`> bwolfe, yeah it's pretty nice: http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=Cape+Town%2C+South+Africa&searchType=WEATHER
15:24:51 <OpenMRSBot> <http://ln-s.net/8-Bk> (at www.wunderground.com)
15:25:25 <bwolfe> cold today for you
15:31:29 *** Wizzcat has quit IRC
15:32:35 *** Wizzcat has joined #openmrs
15:58:28 *** pascal` has quit IRC
17:08:02 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Newbie : Need help with Integrating OpenMRS in webapp <http://forum.openmrs.org/viewtopic.php?f=23&t=715#p2692>
17:22:26 *** misha680 has quit IRC
17:22:39 *** muthah has joined #openmrs
17:36:38 *** robbyoconnor has joined #openmrs
17:36:38 *** ChanServ sets mode: +v robbyoconnor
17:43:30 *** deadpool has joined #openmrs
17:51:18 *** pascal` has joined #openmrs
17:55:56 *** diptanuc has quit IRC
18:01:22 *** diptanuc has joined #openmrs
18:05:08 *** pascal` has quit IRC
18:26:02 <diptanuc> Hi, can anyone tell me where do i find the openmrs-test-1.8.0 jar for maven?
18:26:50 <diptanuc> The openmrs-web and openmrs-api 1.8 snapshots jars are present in the nexus repository.
18:39:20 *** misha680 has joined #openmrs
18:43:32 *** gbastien has joined #openmrs
18:43:42 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: Newbie : Need help with Integrating OpenMRS in webapp <http://forum.openmrs.org/viewtopic.php?f=23&t=715#p2693>
18:50:48 *** pascal` has joined #openmrs
19:00:32 *** pascal` has quit IRC
19:01:20 *** Hazamonzo is now known as Captain_obvious
19:02:26 *** muthah has quit IRC
19:02:45 *** Captain_obvious is now known as Buzz_killington
19:03:16 *** Buzz_killington is now known as [-Haza-]
19:07:32 <deadpool> diptanuc: How does one implement SOAP functions is there like a standard
19:13:18 *** robbyoconnor has quit IRC
19:24:55 *** robbyoconnor has joined #openmrs
19:24:55 *** ChanServ sets mode: +v robbyoconnor
19:57:14 *** diptanuc has quit IRC
20:22:17 *** wyclif has joined #openmrs
20:22:47 <deadpool> bwolfe: if i want to add servlets to my module do i put them under src.org.openmrs.module.(modulename)
20:23:32 <robbyoconnor> under the web directory.
20:23:42 <robbyoconnor> web/src/org/openmrs/...
20:23:55 <bwolfe> src isn't part of the package
20:24:05 <bwolfe> but robbyoconnor is right, you should add "web" after your moduleid
20:24:17 <bwolfe> src/org.openmrs.module.moduleid.web
20:24:24 <robbyoconnor> has the structure changed?
20:24:35 <robbyoconnor> there used to be src/... (for API stuff)
20:24:52 <robbyoconnor> then web/src/...(for source code) and web/module (for Jsps)
20:25:13 <robbyoconnor> (Been awhile since i did OpenMRS coding
20:26:49 <deadpool> gotcha thanks and then i have to include it in the config.xml right?
20:28:45 <robbyoconnor> I've always done: org,openmrs.module.modulename.web.servlet (for servlets) and then for whatever else I needed related to the web layer under approriate packages)
20:29:15 *** muthah has joined #openmrs
20:41:34 <bwolfe> its still web/src for now I think...that was, um, implied in my answer ;-)
20:41:42 <bwolfe> deadpool: yes
20:42:21 <deadpool> bwolfe: thanks
21:02:40 <deadpool> umm bwolfe what does this mean /home/deadpool/Downloads/MyFirstModule/trunk/build.xml:59: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
21:03:53 *** gbastien has quit IRC
21:04:34 <deadpool> nv i think i figured it out
21:04:35 <bwolfe> no idea!
21:14:59 <deadpool> bwolfe: i am getting an error taht says cannot find symbol when i am trying to pass a variable from the jsp to the servlet is that because i haven't linked it properly in my config.xml?
21:23:59 <deadpool> bwolfe:nv again i got it forgot simple quotes
21:24:31 <bwolfe> deadpool: glad I could help ;-)
21:37:43 <deadpool> bwolfe: for some reason my jsp page is not calling my servlet when i do a form submit is there a specific way to call the servlet?
21:38:07 <bwolfe> whats the url in your action attribute?
21:39:07 <deadpool> <form method = "POST" action="firstmoduleLink.form"> u mean this?
21:39:27 <bwolfe> yeah
21:39:38 <deadpool> i first tried the Question class but it never called it cause i tried to put a simple System.out.println and it never showed up
21:40:01 <bwolfe> your servlet should be at a url like /openmrs/moduleServlet/moduleId/yourservletname
21:40:07 <deadpool> ic
21:40:14 <bwolfe> deadpool: why are you not submitting to the controller ?
21:40:41 <deadpool> how do i do that?
21:41:30 <deadpool> i thought it would be a bit complicated cause this is my first time doing jsp and servlet stuff so i thought i would try the basics before i got it complicated
21:45:16 <bwolfe> deadpool: controllers are easier than a normal servlet. :-)
21:45:36 <bwolfe> deadpool: if using annotations its a 10 second setup
21:45:46 <deadpool> hunh ic
21:47:09 <deadpool> bwolfe: now i am getting a The page "/openmrs/module/firstmodule/web/Quest" cannot be found. Check the link and try again
21:47:22 <deadpool> i think it is looking for a html page instead of the class
21:47:34 <bwolfe> right.
21:47:48 <deadpool> is there a way to link the class and then go back to like a succesfully submitted page?
21:48:01 <bwolfe> deadpool: I would suggest getting an example module and modifying the urls and controllers in there
21:48:36 <deadpool> that is what i was doing
21:48:43 <deadpool> and then looking at examples on the web
21:50:30 <bwolfe> this jsp: http://source.openmrs.org/browse/Modules/basicmodule/trunk/web/module/basicmoduleForm.jsp?hb=true links to this controller: http://source.openmrs.org/browse/Modules/basicmodule/trunk/web/src/org/openmrs/module/basicmodule/web/controller/BasicModuleFormController.java?r=15500 the "onSubmit" on the controller would get called if you added a <form> element to the jsp with action="" in it
21:55:01 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS trunk #16667: [Wyclif Luyima] Converted the search widget on the 'Find/Create Patient' page and removed the 'use sparing' phrase on the dictionary index page- TRUNK-1862 <http://feedproxy.google.com/~r/OMRStrunk/~3/ptBKDaQTGnE/>
22:26:49 <deadpool> bwolfe: how do i modify those it seems very complicated
22:27:34 <bwolfe> what do you mean?
22:27:45 <bwolfe> you can check out the basicmodule from svn and just start playing if you want
22:28:17 <deadpool> that is what i was doing i originally but i wanted to create more jsp pages and servlets within that module too
22:29:11 <deadpool> but i didn't think the controller was linked to the firstmoduleForm.jsp
22:33:57 <bwolfe> deadpool: there should be some screencasts about annotations and jsp on the openmrs youtube page (or maybe on the openmrs.blip.tv page?)
23:01:49 *** muthah has quit IRC
23:12:01 *** bwolfe has quit IRC
23:12:42 *** muthah has joined #openmrs
23:26:52 *** bwolfe has joined #openmrs
23:26:52 *** ChanServ sets mode: +o bwolfe
23:33:15 *** gbastien has joined #openmrs
23:59:31 *** misha680 has quit IRC