IRC Chat : 2013-09-08 - OpenMRS

00:24:03 *** NameFILIP has joined #openmrs
00:24:03 *** ChanServ sets mode: +v NameFILIP
00:32:39 *** NameFILIP has quit IRC
01:09:02 *** DraggonZ has quit IRC
01:29:03 *** NameFILIP has joined #openmrs
01:29:03 *** ChanServ sets mode: +v NameFILIP
01:34:04 *** NameFILIP has quit IRC
02:30:04 *** NameFILIP has joined #openmrs
02:30:04 *** ChanServ sets mode: +v NameFILIP
02:34:35 *** NameFILIP has quit IRC
02:48:37 *** harsz89 has joined #openmrs
02:48:37 *** ChanServ sets mode: +v harsz89
03:30:46 *** NameFILIP has joined #openmrs
03:30:46 *** ChanServ sets mode: +v NameFILIP
03:35:37 *** NameFILIP has quit IRC
03:46:44 *** harshadura has joined #openmrs
03:46:44 *** ChanServ sets mode: +v harshadura
04:31:16 *** NameFILIP has joined #openmrs
04:31:17 *** ChanServ sets mode: +v NameFILIP
04:35:47 *** NameFILIP has quit IRC
04:55:28 *** bhashitha has joined #openmrs
05:31:45 *** NameFILIP has joined #openmrs
05:31:45 *** ChanServ sets mode: +v NameFILIP
05:36:28 *** NameFILIP has quit IRC
06:23:44 *** harshadura has quit IRC
06:36:29 *** harshadura has joined #openmrs
06:36:29 *** ChanServ sets mode: +v harshadura
07:02:03 *** NameFILIP has joined #openmrs
07:02:04 *** ChanServ sets mode: +v NameFILIP
07:06:31 *** NameFILIP has quit IRC
07:47:52 *** k-joseph has joined #openmrs
08:02:52 *** NameFILIP has joined #openmrs
08:02:52 *** ChanServ sets mode: +v NameFILIP
08:03:57 *** dkayiwa has joined #openmrs
08:07:40 *** NameFILIP has quit IRC
08:16:30 *** k-joseph has quit IRC
08:19:46 *** k-joseph has joined #openmrs
08:25:52 *** dkayiwa_ has joined #openmrs
08:28:40 *** dkayiwa has quit IRC
08:28:41 *** dkayiwa_ is now known as dkayiwa
08:37:28 *** k-joseph has quit IRC
08:44:10 *** dkayiwa has quit IRC
08:46:43 *** davidpardz has quit IRC
09:03:22 *** NameFILIP has joined #openmrs
09:03:22 *** ChanServ sets mode: +v NameFILIP
09:07:52 *** NameFILIP has quit IRC
09:30:28 *** harshadura has quit IRC
09:30:45 *** nribeka has quit IRC
10:03:52 *** NameFILIP has joined #openmrs
10:03:52 *** ChanServ sets mode: +v NameFILIP
10:04:29 *** NameFILI_ has joined #openmrs
10:04:29 *** NameFILIP has quit IRC
10:25:50 *** harshadura has joined #openmrs
10:25:50 *** ChanServ sets mode: +v harshadura
10:48:49 *** k-joseph has joined #openmrs
11:31:12 *** nribeka has joined #openmrs
11:31:12 *** ChanServ sets mode: +v nribeka
12:12:00 *** NameFILI_ has quit IRC
12:41:19 *** harsz89 has quit IRC
12:45:05 *** bhashitha has quit IRC
12:53:36 *** harsz89 has joined #openmrs
12:53:37 *** ChanServ sets mode: +v harsz89
13:16:49 *** k-joseph has quit IRC
13:18:48 *** k-joseph has joined #openmrs
13:22:09 *** bhashitha has joined #openmrs
13:22:25 *** NameFILIP has joined #openmrs
13:22:25 *** ChanServ sets mode: +v NameFILIP
13:22:26 *** bhashitha has quit IRC
13:22:26 *** bhashitha has joined #openmrs
13:26:40 *** NameFILIP has quit IRC
13:28:01 *** NameFILIP has joined #openmrs
13:28:01 *** ChanServ sets mode: +v NameFILIP
13:30:23 *** k-joseph has quit IRC
14:20:15 *** davidpardz has joined #openmrs
14:20:15 *** ChanServ sets mode: +v davidpardz
14:36:53 *** mareias has joined #openmrs
14:41:19 *** mareias has quit IRC
14:43:56 <harshadura> hi rafa can i get a min ?
14:44:08 *** mareias has joined #openmrs
14:54:22 *** LeeBreisacher1 has joined #openmrs
14:54:35 *** LeeBreisacher1 has left #openmrs
15:11:08 *** NameFILIP has quit IRC
15:13:26 *** NameFILIP has joined #openmrs
15:13:26 *** ChanServ sets mode: +v NameFILIP
15:30:51 *** harsz89 has quit IRC
15:31:49 *** LeeBreisacher1 has joined #openmrs
16:05:29 *** dkayiwa has joined #openmrs
16:24:12 *** harshadura has quit IRC
16:35:35 *** wyclif has joined #openmrs
16:36:05 *** harshadura has joined #openmrs
16:36:06 *** ChanServ sets mode: +v harshadura
16:36:56 *** harsz89 has joined #openmrs
16:36:56 *** ChanServ sets mode: +v harsz89
16:40:33 *** wyclif has quit IRC
16:40:53 *** wyclif has joined #openmrs
16:49:16 *** NameFILI_ has joined #openmrs
16:49:16 *** NameFILIP has quit IRC
16:55:55 *** NameFILIP has joined #openmrs
16:55:55 *** ChanServ sets mode: +v NameFILIP
16:55:55 *** NameFILI_ has quit IRC
16:58:27 *** NameFILI_ has joined #openmrs
16:58:29 *** NameFILIP has quit IRC
17:06:34 *** k-joseph has joined #openmrs
17:13:47 *** NameFILI_ has quit IRC
17:15:03 *** NameFILI_ has joined #openmrs
17:31:40 *** dkayiwa has quit IRC
17:35:27 *** dkayiwa has joined #openmrs
17:39:45 *** dkayiwa has quit IRC
17:47:06 <k-joseph> wyclif: hi
17:52:13 *** dkayiwa has joined #openmrs
18:04:02 <harshadura> hi dkayiwa
18:04:07 <dkayiwa> harshadura: hi
18:04:56 <harshadura> dkayiwa: is there a way to prevent xforms module;s alert message after a successful save :)
18:05:51 <harshadura> dkayiwa: the issue is since i hv embedded xforms module in my module it crashes the flow of other elements submission
18:05:58 <dkayiwa> harshadura: oh yes :)
18:06:10 <harshadura> how to do it dkayiwa xD
18:07:00 <dkayiwa> harshadura: xforms.showSubmitSuccessMsg = false :)
18:07:20 <harshadura> is it a global property dkayiwa
18:07:29 <dkayiwa> harshadura: oh ues
18:07:31 <dkayiwa> yes
18:07:42 <harshadura> dkayiwa, thats great xD
18:08:14 <harshadura> dkayiwa: is there a way to submit the form through ajax ?
18:08:24 <harshadura> i mean without refreshing the form at the end
18:09:24 <dkayiwa> harshadura: create a ticket and i will do it for you :)
18:09:39 <harshadura> really dkayiwa xD
18:17:00 <harshadura> dkayiwa: i created a ticket :)
18:17:11 <harshadura> https://tickets.openmrs.org/browse/XFRM-165
18:17:11 <dkayiwa> harshadura: which number?
18:17:34 <harshadura> !ticket XFRM-165
18:17:35 <OpenMRSBot> harshadura: [#XFRM-165] Xforms submissions via Ajax - OpenMRS JIRA - https://tickets.openmrs.org/browse/XFRM-165
18:17:38 <harshadura> :)
18:19:01 <dkayiwa> harshadura: can you look at? https://wiki.openmrs.org/display/docs/XForms+Module+Form+Designer
18:19:02 <OpenMRSBot> <http://ln-s.net/90$F> (at wiki.openmrs.org)
18:19:13 <dkayiwa> harshadura: under: JavaScript Tab
18:19:29 <harshadura> yes dkayiwa
18:19:33 *** bhashitha has quit IRC
18:19:57 <dkayiwa> harshadura: can you try calling submitForm() ?
18:20:05 <dkayiwa> harshadura: and see if it will refresh?
18:20:21 <harshadura> i currently do in that manner dkayiwa, it does refresh :(
18:20:48 <dkayiwa> harshadura: do you want it stay at the same page?
18:21:01 <harshadura> yes dkayiwa, the same page
18:21:30 <dkayiwa> harshadura: whats your value for? afterSubmitUrlSuffix
18:21:59 <harshadura> dkayiwa: model.put("afterSubmitUrlSuffix", "module/patientnarratives/patientNarrativesForm.form?");
18:22:00 <harshadura>
18:22:18 <dkayiwa> harshadura: is that the same page on which the form loads?
18:22:24 <harshadura> dkayiwa: its the same page
18:22:26 <harshadura> yes
18:22:38 <dkayiwa> harshadura: so it refreshed and just returns to the same page?
18:22:47 <harshadura> yes dkayiwa
18:23:15 <harshadura> dkayiwa: here's a demo :) http://54.235.163.128:8080/openmrs/
18:23:33 <dkayiwa> harshadura: ok :)
18:23:47 <harshadura> dkayiwa: pls click on the Patient Narratives button and then u will see the form
18:23:55 <dkayiwa> harshadura: ok
18:25:01 <dkayiwa> harshadura: so you want it submit and still have the form stay displayed?
18:25:12 <harshadura> yes dkayiwa
18:28:47 *** NameFILI_ has quit IRC
18:35:34 <dkayiwa> harshadura: can you test the module i have attached on the ticket?
18:35:50 <harshadura> ok dkayiwa, thank you :)
18:36:04 <dkayiwa> harshadura: only if it works :)
18:39:28 <harshadura> dkayiwa: do i need to completely remove the afterSubmitUrlSuffix line ?
18:39:37 <dkayiwa> harshadura: yes
18:39:43 <harshadura> ok dkayiwa
18:44:26 <harshadura> dkayiwa: its still getting refreshed :/
18:45:42 <dkayiwa> harshadura: did you update the module?
18:46:25 <harshadura> yes dkayiwa
18:46:45 <dkayiwa> harshadura: what page does it go to?
18:47:13 <harshadura> dkayiwa: http://localhost:8088/openmrs/nullpatientId=2
18:47:31 <harshadura> dkayiwa: its Error 404 page
18:47:46 <dkayiwa> harshadura: ensure that you do not have js caching issues :)
18:48:20 <harshadura> dkayiwa: ok i will clear everything and try again
18:50:14 <harshadura> dkayiwa: it works after clearing the cache, thank you very much :)
18:50:53 <dkayiwa> harshadura: what happens if the user submits very many times? you must get duplicates :)
18:51:22 <harshadura> no i will handle it dkayiwa :)
18:51:29 <dkayiwa> harshadura: :)
18:51:54 <harshadura> dkayiwa: do you hv any idea how to do the same for html forms ?
18:52:09 <dkayiwa> harshadura: does it also refresh?
18:52:17 <harshadura> yes dkayiwa
18:52:42 <dkayiwa> harshadura: i have no idea. dev list seem to be the option for now :)
18:53:25 <harshadura> its ok, thank you dkayiwa :)
18:55:25 <dkayiwa> harshadura: do not fear to come with more feature requests for the xforms module :)
18:55:43 <harshadura> dkayiwa: surely xD
19:09:15 *** harsz89 has quit IRC
19:10:17 <harshadura> dkayiwa, u still there
19:10:35 <harshadura> i hv a very lil issue :)
19:10:39 *** mareias has quit IRC
19:11:10 <dkayiwa> harshadura: let me check :)
19:11:58 *** mareias has joined #openmrs
19:12:01 <dkayiwa> harshadura: which one
19:12:38 <harshadura> dkayiwa: can u navigate here: http://54.235.163.128:8080/openmrs/module/patientnarratives/fullNarrativeForm.form?encounterId=9
19:12:43 <OpenMRSBot> <http://ln-s.net/-vrx> (at 54.235.163.128:8080)
19:12:47 <harshadura> and submit a comment.
19:13:20 <harshadura> the comments is getting saved, but the Alert message isnt displaying, but when i refresh the page it shows
19:13:24 <harshadura> dkayiwa: why is that
19:13:59 <dkayiwa> harshadura: which alert
19:14:07 <harshadura> dkayiwa: i am using, request.getSession().setAttribute(WebConstants.OPENMRS_MSG_ATTR, "patientnarratives.module.settings.alert");
19:14:07 <harshadura>
19:14:25 <harshadura> dkayiwa: to alert ^^
19:14:30 <harshadura> request.getSession().setAttribute(WebConstants.OPENMRS_MSG_ATTR, "patientnarratives.module.settings.alert");
19:14:56 <dkayiwa> harshadura: i do not see the alert
19:15:48 <harshadura> dkayiwa: can u refresh the page
19:15:57 <dkayiwa> harshadura: i refreshed
19:15:57 <harshadura> you will see soon after that..
19:16:15 *** NameFILIP has joined #openmrs
19:16:15 *** ChanServ sets mode: +v NameFILIP
19:16:23 <harshadura> dkayiwa, didn;t u added a comment first ?
19:16:34 <dkayiwa> harshadura: i first added a commeit
19:16:45 <dkayiwa> harshadura: are you submitting by ajax?
19:17:07 <harshadura> no dkayiwa this isnt related to ajax xD
19:17:29 <dkayiwa> harshadura: i do not even see the alert even after refreshing
19:17:35 <harshadura> this is another lil issue, all things work properly but the message isnt display at the ryt time
19:18:19 <harshadura> dkayiwa: i mean by alert is : http://awesomescreenshot.com/0661owpd80
19:19:58 <dkayiwa> harshadura: i do not see it even after refreshing (immediately after having submitted a comment)
19:20:41 <harshadura> dkayiwa: thats weired
19:22:40 <harshadura> dkayiwa: why it happens like that, i mean why it doesnt shown on top of the JSP immediately after form submission ?
19:24:21 <harshadura> dkayiwa: here's the line of that code: https://github.com/harshadura/openmrs-module-patientnarratives/blob/master/omod/src/main/java/org/openmrs/module/patientnarratives/web/controller/FullNarrativeFormController.java#L128
19:24:27 <OpenMRSBot> <http://ln-s.net/-vs-> (at github.com)
19:24:45 <harshadura> i am just doing : request.getSession().setAttribute(WebConstants.OPENMRS_MSG_ATTR, "patientnarratives.comment.added");
19:31:48 <dkayiwa> harshadura: are you submitting via ajax?
19:32:25 <harshadura> no dkayiwa
19:32:51 <harshadura> dkayiwa: its in just normal form submit
19:32:55 <dkayiwa> harshadura: can you run it in debug mode and see how many times the controller is called after adding a comment?
19:33:07 <harshadura> ok dkayiwa
19:35:23 <harshadura> dkayiwa: i debugged, its one time
19:35:42 <dkayiwa> harshadura: check all where it branches
19:35:59 <dkayiwa> harshadura: i see a number of ifs there
19:36:21 <harshadura> ok dkayiwa
19:37:25 <harshadura> dkayiwa, its one time too
19:38:11 <harshadura> dkayiwa, no exceptions even
19:39:43 <dkayiwa> harshadura: strange
19:40:08 <harshadura> dkayiwa: :(
19:40:48 <harshadura> dkayiwa: but i can see the alert message right after form refresh :O
19:41:19 <dkayiwa> harshadura: strange indeed
19:42:20 <harshadura> then ok dkayiwa xD
19:42:33 <dkayiwa> harshadura: :)
19:44:40 <harshadura> dkayiwa: are there any alternative ways to alert the user inside openmrs framework
19:45:06 <dkayiwa> harshadura: am not aware of the alternatives
19:45:23 <harshadura> ok dkayiwa, thank you :)
19:45:44 <dkayiwa> harshadura: for nothing :)
19:45:59 <harshadura> xD
20:00:29 *** mareias has quit IRC
20:03:02 *** mareias has joined #openmrs
20:16:09 *** k-joseph has quit IRC
20:25:35 *** doverdose has quit IRC
20:47:55 *** mareias has quit IRC
20:55:14 *** mareias has joined #openmrs
21:10:20 *** mareias has quit IRC
21:14:19 *** djazayeri has joined #openmrs
21:14:19 *** ChanServ sets mode: +o djazayeri
21:17:01 *** NameFILIP has quit IRC
21:34:04 *** dkayiwa has quit IRC
21:49:47 *** harshadura has quit IRC
22:07:06 *** raoul- has quit IRC
22:07:07 *** davidpardz has quit IRC
22:07:08 *** nribeka has quit IRC
22:07:08 *** robbyoconnor has quit IRC
22:07:12 *** cpower has quit IRC
22:07:12 *** AdaYeung has quit IRC
22:07:12 *** ryates has quit IRC
22:07:15 *** burke has quit IRC
22:07:15 *** suranga has quit IRC
22:07:17 *** suranga__ has quit IRC
22:07:18 *** elly_ has quit IRC
22:07:18 *** lh has quit IRC
22:14:40 *** wyclif has quit IRC
22:18:36 *** suranga__ has joined #openmrs
22:18:36 *** elly_ has joined #openmrs
22:18:36 *** lh has joined #openmrs
22:18:39 *** davidpardz has joined #openmrs
22:18:39 *** nribeka has joined #openmrs
22:18:39 *** robbyoconnor has joined #openmrs
22:18:39 *** leguin.freenode.net sets mode: +vvv davidpardz nribeka robbyoconnor
22:19:32 *** burke has joined #openmrs
22:19:32 *** suranga has joined #openmrs
22:19:32 *** leguin.freenode.net sets mode: +o burke
22:19:37 *** cpower has joined #openmrs
22:19:37 *** AdaYeung has joined #openmrs
22:19:37 *** ryates has joined #openmrs
22:19:37 *** leguin.freenode.net sets mode: +vo cpower ryates
22:28:55 *** NameFILIP has joined #openmrs
22:28:55 *** ChanServ sets mode: +v NameFILIP
22:33:14 *** NameFILIP has quit IRC
23:29:41 *** NameFILIP has joined #openmrs
23:29:41 *** ChanServ sets mode: +v NameFILIP
23:34:06 *** NameFILIP has quit IRC
23:56:40 *** raoul- has joined #openmrs