Jim Coyne
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		
	
	
	
		
			
					
		
	
				
		
	
	
			Kilo Patron
		
	
				
		
	
		Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark as New
 - Mark as Read
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 - Report Inappropriate Content
 
			
    
	
		
		
		12-13-2012
	
		
		09:33 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
	
		NOTE: There's a newer version of this tool
You should take a look at it instead of continuing on with this outdated post.
Mark Stanger has a great article over on the ServiceNowGuru site which explains how to create a UI Action that will popup a schema map to show you the table relationships from a form. It's a great tool and I use it constantly, but I've always thought it would be helpful to do it from a list view as well.
So, I created a Context Menu (https://wiki.servicenow.com/index.php?title=Context_Menus) that does the trick, even on related lists:
Here is how you set it up:
Table: Global [global]
Menu: List Header
Type: Action
Name: Show Schema Map
Condition: gs.hasRole("admin")
Order: 100000
Action Script:
u_showSchemaMapFromList();
function u_showSchemaMapFromList() {
getTopWindow().popupOpenFocus('schema_map2.do?sysparm_stack=no&sysparm_attributes=table=' + g_list.tableName, 'super_schema', 950, 700, '', false, false);
}
		2 Comments
	
			
		
		
			
			
				 
				
					
					
				
			
		
		
			
			
		
		
			
			
				
			
		
		
			
			
			
	 
	
		You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
		