Continue button is not working when we import the file through upload new version in KB table in sow

reenak446674965
Tera Contributor

Hi Team ,

I wrote the script to import the file when we click the upload new version ui action (Knowledge table) in sow, and functionalites wise it is working fine file is attached too, however  continue button is not working 

code : 

function onClick(g_form) {
    // Define the URL for the UI Page

    // Use g_modal to open the UI Page within a modal overlay
    g_modal.showFrame({
        title: "Import a file",
        url: url,
        size: "md",   // Use 'sm', 'md', 'lg', or 'xl' for size
        height: 640,  // Specify height in pixels
       
    });

reenak446674965_0-1770027009320.png

 

4 REPLIES 4

Nilesh Pol
Kilo Sage

@reenak446674965 it seems like you are opening kb_import.do inside a model, so script is correct, but UI page is not model-safe.

You can try and verify with opening new tab on same window, that will solve your issue.

@Nilesh Pol 

could you please suggest me how can we open the new tab , because when I click the upload new version button it comes with pop window then I import the file then we get the continue button

@reenak446674965 your can reframe the code by using windows obj:

please verify the below script and make update as per your requirement-

 

unction onClick(g_form) {
    // Define the URL for the UI Page

 

    // Use window to open the new tab on same window
 window.open(url, '_blank'); OR window.location.href = url ;
    });
 
if it helps, please mark helpful and accept as solution,

@Nilesh Pol  it is not working . could you please try from your end.