How do I add the timeline tab back to the account. This timeline tab was removed multiple phases ago in a package I can not edit. I tried copying that remove statement from the previous phase and adding it into the new package and changing remove to insert, but it did not show up.
Thanks
Like
Dear Tyler,
You would need to use merge instead of insert. Also you would need to merge all other Timeline elements that were deleted. E.g.:
{
"operation": "merge",
"name": "TimelineTab",
"values": {
"order": 7
}
},
{
"operation": "merge",
"name": "TimelineTabContainer",
"values": {
"order": 1
}
},
{
"operation": "merge",
"name": "Timeline",
"values":{
"layout": {
"colSpan": 24,
"rowSpan": 1,
"column": 0,
"row": 0
}
}
}
Best regards,
Dennis
Dennis Hudson,
Thanks for the response.
The code above did not work for me. Do you have any other recommendations?
Tyler Rainey,
Do you have any errors in console when opening the page?
Dear Tyler,
You can bring back the Timeline adding the following code to the AccountPagev2:
{
"operation": "insert",
"name": "TimelineTab",
"parentName": "Tabs",
"propertyName": "tabs",
"values": {
"caption": {
"bindTo": "Resources.Strings.TimelineTabCaption"
},
"items": [],
"order": 3
}
}, {
"operation": "insert",
"parentName": "TimelineTab",
"name": "TimelineTabContainer",
"propertyName": "items",
"values": {
"itemType": this.Terrasoft.ViewItemType.CONTAINER,
"items": []
}
}, {
"operation": "insert",
"parentName": "TimelineTabContainer",
"propertyName": "items",
"name": "Timeline",
"values": {
"itemType": this.Terrasoft.ViewItemType.MODULE
}
}