Skip to Main Content
Feature Request FR-3064
Product Area Page Components
Status CLOSED

4 Voters

Add Session State option to Smart Filters and Faceted Search

olafur tryggvason Public
· Apr 4 2023

Idea Summary
With complex pages, where Search filters or faceted filters are numerous and complex. Add the ability to be able to set the session state for users. 

Use Case
For instance I have a page displaying results from Service Now API for a whole Business Division. Right now, every time an employee authenticates and creates a new session. There is  a need to set all his/hers filters up again. Department, Assignment Groups, Service Offering, Categories and so forth.

Being able to set the session state to “Per User”, would instantly make the page more user friendly.

Preferred Solution (Optional)
Session State on the main Facet/Simple search, like you can find on select lists.

This idea has been closed due to the lack of community activity during the period since it was submitted.

Comments

Comments

  • olafur tryggvason OP 2.2 years ago

    Yeah, Smart filters. Sorry, misremembered the name :) 
    I do have a workaround, but that uses localStorage. It would be cleaner if using built in session state so it would be browser independent.

    Function and Global Variable Declaration:

    var itemList = [
    "P77_SERVICE_OFFERING",
    "P77_CALL_TYPE",
    "P77_STATE",
    "P77_CATEGORY",
    "P77_BUSINESS_SERVICE",
    "P77_ASSIGNMENT_GROUP",
    "P77_ASSIGNED_TO",
    "P77_COMPANY_NAME",
    "P77_URGENCY",
    "P77_SEVERITY",
    "P77_OPENED_BY",
    "P77_SYS_CLASS_NAME",
    "P77_SYS_CREATED_BY",
    "P77_SYS_UPDATED_BY",
    ];

    Dynamic action on Filter Change [Smart Filters]
    for (let i = 0; i < itemList.length; i++){
    localStorage.setItem(itemList[i], $v(itemList[i]));
    }

    Page Load DA 
    for (let i = 0; i < itemList.length; i++){
    $s(itemList[i], localStorage.getItem(itemList[i]));
    }