Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Navigate internally without reloading in Project workspace

Nolan4
Tera Contributor

Hi, 

I have put this code in the action assignment's client script - 

function onClick() {
    const projectSysId = g_form.getUniqueValue();
    const timestamp = Date.now(); // same as new Date().getTime()
 
    // Construct the proper Financials workspace URL
    var financialsURL = '/now/workspace/project/home/sub/pw-financials/pm_project/' +
        projectSysId + '/' + timestamp +
        '/params/page-name/financials';
 
    // Redirect user to the Financials section
    open(financialsURL, '_self');
}


This is working but the only thing here is, the page is completely reloading. Instead it should just navigate internally from the Details section to the Financials section. 
1 REPLY 1

Nolan4
Tera Contributor

Any help please? TIA