Discussions

Expand all | Collapse all

IOL Hide works until a change is made to the filters

  • 1.  IOL Hide works until a change is made to the filters

    Posted 03-03-2019 04:10
    I'm using IOL to hide the checkboxes at the left of some specific reports, but as soon as the user applies a dynamic filter and the report refreshes, the checkboxes come back. How can I make them stay gone, or  at least hide again?

    relevant js from my module is below:
      if (/qid=7/i.test(querystring) || /qid=9/i.test(querystring) || /qid=11/i.test(querystring)) {      $(".icr").hide();     }


  • 2.  RE: IOL Hide works until a change is made to the filters

    Posted 03-08-2019 23:15
    Without seeing the full code its hard to say - but I've had some success just using window.location, particularly window.location.search and parsing the qb_path out of that. 

    var url = window.location;
    var qb_path = url.search.replace(/\?a=/g, "")

    I've done similar operations just doing 
    if (path === "abc123" && qb_path === "q&qid=45") {} 
    with pretty good success.



    Chayce Duncan | Technical Lead
    (720) 739-1406 | chayceduncan@quandarycg.com
    Quandary Knowledge Base


  • 3.  RE: IOL Hide works until a change is made to the filters

     
    Posted 09-06-2019 13:33
    Hi Shannon,

    I have tried Chayce's suggestion with little luck.

    Did you ever figure this out? I am running into a similar issue and would love to figure out a solution. Thanks!