Question

TimelineTileSetting

Dear community,

after reading about the timeline tab (https://academy.creatio.com/documents/technic-sdk/7-16/introduction-17), i tried to add some fields in various TimelineTileSetting objects, for example in the Activity tile, here is the Data : 

{

    "entitySchemaName": "Activity",

    "viewModelClassName": "Terrasoft.ActivityTimelineItemViewModel",

    "viewClassName": "Terrasoft.ActivityTimelineItemView",

    "orderColumnName": "StartDate",

    "authorColumnName": "Owner",

    "captionColumnName": "Title",

    "messageColumnName": "DetailedResult",

    "filters": {

        "typeFilter": {

            "comparisonType": 4,

            "columnName": "Type",

            "columnValue": "E2831DEC-CFC0-DF11-B00F-001D60E938C6"

        }

    },

    "columns": [{

        "columnName": "Result",

        "columnAlias": "ResultMessage"

    },

    {

        "columnName": "Author",

        "columnAlias": "Author"

    }]

}

 

but it does not change anything in my timeline views.

i can not figure out what's wrong.

 

any hint appreciated !

 

regards,

Patrice

Like 0

Like

2 comments

Hello Patrice,

 

The problem here is that the ActivityTimelineItemView doesn't know anything about the "Author" column and there is no viewConfig for the "Author" column.

 

Please also see this article that describes how to create a timeline for the custom object in the system https://academy.creatio.com/documents/technic-sdk/7-16/creating-timelin….

 

The idea here is to create a view config for all the columns that are present in the timeline "Data". Same thing should be done for the "Author" column of the activity view model.

 

Best regards,

Oscar

Hello Oscar,

thanks for the response, that's a typical rtfm case ;)

i was missing half of the work to do.

 

best regards

 

Patrice

Show all comments