Hello Community,
On the Employment Time Card screen, I want to filter the Project Task selector field to display only records with the status 'Active' or 'In Planning'.
I attempted this by overriding the base class and customizing the attribute. Below is a snippet of what I tried, where I attempted to add a condition to the generic type query:

public ProjectTaskCustomAttribute(Type projectID)
{
if (projectID == null)
throw new ArgumentNullException("projectID");
projectIDField = projectID;
Type SearchType = BqlCommand.Compose(typeof(Search<,>), typeof(PMTask.taskID),
typeof(Where<,>), typeof(PMTask.projectID),
typeof(Equal<>), typeof(Optional<>), projectID,
typeof(And<,>), typeof(PMTask.status),
typeof(Equal<>),typeof(Aberdeen.Messages.Active),
typeof(Or<,>),typeof(Aberdeen.Messages.InPlanning));
PXDimensionSelectorAttribute select = new PXDimensionSelectorAttribute(ProjectTaskAttribute.DimensionName,
SearchType, typeof(PMTask.taskCD), typeof(PMTask.taskCD), typeof(PMTask.description), typeof(PMTask.status));
select.DescriptionField = typeof(PMTask.description);
select.ValidComboRequired = true;
_Attributes.Add(select);
_SelAttrIndex = _Attributes.Count - 1;
Filterable = true;
}

However, this code didn't work as expected, and I'm encountering issues.
Has anyone implemented this or can guide me on the this?
Thanks in advance!
