« Return to the main article
If you read my previous feedback, I was having difficulty using $$ViewTemplateDefault to search only the view that was currently being displayed.
I found a solution that works in my environment. Add this line before the OpenDbRelativeURL -->
viewName = (window.location.pathname.split('.nsf/'))[1]
and modify the OpenDbRelativeURL to -->
openDbRelativeURL(viewName + "?SearchView&Query=" + escape( str ) + "&start=1");
(Replace the 'All' view from Jake's code to use the viewName variable)
If you read my previous feedback, I was having difficulty using $$ViewTemplateDefault to search only the view that was currently being displayed.
I found a solution that works in my environment. Add this line before the OpenDbRelativeURL -->
viewName = (window.location.pathname.split('.nsf/'))[1]
and modify the OpenDbRelativeURL to -->
openDbRelativeURL(viewName + "?SearchView&Query=" + escape( str ) + "&start=1");
(Replace the 'All' view from Jake's code to use the viewName variable)