Hi, I've been googling for a week now, and I can't find any working examples on how to override the original address display/edit portlet. I'm making a module that will have a map in there and allow to simply drop a pin for patient address, which will populate the whole form automatically.
Bottom line is: I want to override old address portlet with a new one that does everything the same way + has a map frame.
So far I've tried overriding address portlet via webModuleApplicationContext.xml (using a bean ), copy/pasting the portlet code & controller into my module & just having a "hello world" message at the head of the portlet -> with no effect. My code:
<openmrs:portlet url="addressLayout" id="addressPortlet" moduleId="gis" size="full"... />
Displays my portlet properly, but the same code without moduleId="gis" , which is the way original portlet is declared in all the pages, still shows the original portlet. Is there a way I can globally override that mapping?
--
OpenMRS Developers: http://om.rs/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at http://om.rs/id
Visit OpenMRS Talk for in-depth & casual conversation: https://talk.openmrs.org/
To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.
I believe you can find an example of this in the orderextension module. It overrides the regimens portlet.
-Darius (by phone)