00:09:54
|
*** vmunuku has joined #openmrs
|
00:57:18
|
*** mckorad has joined #openmrs
|
00:58:34
|
<mckorad> djazayeri: we are getting this error "Cannot handle type [Location]. Please add a module to handle this type. " while trying to add the location dataype
|
01:01:04
|
<djazayeri> mckorad: have you implemented a LocationCustomDatatype (or something like that?)
|
01:01:18
|
<djazayeri> mckorad: alternately: where are you getting this error?
|
01:01:21
|
<mckorad> djazayeri: yes
|
01:01:57
|
<mckorad> djazayeri: I have implemented the LocatioDatatype and its handler
|
01:02:12
|
<mckorad> djazayeri: getting this eror in the UI
|
01:02:30
|
<mckorad> djazayeri: after adding the Location type
|
01:03:41
|
<djazayeri> mckorad: do you have an @Component annotation on your class?
|
01:04:17
|
<mckorad> djazayeri: yes
|
01:04:43
|
<mckorad> djazayeri: should I send you the files?
|
01:05:31
|
<djazayeri> mckorad: I highly highly highly recommend that you use junit tests for this, to ensure things are working before you start going through the UI. Because it will make your job 100 times faster.
|
01:05:52
|
<mckorad> djazayeri: ok
|
01:06:05
|
<djazayeri> Look at org.openmrs.attribute.AttributeIntegrationTest
|
01:06:13
|
<mckorad> djazayeri: ok
|
01:06:41
|
<djazayeri> that particular test depends on the VisitAttributeType that is defined in standardTestDataset.xml
|
01:07:12
|
<djazayeri> I would suggest that you do a test along those lines, where you do:
|
01:07:46
|
<mckorad> djazayeri: ok
|
01:08:05
|
<djazayeri> * create a new VisitAttributeType() and set its datatypeClassname to point to your new class
|
01:08:26
|
<mckorad> djazayeri: ok
|
01:08:57
|
<djazayeri> * then create a new Visit(), add an attribute to it using the attribute type you just created, and call save.
|
01:09:37
|
<djazayeri> It will look very similar to what's in that AttributeIntegrationTest except that instead of service.getVisitAttributeType(1) you're going to need to instantiate and save one of your own.
|
01:10:08
|
<djazayeri> once you've done that, ping me if it's not working, and I can help you step through it to debug.
|
01:10:12
|
<djazayeri> mckorad: ^^
|
01:10:16
|
*** ssivaku4 has joined #openmrs
|
01:10:46
|
<mckorad> djazayeri: ok will try that
|
01:14:24
|
<djazayeri> mckorad: good luck! I really can't emphasize enough how helpful it is to do test-driven-development (or test-driven-debugging)
|
01:14:41
|
*** nribeka has joined #openmrs
|
01:14:41
|
*** ChanServ sets mode: +v nribeka
|
01:14:47
|
<mckorad> djazayeri: thanks
|
01:42:15
|
*** mseaton has joined #openmrs
|
01:42:15
|
*** ChanServ sets mode: +v mseaton
|
01:42:20
|
*** mseaton has left #openmrs
|
02:11:07
|
*** harshadura has quit IRC
|
02:22:12
|
<mckorad> djazayeri: from where do you populate the location dropdown?
|
02:22:38
|
<djazayeri> mckorad: offhand I don't remember exactly how the code flows
|
02:22:58
|
<djazayeri> mckorad: there should be a file called location.jsp in a fieldgen folder in openmrs-web
|
02:23:10
|
<mckorad> djazayeri: ok
|
02:26:42
|
<mckorad> djazayeri: are those stored in the db?
|
02:26:59
|
<mckorad> djazayeri: the values for location
|
02:37:19
|
<djazayeri> mckorad: yes
|
02:37:59
|
<mckorad> djazayeri: ok
|
02:38:47
|
<djazayeri> mckorad: off to dinner
|
02:38:48
|
<djazayeri> gnight
|
02:39:07
|
<mckorad> djazayeri: gnight
|
02:39:43
|
*** mckorad has quit IRC
|
03:00:01
|
*** vmunuku has quit IRC
|
03:01:01
|
*** ssivaku4 has quit IRC
|
05:57:30
|
*** kishoreyekkanti has joined #openmrs
|
06:35:52
|
*** kishoreyekkanti has quit IRC
|
06:42:49
|
*** kishoreyekkanti has joined #openmrs
|
06:47:14
|
*** kishoreyekkanti has quit IRC
|
06:50:25
|
*** kishoreyekkanti has joined #openmrs
|
06:54:59
|
*** robbyoconnor has joined #openmrs
|
06:54:59
|
*** ChanServ sets mode: +v robbyoconnor
|
06:57:56
|
*** pascal` has joined #openmrs
|
06:57:56
|
*** ChanServ sets mode: +v pascal`
|
07:11:35
|
*** kishoreyekkanti has quit IRC
|
07:24:28
|
*** kishoreyekkanti has joined #openmrs
|
07:30:54
|
*** kishoreyekkanti has quit IRC
|
09:26:02
|
*** kishoreyekkanti has joined #openmrs
|
09:30:05
|
*** kishoreyekkanti has quit IRC
|
11:02:06
|
*** kishoreyekkanti has joined #openmrs
|
11:06:19
|
*** pascal`` has joined #openmrs
|
11:08:03
|
*** pascal` has quit IRC
|
11:17:44
|
*** kishoreyekkanti has quit IRC
|
12:35:07
|
*** nribeka has quit IRC
|
13:15:24
|
*** mseaton has joined #openmrs
|
13:15:24
|
*** ChanServ sets mode: +v mseaton
|
13:15:25
|
*** mseaton has left #openmrs
|
13:58:41
|
*** mseaton has joined #openmrs
|
13:58:41
|
*** ChanServ sets mode: +v mseaton
|
13:58:45
|
*** mseaton has left #openmrs
|
14:36:44
|
*** pascal`` has quit IRC
|
14:57:35
|
*** robbyoconnor has quit IRC
|
16:07:09
|
*** kishoreyekkanti has joined #openmrs
|
17:25:09
|
*** kishoreyekkanti has quit IRC
|
17:43:13
|
*** dkayiwa has joined #openmrs
|
18:08:44
|
*** djazayeri has quit IRC
|
20:25:34
|
*** dkayiwa has quit IRC
|
20:43:02
|
*** dkayiwa has joined #openmrs
|
20:47:02
|
*** robbyoconnor has joined #openmrs
|
20:47:02
|
*** ChanServ sets mode: +v robbyoconnor
|
20:54:06
|
*** dkayiwa_ has joined #openmrs
|
20:57:23
|
*** dkayiwa has quit IRC
|
20:57:23
|
*** dkayiwa_ is now known as dkayiwa
|
21:38:34
|
*** dkayiwa has quit IRC
|
22:14:10
|
*** robbyoconnor has quit IRC
|
23:26:07
|
*** robbyoconnor has joined #openmrs
|
23:26:07
|
*** ChanServ sets mode: +v robbyoconnor
|
23:42:01
|
*** robbyoconnor has quit IRC
|