Sisense Community logo
     
    • Community Feedback
    • Chapters
    • Events
    • Forums
      • Help and How To
      • Product Feedback Forum
      • Strategy & Use Cases
    • Blogs
    • KB Docs
      • KB Docs
      • Add-Ons & Plug-Ins
      • APIs
      • Best Practices
      • Blox
      • CDT
      • Cloud Managed Service
      • Data Models
      • Data Sources
      • Embedding Analytics
      • How-Tos & FAQs
      • Onboarding
      • PySisense
      • Security
      • Sisense Administration
      • Sisense Intelligence & AI
      • Troubleshooting
      • Widget & Dashboard Scripts
    • Support
    • Learning
      • Sisense Academy: Free Courses and Certifications
      • Official Developer Documentation
      • Official Product Documentation
      • Official Sisense Youtube Channel
      • Sisense Compose SDK Playground
      • Official Sisense Discord
    • Use Case Gallery
    •      
    Discussions
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
    •                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
    Discussions
    • TagsChevronRightIcon
    JavaScript
    • Tim von Ahsen

      Help and How-To

               
      Tim von Ahsen
      Posted 2 months ago • Last reply 1 month ago
      Pivot2.0 JavaScript Column Width
                               

      My PivotTable has 3 columns. I want javascript to set the width of Column2 to 10px. I've already changed the contents of Column2 to all empty strings. I tried DOM-manipulation. The Pivot DOM structure is complicated; even if I succeed, the resulting code will be hard to maintain and vulnerable to future changes by Sisense. Has someone done this before, either using DOM-manipulation or a better way?

                                             
      1
               
    • Rose Holmes-Minton

      Help and How-To

               
      Rose Holmes-Minton
      Posted 3 months ago • Last reply 3 months ago
      Set a background dashboard filter using Javascript
                               

      I am trying to set a background dashboard filter using JavaScript. Any suggestions?  

                                             
      3
               
    • Rose Holmes-Minton

      Help and How-To

               
      Rose Holmes-Minton
      Posted 11 months ago • Last reply 10 months ago
      JavaScript does not work for Tabber
                                       

      I added the following JavaScript to my tabber widget. However it does not execute. I found this JavaScript in a help article on the Sisense Community website. It is designed to change the dashboard filters based on which tab is selected. Can you please tell me what I need to do make this script work?  My work around was to hide the dashboard filter and disabling the dashboard filter on each widget and creating a widget level filter.   $('.listDefaultCSS .listItemDefaultCSS', element).on('click', function(s){  widget.scriptConfig = true;          filter = prism.activeDashboard.filters.$$items.find(el=>el.jaql.title == 'Checklist Type') //Title of filter       //mapping of Tab name and filter item. Here when Tab1 is selected, 'Onboarding' will get selected in Checklists Type filter     var tabFilterMapping = {         'Tab1':"Onboarding",         'Tab2':"Advancement"     }          var filterValue = tabFilterMapping[$(s)[0].currentTarget.innerHTML]       filter.jaql.filter = {         "explicit": true,         "multiSelection": false,         "members": [         filterValue         ]     }     var filterOptions = {                             save: true,                             refresh: true,                         }            prism.activeDashboard.filters.update(filter, filterOptions)   }) ; });    

                                             
      8