codeunitPlatform, DevOps & Performanceofficial - Microsoftderived - from the source, no model text

Codeunit 2682 "Data Search Events"

DataSearch · Microsoft.Foundation.DataSearch

Across versions

  1. BC23-28not present
  2. BC29-30present

DataSearch · Microsoft.Foundation.DataSearch · BC29-30 · source at ea08af5e · facts from BC29

Properties

Property Value
SingleInstance true

Events published

  • OnGetFieldNoForTableType(TableNo: Integer; var FieldNo: Integer) (integration): Specifies the Field No. for the table type field. For example “Sales Header” would specify 1 = “Document Type”
  • OnGetParentTable(SubTableNo: Integer; var ParentTableNo: Integer) (integration): Specifies the parent table if a table is a sub-table in a header/lines construct, such as Sales Line
  • OnGetSubTable(ParentTableNo: Integer; var SubTableNo: Integer) (integration): Specifies the sub table if a table is a parent table in a header/lines construct, such as Sales Line / Sales Header
  • OnGetListPageNo(TableNo: Integer; TableType: Integer; var PageNo: Integer) (integration): Specifies the list page no. to be used for displaying the record. Only needed if the page is not the standard list/card page for the table
  • OnGetCardPageNo(TableNo: Integer; TableType: Integer; var PageNo: Integer) (integration): Specifies the card page no. to be used for displaying the record. If no card exists, then specify the list page no. Only needed if the page is not the standard list/card page for the table
  • OnMapLineRecToHeaderRec(var LineRecRef: RecordRef; var HeaderRecRef: RecordRef) (integration): Specifies the header RecordRef to a corresponding line RecordRef for e.g. sales line -> sales header
  • OnAfterGetRolecCenterTableList(RoleCenterID: Integer; var ListOfTableNumbers: List of [Integer]) (integration): Enables adding and removing tables from the default initial setup for tables to search.
  • OnAfterGetFieldListForTable(TableNo: Integer; var ListOfFieldNumbers: List of [Integer]) (integration): Enables adding and removing fields from the default initial setup for fields for the specified table.
  • OnGetExcludedRelatedTableField(RelatedTableNo: Integer; var IsExcluded: Boolean) (integration): Specifies whether a field is excluded from the default fields in a table, based on its table relation. Typically we would exclude fields from search that have relations to posting groups, reason codes, etc.
  • OnGetTableSubTypeFromPage(PageNo: Integer; var TableSubtype: Integer) (integration): Specifies the table subtype for a page. Typically this means ‘document type’ for a specific table that is source table for the page.
  • OnBeforeSearchTable(var RecordRef: RecordRef) (integration): Allows the addition of additional filters for the specified during the search.
  • OnBeforeSearchTableProcedure(TableNo: Integer; TableType: Integer; var FieldList: List of [Integer]; var SearchStrings: List of [Text]; var Results: Dictionary of [Text, Text]; var IsHandled: Boolean) (integration): Allows the different implementation of the SerachTable procedure.

Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Data Search Events"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources