how to open a ui action link in a new tab

asd22
Tera Contributor

Hello, i have a ui action button with this script. how do i make it so that the url gets opened in a new tab?

 

createRITM();
function createRITM() {
var tableName = 'alm_hardware';
        var viewName = 'registrering_av_hardware_ved_innkjøp'; // give your view name
        var po_number = current.u_uh_nr|| '';
        var sys_id = current.sys_id || '';
        var req_for = current.request.requested_for|| '';
action.setRedirectURL('https://testingnow.com/alm_hardware.do?sysparm_view=registrering_av_hardware_ved_innkj%C3%B8p&syspar...);

}

1 ACCEPTED SOLUTION

Hi @asd22 ,

Please check the Client option. This should resolve your issue.

View solution in original post

6 REPLIES 6

Hi @asd22 ,

Please check the Client option. This should resolve your issue.

This is correct, but "Client" must be active for this to work.


If this answer was helpful, I would appreciate if you marked it as such - thanks!

Best
Daniel