Showing scopped application related list

gayatri38
Giga Guru

Hi, 

 So In EDM scopped application, i have a catalog item called "TP" and it has a request type field which has create_tp, modify_tp, terminate_tp. so when submit the form with request type as terminate_tp, then a related tab called EDM Request should show up only for this catalog item that has request type as terminate_tp. have already added the edm request tab but its showing for all and global catalogs as well? how to make this change?

3 REPLIES 3

AnirudhKumar
Mega Sage
Mega Sage

Could you attach some screenshots please?

Cannot follow what needs to be done and where...

Untitled.jpg

 

Here we need to show this edm related list only for TP catalog item when request type is terminate TP. so if i add in related lists, its showing for all ritm related lists.

Ah ok...

So create an OnLoad Client script on the RITM table for this.

Use a GlideAjax block to get the item details, and then use the hideRelatedList function

 

Its tricky to find the name of your related list. Press F12, go to console and type g_form.getRelatedListNames() and hit enter. You should be able to guess from the result the name of your related list.

In your client script, you will then use :

g_form.hideRelatedList('<<your related list name>>');