I have written a plugin using syslog plugin by cigamit as a reference. It contains the javascript filter functions (for searching based on user text input), and also some additional filtering based on dropdown selections.
Both of the filters work independently, but when I try to use the cacti nav bar functionality (browsing record pages next and prev), I lose my dropdown filter criteria. How do I tie them together? The javascript filter and the built in cacti form submissions?
Search Filter question
Moderators: Developers, Moderators
Re: Search Filter question
Still haven't been able to figure out how to reliably pass the filter criteria between the php and javascript.
Any help would be appreciated.
Any help would be appreciated.
Re: Search Filter question
Is there anyone on the Dev team that will consult (even if there are fees involved) on this issue?
Re: Search Filter question
Review cdef.php. there is a function filter_vars() that will remember previous settings. There are examples everywhere on how it works.
Before history, there was a paradise, now dust.
Re: Search Filter question
Understanding the functions "api_plugin_hook_function" and "validate_store_request_vars" was the key. I have this all working now.
Thanks to cigamit for the write-up on Plugin Migration steps here https://github.com/Cacti/cacti/wiki/PluginMigration
Thanks to cigamit for the write-up on Plugin Migration steps here https://github.com/Cacti/cacti/wiki/PluginMigration
Who is online
Users browsing this forum: No registered users and 2 guests