The CreatorCon Call for Content is officially open! Get started here.

Issue with UI action ?

Kiran Kumar 76
Tera Expert

I am trying to add the " search for duplicates" ui action to the workspace

The button is visible, need help to fix the code

KiranKumar76_0-1694322635012.png

 

KiranKumar76_1-1694322673432.pngKiranKumar76_2-1694322714655.png

 

 

1 ACCEPTED SOLUTION

Hi @New Developer_S 

 

below code fixed this

 

function onClick(g_form) {
    var sd = g_form.getValue('short_description');
    var url;
    url = "knowledge_home_launcher.do?sysparm_stack=no&query=" + sd;
    var win = top.window.open(url, '_blank');
    win.focus();
}

View solution in original post

6 REPLIES 6

Hi, 

you might have  specified the view for your client scripts as -> workspace

(Refer the example below )

NewDeveloper_S_0-1694332369025.png

 

then write your code which would run only for the workspace view

Hi @New Developer_S 

 

below code fixed this

 

function onClick(g_form) {
    var sd = g_form.getValue('short_description');
    var url;
    url = "knowledge_home_launcher.do?sysparm_stack=no&query=" + sd;
    var win = top.window.open(url, '_blank');
    win.focus();
}