So I after I created a module which retrieves data from a table I created,I uploaded the .omod.When I call the api,I get the following error:
What am I doing wrong?
So I after I created a module which retrieves data from a table I created,I uploaded the .omod.When I call the api,I get the following error:
What am I doing wrong?
If your module is targeting platform 2.x, then the easiest thing is change your pom.xml file dependency to any 2.x version of the openmrs api.
Which pom.xml file do I change?I am very new to openMRS
Is you module on github? If not, here is an example of what am talking about https://github.com/openmrs/openmrs-module-fhir/blob/master/pom.xml#L64
< calculationModuleApiVersion >1.0</ calculationModuleApiVersion >
This was in your properties tag.Should I do something like that for mine?
The easiest thing would be to post your module on github. But if you are not able to do that, you can paste the pom.xml file contents at pastebin.com
Change line 32 from 1.11.2 to 2.0.6
I did that too.Still showed the same error
Did you compile the module successfully after that change?
yes i compiled it
In that case, you will need to upload the module to github such that we take a look at it in its entirety.
Here you go :https://github.com/krishnanspace/sample-openmrs-db