UI Builder Interactive filters
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-04-2024 11:01 PM
Hi
I've used filter component in ui builder and data visualisation component. so when i select something in filter that should be applied to data visualisation component .
I've followed this article : "https://developer.servicenow.com/dev.do#%21/reference/next-experience/utah/shared-components/sn-comp...
but it's not working.
I've created client state parameter, client script and i've attached that script to event of the filter component.
client script:
function handler({
api,
event,
helpers,
imports
}) {
const mergePARFiltersV2 = imports["global.mergePARFilters"]().v2;
const {
appliedFilters
} = event.payload;
api.setState("parFilters", ({
currentValue,
api
}) => {
const {
parFilters
} = mergePARFiltersV2(currentValue, appliedFilters);
return parFilters;
});
}
Please need help
Thanks in advance.
Please need help
Thanks in advance.
0 REPLIES 0