Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note that this page refers to a Google Summer of Code project that has not been incorporated into the main Html Form Entry line--so this feature is not currently avaiable.  Please see the Html Form Entry reference guide to for the list of currently available tags: HTML Form Entry Module HTML Reference

For details about this project, see: 

Jira Legacy
serverOpenMRS JIRA
serverId45c5771b-fa4b-3e43-b34a-c19dc45ccc95
keyHTML-50

(This is an enhancement to the HTML FormEntry.You would have to be a familiar with the implementation and functionality of HTML FormEntry to understand the "How did i do" section's)

...

As the heading of this page suggests, we are having two different tags.

(i) Dynamic Autocomplete Widget.

...

Though both are providing similar functionality, they have different applications.

...

1.Dynamic Autocomplete Widget

...

Wiki Markup
{mockup:Code Transistion|6}

Panel

You can try out the following code(go to administration->manage HTML forms->New HTML form->(give some example data) and save-> just select the whole code below and paste it in the text area provided in the page )  For Dynamic Autocomplete Functionality:

...

  • While rendering the View/Edit mode i need to replicate the xml in the <dynamicRepeat></dynamicRepeat> so to know the number of times to replicate the xml  session.getContext().getExistingObsInGroupsCount();  in HtmlFormEntryGenerator is being used. It gets the count of the existing obsGroups in the Context and this is used as the count as mentioned earlier.Even this is not perfect in the case where there are more obsGroups than the one's stored by dynamicRepeat tag handler the xml would be repeated even for them.

Possible solution: If there is dynamic Repeat table created in the database where we can store each dynamicRepeat as an entry and for that entry we can store the stored obs id's. We will know the count and we will be able to differentiate between one dynamicRepeat and other. Then dynamicRepeat would be working for any tag in it.