Catalog item

Vinya Jakkula
Tera Contributor

Hi Team,

Can anyone help me please!!!

When end user opened the item in backend in service catalog page that respective URL need to redirect to portal with same sys id.

3 REPLIES 3

Ahmmed Ali
Mega Sage

Hello @Vinya Jakkula 

 

You can write an onload catalog client script in the catalog item and set the applies to desktop and runs only in catalog item, not RITM or SCTASK. and in script you can write window.open() with portal URL.

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Hello @Vinya Jakkula 

 

You can create a onload client script on the catalog item, set the applies to desktop and check only catalog item and Target record is not checked. Now in script you can write window.location to redirect to portal.

Example script:

 

function onLoad() {
    var spItemLink = '/sp?id=sc_cat_item&sys_id=';
    var itemSysID = "054858144ff36600120597dd0210c727";
    top.window.location = spItemLink + itemSysID;
}

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

dgarad
Giga Sage

Hi @Vinya Jakkula 

create client script.

function onLoad(){

	try{
		if(window == null){
			// portal view so allow
		}
	}
	catch(ex){
		// native
		alert('You are not allowed to submit from native');
		return false;
	}

}
If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad