Custom searchprovider stopped working
Some time ago I wrote a custom searchprovider for the HTML viewer, which has been working fine since. But now that I upgraded to GVH 2.3.2 it causes some problems.
If this searchprovider is included in a site, and I identify features, I get a list of results, but when I click on a result, I don't see the feature details or the feature actions. This doesn't have anything to do with the actual search functionality (that still works): Even if I don't actually use this provider, the feature details screen remains empty.
Here are two screenshot showing the site with and without my searchprovider:
/customer/servlet/servlet.FileDownload?file=00P6000000em19DEAQ /customer/servlet/servlet.FileDownload?file=00P6000000eluBlEAI
-
Hi Berend,
Do you see any errors or clues in the browser console? If you inspect the DOM element in the empty space, what's there? Inspecting the DOM often yields valuable clues as to what's going on. You can also turn on "debug mode" in the viewer with the URL parameter debug=true. This will leave data-binding statements on elements and often further yield clues.
-Jason
0 -
It turned out to be caused by a mismatch between the libraryname in the json config, and the javascript file (geocortex.framework.notifyLibraryDownload("MySearchProvider");)
0 -
I noticed that the same thing happens when a library is configured in the json files, but the actual js file is missing (or cannot be downloaded for some reason)
0
Please sign in to leave a comment.
Comments
3 comments