Rajib, I’m not quite sure what the issue is… this should be working. You are allowed to have the same concept appear on a form multiple times. Can you test out with different concepts and see if you experience the same problem?
Mark From: Rajib Sengupta [mailto:[email protected]] Sent: Monday, February 27, 2012 3:35 PM To: Mark Goodrich Subject: Re: [OPENMRS-IMPLEMENTERS] [OPENMRS-DEV] HTMLForm entry with Addition button to create dynamic entry Thanks a lot Mark. I am trying out different Javascript - let's see if I be successfull. Meanwhile, after discussing with the doctor we are hardcoding the number of lines to 3 (also we are keeping it simple text , so that if the doctor's want they can put multiple medications in one line) : Here is what I am trying to do in the form - Current Medication ______________ Dosage _______________ Current Medication ______________ Dosage _______________ Current Medication ______________ Dosage _______________ But when I enter the HTML as following , it doesn't work as it seems the first row data is saved only while the other'sare not getting saved. <table id="tableId" border="1" cellpadding="0" cellspacing="0" width="50%"> <tr> <td><obs conceptId='8970' labelText='Current Medication' /></td> <td><obs conceptId='8976' labelText='Dosage' /></td> </tr> <tr> <td><obs conceptId='8970' labelText='Current Medication' /></td> <td><obs conceptId='8976' labelText='Dosage' /></td> </tr> <tr> <td><obs conceptId='8970' labelText='Current Medication' /></td> <td><obs conceptId='8976' labelText='Dosage' /></td> </tr> </table> It seems I need 3 different concepts to store the data. How else this can be solved? Can't we have a concept of list or something? When I solve the issue with the Javacript to create a row dynamically, I will require some way to store the data (basically a dynamically growing table) - but if that is not possible then my effort to create a Javascript will be of no use. Thanks, Rajib From: Mark Goodrich <[email protected]<mailto:[email protected]>> To: 'Rajib Sengupta' <[email protected]<mailto:[email protected]>> Sent: Monday, February 27, 2012 11:53 AM Subject: RE: [OPENMRS-IMPLEMENTERS] [OPENMRS-DEV] HTMLForm entry with Addition button to create dynamic entry Rajib— I don’t have know of any examples of such code right now… hopefully somebody will chime in with some examples for you. I did, however, move the ticket up to the 1.10 Html Form Entry release from the 1.11 release. Unfortunately, we don’t have a timeframe for the 1.10 release scheduled yet, but it will be the next non-bug fix release of the module after the 1.9 release, which should be out in the next couple of days. Mark From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Rajib Sengupta Sent: Sunday, February 26, 2012 11:33 PM To: [email protected]<mailto:[email protected]> Subject: Re: [OPENMRS-IMPLEMENTERS] [OPENMRS-DEV] HTMLForm entry with Addition button to create dynamic entry Hello All, We are short of experienced IT people and as such we are again reverting back to the group. Please let me know, as suggested by Darius, whether any one has example for such a javascript. Thanks for all the help Rajib From: Darius Jazayeri <[email protected]<mailto:[email protected]>> To: [email protected]<mailto:[email protected]> Sent: Sunday, February 26, 2012 1:05 PM Subject: Re: [OPENMRS-IMPLEMENTERS] [OPENMRS-DEV] HTMLForm entry with Addition button to create dynamic entry Hi Rajib, (copying dev and implementers to reply to your two emails at once) The workaround you can do right now is to do many (e.g. 10, 50, or however many you need to be "more than enough") and use javascript to do an add button which will reveal one more row. Several people have worked on this ticket over time, and nobody has yet managed to implement this in a non-hacky way. And nobody is working on it right now... -Darius On Sat, Feb 25, 2012 at 11:30 PM, Rajib Sengupta <[email protected]<mailto:[email protected]>> wrote: Hello Development Team, In our current implementation we are looking to use this feature extensivley I am trying to create a dynamic "repeat addition" in the HTMLFORM. I was trying the repeat and render tag , but that way it is not dynamic. Also, all the fields will show up multiple times during rendering of the form to the user making it a very large form (there are > 500 possibility of toxicity). Basically I am trying to do something similar to the "Add Identifier" or "Add Address" in the Patient Entry form under the Demographic tab. I am trying to do something like this: Section 4 : Add Toxicity TOXICITY _____________ TOXICITY LEVEL_________ DATE ____________ COMMENTS _______ [Button or link Add Toxicity] The user will fill up the first Toxicity. Then , when clicked on this Add button or linkthen it will be as following TOXICITY NAME _Dysphagia_____ TOXICITY LEVEL___3______ DATE __1/1/2011_____ COMMENTS _ TEST___ [REMOVE] TOXICITY NAME _____________ TOXICITY LEVEL_________ DATE ____________ COMMENTS _______ [Button Add Toxicity] I have found a ticket https://tickets.openmrs.org/browse/HTML-50 I will really like to know about this ticket and is there is any workaround available or not (such as using javascript) Thanks, Rajib Click here to unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l> from OpenMRS Developers' mailing list Click here to unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l> from OpenMRS Implementers' mailing list Click here to unsubscribe<mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l> from OpenMRS Implementers' mailing list

