Home Analyst Portal
Options

adding history tab to ServiceRequest.js

Joshua_WalkerJoshua_Walker Customer Adept IT Monkey ✭✭
As the title states...when i try to add 

/*********/
            /** TAB **/
            /*********/
            {
                name: "RelatedItems",
                content: [
                    {
                        customFieldGroupList: [
							{
                                name: "File Attachments",
                                type: "fileAttachments"
                            },
							{
                                name: "WorkItems",
                                type: "multipleObjectPicker",
                                PropertyName: "RelatesToWorkItem",
                                ClassId: "f59821e2-0364-ed2c-19e3-752efbb1ece9",
                                PropertyToDisplay: {Id:"Id",Title:"Title","Status.Name":"Status",LastModified:"LastModified"},
                                SelectableRow: true,
                                SelectProperty: "Id"
                            },
                            {
                                name: "RelatedConfigurationItems",
                                type: "relatedItems"
                            },
                            {
                                name: "AffectedConfigurationItems",
                                type: "affectedItems"
                            },
                            {
                                name: "Child Work Items",
                                type: "childWorkItems"
                            },
			    {
			        name: "History",
				type: "history"                            },
                            
                        ]
                    }
                ]
            }
This wokrs and i get the history within Related Items but when i add history as its own tab, i get a error.

/*********/
            /** TAB **/
            /*********/
            {
                name: "History",
                content: [
                    {
                        customFieldGroupList: [
			    { <-- (index):1281 Uncaught SyntaxError: Unexpected token {
			        name: "History",
				type: "history"                            },
                            
                        ]
                    }
                ]
            }




Comments

  • Options
    Conner_WoodConner_Wood Customer Ninja IT Monkey ✭✭✭✭
    Hm, there's nothing that seems different about the version I use that displays History on another tab, do you have a comma in place at the top to separate each tab?
    ,
    /*********/
    /** TAB **/
    /*********/
    {
    	name: "History",
    	content: [
    	{
    		customFieldGroupList: [
    		{
    			name: "History",
    			type: "history"
    		}
    		]
    	}
    	]
    }
    


  • Options
    Joshua_WalkerJoshua_Walker Customer Adept IT Monkey ✭✭
    Hm, there's nothing that seems different about the version I use that displays History on another tab, do you have a comma in place at the top to separate each tab?
    ,
    /*********/
    /** TAB **/
    /*********/
    {
    	name: "History",
    	content: [
    	{
    		customFieldGroupList: [
    		{
    			name: "History",
    			type: "history"
    		}
    		]
    	}
    	]
    }
    


    Give this man a beer! :) thanks!
Sign In or Register to comment.