Prateek Rawat Posted July 9, 2020 Posted July 9, 2020 Hi All, In my dashboard there isa checkbox filter added in text area which has two values: 1. Machine Data 2.(Empty) I am hiding this empty value using below html/javascript, this works fine in 7.11 but is not working in 10.6 version: var hideEmpty = function(){ document.querySelectorAll("#filter .sf-element.sf-element-filter-item:last-child")[0].style.display='none' }if(this['ps']) clearInterval(ps) ps = setInterval(hideEmpty,100) Any modifications to be made in this code Regards, Prateek
Shandilya Peddi Posted July 9, 2020 Posted July 9, 2020 You can use the steps mentioned in the below article to enable development tools in Analyst and then inspect the HTML of the property controls to see if your JS is as expected or not, https://support.tibco.com/s/article/How-to-enable-Development-tools-in-t...
Prateek Rawat Posted July 10, 2020 Author Posted July 10, 2020 Hi Shandilya,Below is the query in developer tools:(function anonymous( ) { var $ = window.compatibilityJQuery; var jQuery = $; var SF = {setBusy: window.tempTextAreaSetBusy}; delete window.tempTextAreaSetBusy;var hideEmpty = function(){ document.querySelectorAll("#filter .sf-element.sf-element-filter-item:last-child")[0].style.display='none' }if(this['ps']) clearInterval(ps) ps = setInterval(hideEmpty,0)})it is giving error for style.display='none'- cannot read property style of undefined
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now