On my system, this form has ID 7.
(I determine the form ID by going to Administration → Forms → Manage Forms. Then, I move my cursor over the form’s name and read the form ID listed in the URL for the link to the form at the bottom of my browser. I think this is correct. I know I am not supposed to use the HTML form ID, but the base form ID. This is my best guess as where I should find the base form ID)
to try to see if I could get the flowsheet module to work. You can see the form with the embedded form vitals_flowsheet.html.txt (4.4 KB)
However, when I load the HTML form with the embedded form, nothing shows up where the embedded form should be. Any help, or advice on how to get this basic example to work would be greatly appreciated.
Nothing stands out in what you include below as the obvious problem. Is
this something you can reproduce on one of the public demo servers and
someone can have a look at live?
I went to http://demo.openmrs.org, logged in, and then went to
http://demo.openmrs.org/openmrs/admin/index.htm to access the
administration page (the administration link is missing from the landing
page). I started to add my forms to see if they would work on this
server, but when I checked to see what modules were installed, I saw
that the “htmlformflowsheet” module was not available. The ability to
upload new modules to the site has been disabled, so I can’t try to
reproduce my problem on this public server. Is there another server I
could try?
Is the htmlformflowsheet module something that people are still actively
using, or is this an old idea that has been replaced by better methods
and is no longer under development (i.e. I shouldn’t use it for our site)?
We still use it at PIH in a number of our implementations, though it is
no longer under active development. It gets a very limited amount of
support, and I doubt any attempts have been made to ensure it works with
latest platform releases, as all of the PIH sites that use it are
running OpenMRS 1.9. I don’t know of any better methods that cover the
same use case that you could utilize without custom module development,
so if it meets your needs it is still worth considering, knowing that
support will be very limited.
That being said, if you can find a way to make your error case available
on a server somewhere that I can access I’m happy to have a look into it.
I added the HTML Form Flowsheet module and added the two forms I described in my original question above (Vital Sign Entry and Vitals Flowsheet). On this installation, at least something happens. An error is thrown:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
Could this be related to HFFS-37? Also, why does it throw the error on this server but not on mine?
I built the module from the latest source and that fixed the problem for me as well. I also tried running the older, but official release HTML Form Flowsheet v1.2.8 after adding this line to my site’s $TOMCAT_HOME/conf/catalina.properties file
org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true
and that fixed the problem for me as well. This was all addressed in ticket HFFS-37 mentioned above, but when I tried editing my properties file before, it still didn’t seem to work. Perhaps I was confused, as for some reason, when I loaded the form on my computer, it never issued an error. It would only display a blank area where the form should have loaded. After applying the fix above to my config file, the form still displays a blank area, but if I wait a little while, the form will start to load. I was just too impatient, or my computer too slow. Hopefully documenting this will help someone else one day.
One last note, after changing the config file, it seems that you will need to restart Tomcat for the change to take effect.