How to modify quick filter in Timeline.

Hi All,
 
I am trying to apply quick filter in the contact section under "All Email" Tab such that is should show all the mails related to the current user 
 
Below is the handler code:
 
	handlers: /**SCHEMA_HANDLERS*/[
	{
		request: "crt.LoadDataRequest",
		handler: async (request, next) => {
	/*if (request.dataSourceName === "ByOwnerQuickFilterInTimeline_ComboBox_List_DS") 
		{
		  const userId = Terrasoft.SysValue.CURRENT_USER.value;
		  console.log(userId);
		  //Create a filter to match the owner field with the current user's ID
			const filter = new sdk.FilterGroup();
			await filter.addExistsFilter("[SysAdminUnit:Contact:Id].Id");
		   //workaround for filters
			const newFilter = Object.assign({}, filter);
			newFilter.items = filter.items;
			request.parameters.push({
						type: "filter",
						value: newFilter
					    });
			console.log("testing");
			request.$context.attributes.ByOwnerQuickFilterInTimeline_Value[0] = [
 					 {
    				checkedState: true,
    				displayValue: "Lori Espinoza",
    				value: "ccb53f93-d5ab-4121-8598-63a8a694eeb"
  					}
					];
 
				console.log("Test");
				return await next?.handle(request);
			}
	}
		
Like 1

Like

2 comments

Hello,

 

Currently there is no tool to set the default filter in the Freedom UI Timeline component, but our R&D team has a task for implementing this functionality in one of the future application releases. Thank you for reporting this to us and helping us in making the app better!

Oleg Drobina,

 

I know this is only a couple of months on, but is there any expectation of this being possible in the near future? A couple of our clients have asked after this, and I was quite surprised it wasn't possible.

Show all comments