How to add fix query in breadcrumbs filter in service portal

RuhiJ5906447193
Tera Contributor

Hi all, 

The requirement is to show the list of articles on portal with bread crumbs filter and add the fix filter as 'knowledge base is IT and workflow state is Published.'(No one should be allowed to remove the filter)
I have used the OOTB widget- 'Data Table from URL Definition' for above requirement.

Did some R n D, and found that inside this widget, another OOTB widget- 'Data table' is called and inside that another OOTB widget 'Filter Breadcrumbs' is called.
By default, breadcrumb filter was not shown on the list.
I added below piece of code in 'Additional option, JSON format' in 'instance with table' for widget 'Data Table from URL Definition' and now I can see the breadcrumb filter.
{
"enable_filter": {
"value": "true",
"displayValue": "true"
}
}
The breadcrumb filter(All)l looks like below-

RuhiJ5906447193_0-1736336263194.png

The issue now is I want to add the fixed query in a filter as 'Knowledge base is IT and Workflow state is Published.'
I tried adding below code in the same place where above code of enabling filter was written.
But it is not working.
Can someone please help to add the fixed query in the filter which can't be removed from the filter by any user although user can add other filters along with the fixed filter but cannot remove the fixed query?
Any help is appreciated.

Thanks in advance

 



4 REPLIES 4

RuhiJ5906447193
Tera Contributor

@Ankur Bawiskar @Mike Patel Can you please help here?

RuhiJ5906447193
Tera Contributor

@Ankur Bawiskar @Mike Patel Can you please help here? 

RuhiJ5906447193
Tera Contributor

@Ankur Bawiskar @Mike Patel @Dr Atul G- LNG Can you please help here?

SebastianKunzke
Kilo Sage
Kilo Sage

Hello,
We had a similar requirement. In our case we found out, that the widget "Data Table" does support a fix query OOTB. You just would need to add the option to the widget "Data table from instance".

SebastianKunzke_0-1737640695127.png

Afterwards you can maintain under the instance option the fixed query. 

Kind regards

Sebastian