Hello all, I’ve been having a problem with the UI framework tutorials;
I’ve been using this tutorial, but when creating a fragment and its controller, I always got this error: org.openmrs.ui.framework.ViewException: *** In view ‘tested’, could not find property ‘encounters’.
The full error can be found here: https://pastebin.com/fH6Yx3B0
I thought that this error was originally caused because I’m a novice programmer, and was probably using the encountersearchcriteriabuilder (ESCB) wrong, so I switched to copying the code directly from the page to see if that caused the problem.
(As a sidenote, the page should probably be updated to include ESCB)
ESCB wasn’t the cause of the error, so I reinserted it into the code. Here is the code (slightly modified for ESCB)
HelloWorld Page: https://pastebin.com/rNjzJgZS
Fragment Controller: https://pastebin.com/hgiW7Syu
I’m not certain why this is happening, but to me it seems that the UI Framework Tutorial I’m using has errors.
It could also very easily be a problem on my end, since I’m very new to this.
Please help explain what is going on, thank you!
Edit: If anyone can also explain how FragmentModels work, that would be very helpful