I created a utility that would load the french translations of concepts into the database. It would load the concept , associate a new name entry for locale fr and then make a new name entry in concept_name table.
I can see the entries in the database. The problem is that now when I access my forms which have concept dropdowns, i wouldn’t see any answers. The dropdown is just blank.
As soon as I restart the server, everything works normal as expected. I tried updating the search index, but that didn’t work as well. Can you guys suggest anything that could help me solve this problem?
Did you reindex the table? You can force OMRS to do this by setting the global property “search.indexVersion” to null. I would also like to know what French translations you added. Were these for the Bahmni concepts or some other concepts? Would you be willing to share these with the CIEL dictionary where there are overlaps (we have a lot of French already).
I tried doing it from the system administration to see if it does anything, but it din’t help either
Any other suggestions?
I could see this in the logs
INFO - LoggingAdvice.invoke(115) |2018-09-27 15:58:44,781| In method AdministrationService.saveGlobalProperty. Arguments: GlobalProperty=property: search.indexVersion value: null,
We have our local dictionary and once we complete our developement in october, we will be sharing our dictionary.
There is 2 sides to the question i.e. programmatically vs not? Programmatically, what you are doing would be fine, why you see the odd behavior I think could be because of where you are doing it. Otherwise going forward you should be using a tool like OCL.