Hello all,
Who can help with this error please ? I thought the reason was because patient was null but after adding patient it still does not work when click on the module in the admin interface.
Thanks
Hello all,
Who can help with this error please ? I thought the reason was because patient was null but after adding patient it still does not work when click on the module in the admin interface.
Thanks
Hey , The Error is not because of patient its caused by users. you are not passing object with name users to your gsp page.
model.addAttribute("users", here_your_object);
Hello @vankineenitawrun, can you help with adding validation to assess user input when the controller is triggered. Considering the department module in the devmanual documentation. Thanks
you can do validation by having javascript or jquery in tag
Hello @vankineenitawrun, thank you for getting back to me. Is there any simple documentation or very basic project which can help me. I am new to Spring MVC and I just start learning it but I would like to get this very first module from the dev manual up.
Thank you so much @vankineenitawrun !
hey you need to have it in fragmentcontroller thats the issue I can see. Please put your fragmentcontroller code on pastebin and can share link.
Sorry wrong code
This is your gsp page correspondingly you need to have a fragmentcontroller java class. example if you have page1.gsp then in you need to have a java file with name Page1FragmentController in org.openmrs.module.yourmoudleid.fragment.contoller package.
I get you. Very clear ! Thank you
But seems my fragment controller is correct. Maybe I have to look up another controller somewhere else.
please share the path of both gsp page and fragmentcontroller
The gsp page: https://pastebin.com/Cy920kvt
The fragment controller page: https://pastebin.com/khMm14EN
Hey not the link. Directory path to files like
gsp page at
openmrs-module-locationbasedaccess/omod/src/main/webapp/fragments/page.gsp
and your fragment controller at
openmrs-module-locationbasedaccess/omod/src/main/java/org/openmrs/module/locationbasedaccess/fragment/controller/PageFragmentController.java
make sure you are having them in the same way.
The gsp page: C:\openmrs\department\omod\src\main\webapp\fragments
The fragment controller: C:\openmrs\department\omod\src\main\java\org\openmrs\module\department\fragment\controller
Hey have you made any changes after creating the module?