Thursday, July 13, 2023

Apply ranges while opening the SalesTeableListpage form in D365 FO

  let's assume that i have an requirement while opening the list page form. I want to filter the form based on which status is invoiced.

[ExtensionOf(classStr(SalesTableListPageInteraction))]

final class SalestableListpageInteraction_Extension

{

     public void initializeQuery(Query _query)

    {

        next initializeQuery(_query);

        var qbds = _query.dataSourceTable(tableNum(SalesTable));

        qbds.addRange(fieldNum(SalesTable,SalesStatus)).value(queryValue(SalesStatus::Invoiced));

    }




No comments:

Post a Comment

adding new node in hierarcy type in workflow

class: WorkflowHierarchyProviderHelper  for convert nodetype  [ExtensionOf(classstr(WorkflowHierarchyProviderHelper))] public  final class ...