Search Result

Pegina
Tera Contributor

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
            });
        }

 

 
 
6 REPLIES 6

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

That's why I am exhausted.  Everything looks fine but not working.  No errors or warnings?!