Search Result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 05:25 AM - edited 03-11-2024 11:32 PM
I'm fairly new to this with limited experience. Really stuck any kind of help is appreciated.
In UI builder Global search is enabled for portal and in my result page see the list but when click on the them cannot open knowledge based articles but works for catalog item
if (ACTION_NAME == 'NAVIGATION') {
var table = event.payload.action.actionPayload.table;
var articleNumber = event.payload.model.number;
if (table == "kb_knowledge") {
route = "artikkeli";
const fields = {
"sysId": event.payload.action.actionPayload.sysId,
"articleid" : articleNumber
};
console.log(event.payload);
console.log(route);
console.log(fields);
api.emit('NAV_ITEM_SELECTED', {
route,
fields
});
} else if (table == "sc_cat_item" && event.payload.action.actionPayload.url == "") {
route = "catalog_item";
const fields = {
"sysId": event.payload.action.actionPayload.sysId
};
api.emit('NAV_ITEM_SELECTED', {
route,
fields
});
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 12:38 AM
User criteria can be added on the Knowledge Base or on the Article. But if nothing happens, than it's weird, because you'd expect an empty page or a message that you have insufficient roles. And since the catalog item is opening, the widget is working.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 12:43 AM
That's why I am exhausted. Everything looks fine but not working. No errors or warnings?!