Clarity

  • 1.  Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 15, 2013 08:43 AM
    We are attempting to build dashboard portlet (A) with parameter links (navigation & filtering) to another portlet (B). Unfortunately, we’ve discovered that, if a user has previously visited portlet B and applied a filter, the filter is maintained when s/he follows that link from portlet A. This results in two sets of filters being applied to portlet B: the filter criteria from the portlet A link (in the URL), and the filter criteria from a previous visit to portlet B (in the portlet filters). Clicking the Clear button will remove the filter criteria from portlet B and show the correctly filtered data (based on the URL filters provided by the link from portlet A), but we’d like to save our users the step. Is there a way to clear a user’s cached filter selections on a portlet that we can use to implement our parameter links?


  • 2.  RE: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 17, 2013 07:22 AM
    If I understood your requirement correctly, whenever you navigate from one portlet to another using drill down option, the data in the drill down portlet is being displayed as per the data which has been passed with defined parameter for the drilldown via url. if you do not want any values to be passed to the drill down portlet, do not define any parameter it will show the default result.\

    Dipanjan


  • 3.  RE: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 17, 2013 11:08 AM
    Looks like you've misunderstood.

    Step 1) Initially, Portlet (B) was used directly with filtering even before entering into it via Portlet (A).
    Step 2) Next, when entered into Portlet (B) via url link from Portlet (A), the Portlet (B) filters from step 1 are remained. So, now the filtering is done by both Parameter link as well as previous existing (step 1) Portlet filters. We don't need the step 1 portlet filters to exist when entering from Porltet(A) to Portlet(B). Those filters from step 1 need to be cleared off when entering from Porltet(A) to Portlet(B).


  • 4.  RE: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 17, 2013 11:39 AM
    So create a "user parameter version" of Portlet (B) that is on the menu, and then a COPY of Portlet (B) that has no user (filter) parameters and use that version (only) on the drill-down page.


  • 5.  RE: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 17, 2013 02:06 PM
    Thanks for quick response. But, we need only one version of Portlet (B). No copies.


  • 6.  RE: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 18, 2013 03:58 AM

    Madhavi wrote:

    we need only one version of Portlet (B). No copies.
    Why?

    The query is exactly the same (not a copy, it is the same query). Copies of the "portlet" is a really simple thing to do.


  • 7.  RE: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 19, 2013 06:04 AM
    Hi

    If the vaues are passed in a parameter, in a N-sql execution when the param is passing the value to the Portlet A and once its confirmed the Portlet A Query is executed
    we may give a commit statement, else replace the value of the parameters as 'NULL' or 0

    Just a try

    Thanks
    Thilak


  • 8.  RE: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Jun 19, 2013 06:29 AM
    "commit"? NSQL portlets can't commit (this does not make any sense)


  • 9.  Re: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Feb 11, 2015 07:27 PM

    David,

     

    One question to your note:

    "The query is exactly the same (not a copy, it is the same query). Copies of the "portlet" is a really simple thing to do."


    Creating a copy of portlet is simple, but for the user he will see 2 different portlet. Is there any ways to control the display option in portlet or portlet page, like if he has any link parameter value stored, display one if not display the copy.


    Regards,

    Sreelesh



  • 10.  Re: Is there a way to clear a user’s cached filter selections on a portlet

    Posted Feb 12, 2015 02:52 AM

    sreelesh wrote:

     

    Creating a copy of portlet is simple, but for the user he will see 2 different portlet. Is there any ways to control the display option in portlet or portlet page, like if he has any link parameter value stored, display one if not display the copy.

     

    No, not that I know of.

     

    Anyway in your other thread you would still always have the parameter in the URL regardless of "which portlet" you want to use.