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

Mark Manders
Mega Patron

What kind of message do you get? Do you have access to the article (user criteria). And you are using UI builder for the portal? Are you sure?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hello Mark,
Thanks for getting in touch and your precious time
Yes, I'm using UI Builder, Search EVAM Data Resource and by searching sys_id or artileNumber find them and have access. No error or warnings
Screenshot 1144259.png

Pegina_0-1710161209061.png

the last one is catalog item and opens but none of the articles open

Mark Manders
Mega Patron

What opens when you click on the articles? What kind of screen do you get? Are you certain the user criteria are set correctly?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Nothing happens at all. How can I make sure criteria is correct?