IRC Chat : 2011-06-12 - OpenMRS

03:26:41 *** dkayiwa has joined #openmrs
04:15:14 *** bwolfe has joined #openmrs
04:15:14 *** ChanServ sets mode: +o bwolfe
04:28:24 *** bwolfe has quit IRC
04:28:47 *** dkayiwa has quit IRC
04:58:45 *** morristic has quit IRC
05:23:37 *** morristic has joined #openmrs
05:28:39 *** morristic has quit IRC
05:32:42 *** gbastien has quit IRC
06:16:42 *** way has joined #openmrs
06:36:29 *** djazayeri has joined #openmrs
06:36:29 *** ChanServ sets mode: +o djazayeri
06:36:55 *** djazayeri has left #openmrs
06:46:52 *** morristic has joined #openmrs
07:06:52 *** way has quit IRC
07:19:05 *** bryq has joined #openmrs
07:19:05 *** ChanServ sets mode: +v bryq
07:24:11 *** gauravpaliwal has joined #openmrs
07:24:11 *** ChanServ sets mode: +v gauravpaliwal
07:37:54 *** bryq has quit IRC
07:37:55 *** gauravpaliwal has quit IRC
07:37:59 *** Echidna has quit IRC
07:37:59 *** morristic has quit IRC
07:38:03 *** pascal` has quit IRC
07:38:03 *** robbyoconnor has quit IRC
07:42:24 *** r0bby has joined #openmrs
07:42:24 *** ChanServ sets mode: +v r0bby
07:43:09 *** Echidna has joined #openmrs
07:43:09 *** zelazny.freenode.net sets mode: +v Echidna
07:43:17 *** gauravpaliwal has joined #openmrs
07:43:17 *** zelazny.freenode.net sets mode: +v gauravpaliwal
07:44:09 *** morristic has joined #openmrs
07:44:33 *** gauravpaliwal has quit IRC
07:44:39 *** Echidna has quit IRC
07:45:30 *** r0bby is now known as robbyoconnor
07:45:42 *** pascal` has joined #openmrs
07:49:39 *** gauravpaliwal has joined #openmrs
07:49:39 *** zelazny.freenode.net sets mode: +v gauravpaliwal
07:50:20 *** Echidna has joined #openmrs
07:50:20 *** zelazny.freenode.net sets mode: +v Echidna
07:52:51 *** rafa has joined #openmrs
07:52:51 *** ChanServ sets mode: +v rafa
08:01:01 *** rafa has quit IRC
09:15:30 *** muthah has joined #openmrs
09:32:44 *** gauravpaliwal has left #openmrs
09:49:28 *** dkayiwa has joined #openmrs
10:03:36 *** ChanServ sets mode: +v pascal`
10:51:26 *** bwolfe has joined #openmrs
10:51:26 *** ChanServ sets mode: +o bwolfe
11:12:36 *** morristic has quit IRC
11:12:48 *** rafa has joined #openmrs
11:12:48 *** ChanServ sets mode: +v rafa
11:19:22 *** bwolfe has quit IRC
11:19:25 *** bwolfe_ has joined #openmrs
11:19:34 *** ChanServ sets mode: +o bwolfe_
11:20:17 *** bwolfe_ has quit IRC
11:20:27 *** bwolfe_ has joined #openmrs
11:20:27 *** ChanServ sets mode: +o bwolfe_
12:16:40 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (localize-setup-wizard): TRUNK-2055 : added translation for adminsetup and otherruntimeproperties pages <http://feedproxy.google.com/~r/OMRStrunk/~3/TfCg_bkvjIM/OpenMRS>
12:24:32 *** dkayiwa has quit IRC
12:36:43 <pascal`> !karma bwolfe_
12:36:43 <OpenMRSBot> pascal`: Karma for "bwolfe_" has been increased 1 time and decreased 1 time for a total karma of 0.
12:54:45 *** suho has joined #openmrs
12:54:45 *** ChanServ sets mode: +v suho
13:04:02 <suho> hi anyone know how to dynamically add <openmrs_tag:conceptField formFieldName="concept" formFieldId="conceptId" onSelectFunction="onConceptSelect" />
13:04:11 <suho> through JS
13:04:25 *** rafa has quit IRC
13:05:10 *** jwishnie has joined #openmrs
13:08:50 *** mandric has joined #openmrs
13:11:08 <pascal`> I'm not sure that's possible
13:11:41 <pascal`> bwolfe_ will have to confirm that though
13:12:18 <pascal`> suho, how about adding it statically, but making it hidden, and then using JS to unhide it if/when necessary?
13:12:34 <pascal`> that might not suit your exact use case though
13:13:07 <suho> yes that wont suit my usecase
13:13:40 <suho> i need multiple of these boxes and they should appear when a button is clicked
13:13:50 <pascal`> The thing is, that tag need to be processed server-side (afaik) in order for the correct HTML to be rendered
13:14:21 <pascal`> ah ok, well, you can clone DOM elements, so you might be able to do it that way
13:14:36 <suho> i even tried to clone the node but didnt workout
13:14:47 <pascal`> you'll just need to manually set the id's of the right form fields though
13:14:55 <pascal`> oh, what happened when you tried to clone?
13:15:11 <suho> i the dropdown is not appearing
13:15:28 <pascal`> you mean the search results pane?
13:15:34 <suho> yes
13:15:47 <pascal`> if might be something to do with id's
13:15:57 <suho> i think so
13:16:07 <pascal`> this isn't really an intended use of that widget
13:16:16 <pascal`> check the error console, there might be some info there
13:16:31 <pascal`> or even in the tomcat logs if the search is just failing for some reason
13:18:25 <suho> it says the autocomplete is null
13:18:38 <suho> (the error console)
13:19:41 <pascal`> well, you'll have to look into exactly what the rendered code does
13:20:08 <pascal`> it'll use javascript to call some DWR method and then populate that results pane
13:20:32 <pascal`> take a look at the flow of the one that works (noting all the id's)
13:20:43 <pascal`> and then check the one that doesn't work and see if you can spot the problem
13:22:42 <suho> yes
13:22:58 <suho> when I'm typing in the input field
13:23:59 <suho> in the original one the class changes from ui-autocomplete-input to ui-autocomplete-input,ui-autocomplete-loading
13:24:29 <suho> but in the cloned one no changes happening
13:24:56 <pascal`> ok, so, based on the error you told me, and this code: https://source.openmrs.org/browse/~br=improved-person-attribute-type/OpenMRS/branches/improved-person-attribute-type/webapp/src/main/webapp/WEB-INF/tags/conceptField.tag?r=20571
13:25:01 <OpenMRSBot> <http://ln-s.net/8u4W> (at source.openmrs.org)
13:25:14 <pascal`> if you look at the code after: // set up the autocomplete
13:25:25 <pascal`> it must be creating a null object there somewhere, right?
13:25:47 <suho> Is there any other way to dynamically add concepts
13:25:47 <suho> ?
13:26:22 <pascal`> Why not take a look a the code to create a new concept?
13:26:40 <pascal`> Specifically, when you create a concept set, you're able to add a bunch of concepts to that set
13:26:47 <pascal`> Maybe there will be some useful code there?
13:29:02 <suho> you mean not use the "openmrs_tag:conceptField " itself but try to rewrite that acceding to my usecase ?
13:29:37 <pascal`> I think you should be able to get the tag working
13:30:17 <pascal`> I'd think that it would be best to try and override the callback, so you only have one search widget, but you'd use it multiple times
13:30:33 <pascal`> I just can't think of a page in OpenMRS where there are multiple search widgets on a single page
13:31:04 <suho> yes i too searched there is none
13:31:46 <pascal`> Or you could try and have multiple buttons that just open the same search widget
13:31:51 <pascal`> or some other work around like that
13:31:53 <pascal`> not sure
13:32:58 <suho> yes i think that's possible
13:35:57 <suho> there were also some dojo code to make that happen but, when i try that it also did not work
13:37:08 <suho> have to look into it bit more
13:38:26 <suho> pascal`, Thanks for the help
13:39:33 <pascal`> np, good luck
13:42:22 *** bryq has joined #openmrs
13:42:22 *** ChanServ sets mode: +v bryq
13:43:39 <suho> pascal`, thanks :)
13:51:24 *** rafa has joined #openmrs
13:51:24 *** ChanServ sets mode: +v rafa
14:17:01 *** suho has quit IRC
14:17:31 *** suho has joined #openmrs
14:17:31 *** ChanServ sets mode: +v suho
14:17:41 *** gbastien has joined #openmrs
14:23:56 *** suho has quit IRC
14:30:08 *** suho has joined #openmrs
14:30:08 *** ChanServ sets mode: +v suho
14:34:19 *** muthah has quit IRC
14:35:36 *** muthah has joined #openmrs
14:41:25 *** mandric has quit IRC
14:47:29 *** jwishnie has quit IRC
14:48:25 *** pascal` has quit IRC
14:57:43 *** suho has quit IRC
14:59:48 *** suho has joined #openmrs
14:59:48 *** ChanServ sets mode: +v suho
15:00:33 *** pascal` has joined #openmrs
15:25:56 *** muthah has quit IRC
15:33:49 *** dkayiwa has joined #openmrs
15:40:46 *** dkayiwa has left #openmrs
15:56:16 *** dlawson has joined #openmrs
15:56:16 *** ChanServ sets mode: +v dlawson
15:56:23 *** dlawson has quit IRC
16:27:05 *** Suranga has joined #openmrs
16:42:58 *** dkayiwa has joined #openmrs
16:44:22 *** dkayiwa has left #openmrs
17:12:30 *** gbastien has quit IRC
17:27:04 *** rafa has quit IRC
17:31:59 *** batkinson has joined #openmrs
17:43:40 *** gbastien has joined #openmrs
17:47:11 *** batkinson has quit IRC
18:11:24 *** dkayiwa has joined #openmrs
18:23:29 *** pascal` has quit IRC
18:35:31 *** pascal` has joined #openmrs
18:53:26 *** Suranga has quit IRC
19:07:13 <OpenMRSBot> Recent updates in the world of openmrs: On Twitter: OpenMRS: Help wanted! RT @dovidbendavid: Reviewing demo of OpenMRS. Visualizing use in rural and emerging country clinics. Needs UI help. <http://twitter.com/OpenMRS/statuses/79984892406005760>
19:32:52 *** pascal` has quit IRC
19:39:15 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (localize-setup-wizard): TRUNK-2055 : added feature for localization error messages for both wizards <http://feedproxy.google.com/~r/OMRStrunk/~3/lNVl6FfDL3g/OpenMRS>
19:45:39 *** pascal` has joined #openmrs
19:45:54 *** dkayiwa has quit IRC
20:45:17 <OpenMRSBot> Recent updates in the world of openmrs: New Changeset: OpenMRS (trunk): Formatting code from rev 20639 <http://feedproxy.google.com/~r/OMRStrunk/~3/yqgrO8icTV8/OpenMRS> || New Changeset: OpenMRS (trunk): Ignore failing test, as it works well as single, but other tests create different lib-cache <http://feedproxy.google.com/~r/OMRStrunk/~3/t0Pks-KUXEY/OpenMRS> || New Changeset: OpenMRS (trunk): TRUNK-2344 : upgrading Spring framework to 3.0.5 <http://feedproxy.google.com/~r/OMRStrunk/~3/ozX6dh4EY9s/OpenMRS>
21:11:55 *** bryq has quit IRC
21:15:29 *** asgoyal has joined #openmrs
21:16:22 <asgoyal> hello
21:16:34 <asgoyal> Can anyone help me solve a problem with selenium testing?
21:33:48 *** bwolfe_ has quit IRC
21:41:31 *** gbastien has quit IRC
21:51:21 *** gbastien has joined #openmrs
22:09:16 *** suho has quit IRC
22:19:22 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Unit test excepion <http://forum.openmrs.org/viewtopic.php?f=8&t=783#p2960>
22:21:51 *** suho has joined #openmrs
22:21:51 *** ChanServ sets mode: +v suho
22:52:33 *** suho has quit IRC
23:03:33 *** Mokurai has joined #openmrs
23:42:41 *** morristic has joined #openmrs