| [00:03:04] |
<Keelhaul> |
hey |
| [00:03:16] |
<Keelhaul> |
how can i call a javascript function with a bean property value |
| [00:03:29] |
<Keelhaul> |
callFunction(${bean.prop}); |
| [00:03:31] |
<Keelhaul> |
something liek that |
| [00:03:34] |
<Keelhaul> |
is that possible? |
| [01:58:54] |
*** |
sprasanna has quit IRC |
| [03:09:12] |
*** |
TorLye has joined #openmrs |
| [03:24:48] |
*** |
Keelhaul has quit IRC |
| [03:33:41] |
*** |
sprasanna has joined #openmrs |
| [04:50:32] |
*** |
TorLye has quit IRC |
| [06:34:47] |
*** |
TorLye has joined #openmrs |
| [06:40:45] |
*** |
upul has quit IRC |
| [07:11:46] |
*** |
james_regen has joined #openmrs |
| [07:11:46] |
*** |
ChanServ sets mode: +v james_regen |
| [07:20:09] |
<r0bby> |
hey james_regen :) |
| [07:20:35] |
<r0bby> |
Have you ever had a problem where your model is populated; but the data doesn't show up in your portlet |
| [07:21:59] |
<james_regen> |
well, i don't think i've ever had a portlet |
| [07:22:20] |
<james_regen> |
i think nribeka would be the one to talk to about that part of our module |
| [07:27:58] |
*** |
bwolfe has joined #openmrs |
| [07:27:58] |
*** |
ChanServ sets mode: +o bwolfe |
| [07:29:20] |
*** |
sioraiocht has quit IRC |
| [07:29:57] |
*** |
sioraiocht has joined #openmrs |
| [07:29:57] |
*** |
ChanServ sets mode: +v sioraiocht |
| [07:36:18] |
<r0bby> |
bwolfe: o/ |
| [07:36:41] |
<r0bby> |
pleasde be around I have class in like ~24 minutes |
| [07:36:55] |
<bwolfe> |
brb |
| [07:36:58] |
<bwolfe> |
in about 25 mins |
| [07:37:03] |
<r0bby> |
LOL! |
| [07:37:03] |
<bwolfe> |
;-) |
| [07:37:10] |
<r0bby> |
so |
| [07:37:19] |
<r0bby> |
why the heck is my portlet acting up |
| [07:37:24] |
<r0bby> |
(see email) |
| [07:37:38] |
<r0bby> |
(I can't do much from here; I have no access to my code) |
| [07:38:40] |
<r0bby> |
Basically the populateModel() method is called; the map entry is added; yet the view doesn't get the data : |
| [07:38:45] |
<r0bby> |
:| |
| [07:46:27] |
<bwolfe> |
replied |
| [07:48:58] |
*** |
james_regen has quit IRC |
| [07:49:37] |
<r0bby> |
hrm |
| [07:49:51] |
* |
r0bby kicks portable pidgin install |
| [07:51:52] |
<r0bby> |
I replied on the list because it serves as reference to other people experiencing the same problem |
| [07:52:19] |
<bwolfe> |
replied again |
| [07:52:19] |
*** |
upul has joined #openmrs |
| [07:53:40] |
<bwolfe> |
hey there upul |
| [07:53:48] |
<bwolfe> |
done for the day ? |
| [07:54:00] |
* |
r0bby sighs |
| [07:54:07] |
<r0bby> |
to calc ii i go. |
| [07:54:07] |
<upul> |
bwolfe, yes at home |
| [07:54:08] |
<r0bby> |
Laters |
| [07:54:17] |
<bwolfe> |
cya r0bby |
| [07:57:10] |
<upul> |
bwolfe, have you checked bollini's blog recently? |
| [07:57:22] |
<bwolfe> |
no, why ? |
| [07:57:45] |
<upul> |
bwolfe, you should check out that ;-) |
| [07:59:31] |
*** |
james_regen has joined #openmrs |
| [07:59:31] |
*** |
ChanServ sets mode: +v james_regen |
| [08:04:08] |
*** |
nribeka has joined #openmrs |
| [08:06:02] |
<bwolfe> |
upul: haha, that was his sole post! |
| [08:07:05] |
<upul> |
that happens when going to extremes |
| [08:07:22] |
<upul> |
middle path is the best |
| [08:07:55] |
<bwolfe> |
hehe |
| [08:08:05] |
<bwolfe> |
he overshot a little bit I guess |
| [09:01:08] |
<OpenMRSBot> |
Recent updates in the world of openmrs: OpenMRS Forum: Re: Implementing OpenMRS for gathering records via hand-helds <http://forum.openmrs.org/viewtopic.php?f=11&t=394#p1364> |
| [09:49:01] |
<sprasanna> |
bwolfe: Hi Ben |
| [09:49:24] |
<bwolfe> |
hey |
| [09:49:26] |
<sprasanna> |
bwolfe: y i get error if i have PersonAddress.hbm.xml in my module? |
| [09:49:43] |
<sprasanna> |
here is the trace http://pastebin.com/d219a68b9 |
| [09:49:47] |
<bwolfe> |
probably because there is already one named that in core ? |
| [09:50:15] |
<bwolfe> |
Caused by: org.hibernate.DuplicateMappingException: duplicate import: PersonAddress refers to both org.openmrs.module.addresshierarchy.PersonAddress and org.openmrs.PersonAddress (try using auto-import="false") |
| [09:53:22] |
<sprasanna> |
oh.. |
| [10:15:59] |
*** |
upul has quit IRC |
| [10:16:24] |
*** |
upul has joined #openmrs |
| [10:23:32] |
*** |
nribeka has quit IRC |
| [10:23:39] |
*** |
nribeka has joined #openmrs |
| [10:28:07] |
*** |
nribeka has quit IRC |
| [10:29:26] |
*** |
nribeka has joined #openmrs |
| [10:30:28] |
*** |
TorLye has quit IRC |
| [10:39:31] |
*** |
atomicturtle has joined #openmrs |
| [11:10:45] |
*** |
njero has joined #openmrs |
| [11:10:45] |
*** |
ChanServ sets mode: +v njero |
| [11:23:53] |
*** |
upul has quit IRC |
| [11:31:04] |
*** |
njero has quit IRC |
| [11:31:12] |
<nribeka> |
ah ... class time :) |
| [11:31:59] |
*** |
bmckown has joined #openmrs |
| [11:31:59] |
*** |
ChanServ sets mode: +o bmckown |
| [11:32:40] |
<sprasanna> |
bmckown: Hi Brian |
| [11:32:49] |
<bmckown> |
Hi, sprasanna |
| [11:32:50] |
<sprasanna> |
I have a small doubt |
| [11:32:54] |
<bmckown> |
okay |
| [11:33:55] |
<sprasanna> |
i use this sessionFactory.getCurrentSession().update(pa); to update person_address table but its not updating and it doesnt show any error also |
| [11:34:09] |
<sprasanna> |
save(pa) works fine here |
| [11:35:18] |
<bmckown> |
should be using save. save methods are the new convention as of 1.3.0 |
| [11:35:39] |
<bmckown> |
save does a hibernate saveOrUpdate |
| [11:35:50] |
*** |
njero has joined #openmrs |
| [11:35:50] |
*** |
ChanServ sets mode: +v njero |
| [11:36:00] |
<sprasanna> |
i tried saveOrUpdate too even it doesnt work |
| [11:36:08] |
<sprasanna> |
but we use save() to insert na |
| [11:37:11] |
<bmckown> |
did you look in the logs? |
| [11:37:19] |
*** |
njero has quit IRC |
| [11:37:37] |
<sprasanna> |
yeah no error.. |
| [11:37:52] |
<bmckown> |
you could write a Junit test to see what is going on |
| [11:38:22] |
*** |
nribeka has quit IRC |
| [11:39:33] |
<sprasanna> |
bmckown: i finally found last week that the portlet is not overridden because the portletpath in the handleRequest was blocking it :) |
| [11:44:37] |
<sprasanna> |
bmckown: you wont believe this.. in junit test it works fine |
| [11:44:50] |
<bmckown> |
hmm |
| [11:45:06] |
<bmckown> |
then it must be the controller that's not working |
| [11:45:24] |
<bmckown> |
or not calling the update |
| [11:52:40] |
<sprasanna> |
bmckown: actually its calling the update function but still it not updates |
| [11:54:24] |
<bwolfe> |
sprasanna: perhaps its a problem with the identifier ? do you have .equals set up correctly ? |
| [11:54:49] |
<bwolfe> |
and what do you have in the mapping xml for the person_address_id ? |
| [11:55:35] |
<sprasanna> |
bwolfe: i dont have any mapping xml for person_address table im using an object of PersonAddress instead |
| [11:56:08] |
<bwolfe> |
I see |
| [11:56:19] |
<sprasanna> |
bwolfe: the thing is same object pa works when i save it from junit test but it doesnt when it works from form... |
| [11:56:35] |
<sprasanna> |
sorry not save... update |
| [11:56:44] |
<bwolfe> |
why are you having to save it ? |
| [11:56:52] |
<bwolfe> |
shouldn't the parent form around the address save it ? |
| [11:57:12] |
<sprasanna> |
no i meant update |
| [11:59:42] |
<sprasanna> |
bwolfe: any suggestion? |
| [12:00:05] |
<bwolfe> |
why are you having to save it ? |
| [12:00:05] |
<bwolfe> |
<bwolfe> shouldn't the parent form around the address save it ? |
| [12:01:37] |
<sprasanna> |
actually the newPatient form does that but when it comes to patientForm it doesnt |
| [12:03:05] |
<sprasanna> |
i had the same tag names as the actual portlet has even then it updated only the first portlet window |
| [12:03:18] |
<sprasanna> |
so im doing everything manually again |
| [12:03:33] |
<sprasanna> |
everything works fine now except this update thing |
| [12:03:43] |
<r0bby> |
OMG BEN |
| [12:03:48] |
<r0bby> |
I LOVE YOU MAN |
| [12:03:57] |
<bwolfe> |
awkward... |
| [12:04:24] |
<bwolfe> |
sprasanna: not sure why its doing that. i'd guess hibernate isn't matching up the objects |
| [12:04:36] |
<r0bby> |
I thought "awkward" was for me :P |
| [12:04:39] |
<bwolfe> |
sprasanna: pastebin me your service interface |
| [12:04:47] |
<bwolfe> |
r0bby: awkward was for you |
| [12:05:12] |
<r0bby> |
it needed to be ${model.groovyForms} |
| [12:05:19] |
<r0bby> |
:D |
| [12:05:22] |
<bwolfe> |
sprasanna is not in the business of awkward statements...you reign supreme in that department r0bby ;-) |
| [12:05:50] |
<bwolfe> |
r0bby: checks can be made out to "Jedi Master Wolfe" and mailed to me here at RG |
| [12:06:01] |
<r0bby> |
go to h e double hockey stick. |
| [12:06:32] |
<r0bby> |
and also, you can expect those checks when satan does charity work with the blind |
| [12:07:13] |
<sprasanna> |
bwolfe: here it is http://pastebin.com/d2cd367b3 |
| [12:07:53] |
<bwolfe> |
sprasanna: aha! might be the solution: add @Transactional to your service interface class |
| [12:08:41] |
<bwolfe> |
r0bby: thats unfortunate. I was hoping you'd just agree to sign over your soc check to me :-) |
| [12:13:15] |
<r0bby> |
no check its on a card |
| [12:13:20] |
<r0bby> |
anjd i owe my mother a bit :S |
| [12:13:50] |
<r0bby> |
im gonna lay down :X |
| [12:19:25] |
<r0bby> |
http://ihasahotdog.files.wordpress.com/2008/08/funny-dog-pictures-dog-is-alone-and-on-the-streets.jpg |
| [12:19:26] |
<OpenMRSBot> |
<http://ln-s.net/2-Tk> (at ihasahotdog.files.wordpress.com) |
| [12:19:33] |
<r0bby> |
</lol*> |
| [12:33:04] |
*** |
nribeka has joined #openmrs |
| [13:20:35] |
*** |
thisillusion has joined #openmrs |
| [13:20:43] |
*** |
thisillusion has left #openmrs |
| [13:40:43] |
*** |
nribeka has quit IRC |
| [14:11:46] |
*** |
nribeka has joined #openmrs |
| [14:27:51] |
*** |
sioraioc_ has joined #openmrs |
| [14:31:23] |
*** |
sioraiocht has quit IRC |
| [14:43:59] |
*** |
nribeka has quit IRC |
| [14:44:04] |
*** |
AndersG has joined #openmrs |
| [15:35:45] |
*** |
sioraiocht has joined #openmrs |
| [15:35:45] |
*** |
ChanServ sets mode: +v sioraiocht |
| [15:36:24] |
*** |
sioraioc_ has quit IRC |
| [16:16:03] |
*** |
sioraiocht has quit IRC |
| [16:28:45] |
<r0bby> |
bwolfe: perhaps i dont get the use case but say I have an encounter and I want to edit ti |
| [16:29:02] |
<r0bby> |
Does groovyforms not need to worry about that? |
| [16:29:32] |
<r0bby> |
I don't quite understand the usecases |
| [16:29:33] |
<r0bby> |
:X |
| [16:29:47] |
<r0bby> |
If i don't need to worry about that, then i'm about 80% done :) |
| [16:31:22] |
<bwolfe> |
you don't have to worry about that |
| [16:31:40] |
<bwolfe> |
you have two use cases: |
| [16:32:31] |
<bwolfe> |
1) admin has 5 things they need to collect on a patient: weight, favorite color, last program enrollment |
| [16:32:51] |
<bwolfe> |
for that, the admin creates essentially a mini jsp page via groovy controller |
| [16:32:58] |
<bwolfe> |
2) the user fills out the form for a patient |
| [16:33:06] |
<bwolfe> |
I think thats it |
| [16:33:21] |
<bwolfe> |
your module does essentially what the infopath module does |
| [16:33:26] |
<bwolfe> |
except without infopath |
| [16:33:36] |
<bwolfe> |
(and a bit simpler too) |
| [16:34:56] |
<bwolfe> |
done, go, you talk r0bby |
| [16:46:51] |
*** |
bwolfe has quit IRC |
| [17:22:19] |
*** |
atomicturtle has quit IRC |
| [17:26:55] |
*** |
bmckown has quit IRC |
| [18:48:00] |
*** |
nribeka has joined #openmrs |
| [19:05:55] |
<r0bby> |
I'd rather code than do calc :< |
| [19:06:32] |
<r0bby> |
nribeka: do my hw |
| [19:06:37] |
<r0bby> |
\or teach me calc |
| [19:06:44] |
<r0bby> |
one or the other |
| [19:06:51] |
* |
r0bby cracks ze whip |
| [19:06:54] |
<nribeka> |
calc rob? |
| [19:07:00] |
<nribeka> |
calculus? |
| [19:07:02] |
<nribeka> |
lol ... |
| [19:07:02] |
<nribeka> |
:D |
| [19:07:06] |
<nribeka> |
have fun with it rob |
| [19:07:07] |
<nribeka> |
:D |
| [19:26:54] |
<r0bby> |
machine gun commit complete |
| [19:27:18] |
<r0bby> |
ew they took away "Rename to Groovy" |
| [19:42:07] |
*** |
Keelhaul has joined #openmrs |
| [19:42:07] |
*** |
ChanServ sets mode: +v Keelhaul |
| [20:04:17] |
*** |
bwolfe has joined #openmrs |
| [20:04:17] |
*** |
ChanServ sets mode: +o bwolfe |
| [20:34:48] |
<Keelhaul> |
bwolfe: is there a calendar widget where you can also set the time? |
| [20:35:02] |
<bwolfe> |
Keelhaul: I think dojo might have one |
| [20:36:19] |
<Keelhaul> |
hmm there's a TimePicker.js |
| [20:49:10] |
*** |
atomicturtle has joined #openmrs |
| [21:00:24] |
<Keelhaul> |
http://rafb.net/p/aqlqt597.html |
| [21:00:46] |
<Keelhaul> |
bwolfe: i have an obs added by a user who is also a patient, with limited access |
| [21:01:12] |
<Keelhaul> |
and when i try to load that obs from the db, it says bad argument when calling the setter |
| [21:01:23] |
<Keelhaul> |
looks like it cant load the user properly |
| [21:01:33] |
<bwolfe> |
Keelhaul: right...thats a bug I can't squash |
| [21:01:38] |
<bwolfe> |
theres a ticket somewhere for it |
| [21:01:41] |
<Keelhaul> |
oh |
| [21:01:48] |
<bwolfe> |
but if you load it as a patient, you can't load it later as a user |
| [21:02:00] |
<bwolfe> |
you can use them separately in 2 transactions... |
| [21:02:05] |
<bwolfe> |
just not in the same one |
| [21:02:44] |
<Keelhaul> |
doesnt a transaction end when the user is logged off |
| [21:03:06] |
<bwolfe> |
when the page load is done |
| [21:03:44] |
<Keelhaul> |
then there shouldnt be any conflicts =o |
| [21:04:14] |
<Keelhaul> |
if i use a db tool to manually change the creator, it loads fine |
| [21:20:32] |
*** |
sprasanna has quit IRC |
| [21:26:53] |
*** |
upul has joined #openmrs |
| [21:27:02] |
*** |
sprasanna has joined #openmrs |
| [21:28:12] |
<sprasanna> |
bwolfe: Ben you still there? its almost 12 in the night there i guess |
| [21:28:34] |
<bwolfe> |
only 1039 |
| [21:28:37] |
<bwolfe> |
err |
| [21:28:38] |
<bwolfe> |
1029 |
| [21:29:28] |
<sprasanna> |
bwolfe: you are still in office though |
| [21:30:17] |
<bwolfe> |
nope, at home |
| [21:31:48] |
<sprasanna> |
bwolfe: oh great |
| [21:33:53] |
<sprasanna> |
bwolfe: yestereday i told you na that my object is not getting updated here is the trace i got now http://pastebin.com/d500e5e14 |
| [21:34:32] |
<sprasanna> |
sessionFactory.getCurrentSession().beginTransaction(); |
| [21:34:33] |
<sprasanna> |
sessionFactory.getCurrentSession().update(pa); |
| [21:34:33] |
<sprasanna> |
sessionFactory.getCurrentSession().getTransaction().commit(); |
| [21:34:51] |
<sprasanna> |
this is code actually i have for that object to update |
| [21:35:00] |
<sprasanna> |
i couldnt figure out the problem |
| [21:52:26] |
<bwolfe> |
sprasanna: did you put the @Transactional annotation on your service interface ? |
| [21:52:34] |
<sprasanna> |
yeah i did bw |
| [21:52:38] |
<sprasanna> |
*bwolfe |
| [21:54:36] |
<bwolfe> |
sprasanna: I haven't seen that error before...not really sure whats causing it |
| [21:55:42] |
<sprasanna> |
bwolfe: oh... what are the other ways to update a table via hql? if i have that mapping file for PersonAddress table i get nested exception error... do you have any suggestions? |
| [21:56:40] |
<bwolfe> |
sprasanna: you should be using the parent person save object. :-) |
| [21:56:53] |
<bwolfe> |
sprasanna: I'd rather spend the time debugging why you can't save with the parent object |
| [21:57:16] |
<sprasanna> |
bwolfe: i tried a lot almost spent a day :( |
| [21:57:44] |
<sprasanna> |
but then still its grabbing values from only one portlet window :( |
| [21:57:51] |
<bwolfe> |
sprasanna: well, after half a day you should come to irc and see if there is an answer. :-) |
| [21:58:11] |
<bwolfe> |
commit what you have and I can take a look at it |
| [21:58:19] |
<sprasanna> |
yeah i will do that |
| [22:00:16] |
<Keelhaul> |
D= |
| [22:00:18] |
<Keelhaul> |
i fail so ahrd |
| [22:00:47] |
<Keelhaul> |
can anyone teach me how to load javascripts that come with a module? |
| [22:00:56] |
<Keelhaul> |
<openmrs:htmlInclude file="/module/medicalproblem/resources/datetimepicker.js" /> |
| [22:00:57] |
<Keelhaul> |
i tried this |
| [22:01:57] |
<bwolfe> |
Keelhaul: see moduleResources wiki page |
| [22:02:04] |
<Keelhaul> |
ok |
| [22:02:26] |
<Keelhaul> |
whats the OpenMRSBot command for wiki pages |
| [22:02:38] |
<bwolfe> |
hmm |
| [22:02:41] |
<bwolfe> |
not sure |
| [22:02:43] |
<bwolfe> |
!wiki |
| [22:02:43] |
<OpenMRSBot> |
bwolfe: Error: "wiki" is not a valid command. |
| [22:02:50] |
<bwolfe> |
!moduleResources |
| [22:02:50] |
<OpenMRSBot> |
bwolfe: Error: "moduleResources" is not a valid command. |
| [22:02:59] |
<bwolfe> |
!openmrs |
| [22:02:59] |
<OpenMRSBot> |
bwolfe: OpenMRS Forum: Re: Implementing OpenMRS for gathering records via hand-helds <http://forum.openmrs.org/viewtopic.php?f=11&t=394#p1364> || Burke Mamlin: OpenMRS Test-a-Thon <http://blog.burkeware.com/archives/31> || OpenMRS Tickets: Ticket #979 (enhancement created): MRNgen user privileges <http://dev.openmrs.org/ticket/979> || OpenMRS Tickets: Ticket #976 (task closed): Create test dataset (4 more messages) |
| [22:03:14] |
<bwolfe> |
!module |
| [22:03:14] |
<OpenMRSBot> |
bwolfe: Error: "module" is not a valid command. |
| [22:03:16] |
<bwolfe> |
!modules |
| [22:03:16] |
<OpenMRSBot> |
bwolfe: "modules" --- http://openmrs.org/wiki/Modules |
| [22:03:22] |
<Keelhaul> |
ooh |
| [22:03:29] |
<Keelhaul> |
moduleRecourse/medicalproblem |
| [22:03:35] |
<Keelhaul> |
err |
| [22:03:38] |
<Keelhaul> |
Resources |
| [22:03:45] |
<Keelhaul> |
why did i type recourse.. |
| [22:30:34] |
*** |
bwolfe has quit IRC |