Codeunit 41 "Filter Tokens"
System Application · System.Text
Across versions
- BC23-30present
Neighbourhood 15 connected objects and pages
System Application · System.Text · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
| SingleInstance | true |
Events published
OnResolveDateFilterToken(DateToken: Text; var FromDate: Date; var ToDate: Date; var Handled: Boolean)(integration): Use this event if you want to add support for additional tokens that user will be able to use when working with date filters, for example “Christmas” or “StoneAge”. Ensure that in your subscriber you check that what user entered contains your keyword, then return proper date range for your filter to…- subscribers: Codeunit 360 “Accounting Period Mgt.” OnResolveDateFilterToken
OnResolveTextFilterToken(TextToken: Text; var TextFilter: Text; var Handled: Boolean)(integration): Use this event if you want to add support for additional filter tokens that user will be able to use when working with text or code filters, for example “MyFilter”. Ensure that in your subscriber you check that what user entered contains your token, then return properly formatted text for your filte…- subscribers: Codeunit 9150 “My Records Filter Sub.” DoOnResolveTextFilterToken
OnResolveTimeFilterToken(TimeToken: Text; var TimeFilter: Time; var Handled: Boolean)(integration): Use this event if you want to add support for additional filter tokens that user will be able to use when working with time filters, for example “Lunch”. Ensure that in your subscriber you check that what user entered contains your token, then return properly formatted time for your filter token.OnResolveDateTokenFromDateTimeFilter(DateToken: Text; var DateFilter: Date; var Handled: Boolean)(integration): Use this event if you want to add support for additional filter tokens that user will be able to use as date in DateTime filters. Parses and translates a date token into a date filter.OnResolveTimeTokenFromDateTimeFilter(TimeToken: Text; var TimeFilter: Time; var Handled: Boolean)(integration): Use this event if you want to add support for additional filter tokens that user will be able to use as time in DateTime filters. Parses and translates a time token into a time filter.
Procedures
MakeDateFilter(var DateFilterText: Text): Turns text that represents date formats into a valid date filter expression with respect to filter tokens and date formulas. Call this function from onValidate trigger of page field that should behave similar to system filters. The text from which the date filter should be extracted passed as VAR. F…MakeTimeFilter(var TimeFilterText: Text): Turns text that represents a time into a valid time filter with respect to filter tokens. Call this function from onValidate trigger of page field that should behave similar to system filters.MakeTextFilter(var TextFilter: Text): Turns text into a valid text filter with respect to filter tokens. Call this function from onValidate trigger of page field that should behave similar to system filters.MakeDateTimeFilter(var DateTimeFilterText: Text): Turns text that represents a DateTime into a valid date and time filter with respect to filter tokens. Call this function from onValidate trigger of page field that should behave similar to system filters.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 58 “Filter Tokens Impl.” (4 calls:
MakeDateFilter → MakeDateFilter,MakeDateTimeFilter → MakeDateTimeFilter,MakeTextFilter → MakeTextFilter, …)
Called by
- Codeunit 58 “Filter Tokens Impl.” (5 calls:
MakeTextFilter → OnResolveTextFilterToken,ResolveDateFilterToken → OnResolveDateFilterToken,ResolveDateText → OnResolveDateTokenFromDateTimeFilter, …) - Page 113 “Budget” (1 call:
ValidateDateFilter → MakeDateFilter) - Page 221 “Resource Allocated per Job” (1 call:
DateControl → MakeDateFilter) - Page 228 “Res. Gr. Allocated per Job” (1 call:
DateControl → MakeDateFilter) - Page 344 “Navigate” (1 call:
SetPostingDate → MakeDateFilter) - Page 408 “G/L Balance by Dimension” (1 call:
SetDateFilter → MakeDateFilter) - Page 5915 “Service Tasks” (1 call:
SetRespDateFilter → MakeDateFilter) - Page 6004 “Res. Availability (Service)” (1 call:
DateControl → MakeDateFilter) - Page 6008 “Res. Alloc. per Service Order” (1 call:
DateControl → MakeDateFilter) - Page 6009 “Res. Gr. Alloc. per Serv Order” (1 call:
DateControl → MakeDateFilter) - Page 6010 “Res.Gr. Availability (Service)” (1 call:
DateControl → MakeDateFilter) - Page 9209 “Invt. Analys by Dim. Matrix” (1 call:
LoadMatrix → MakeDateFilter) - Report 25 “Account Schedule” (1 call:
ValidateDateFilter → MakeDateFilter)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. 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: "Filter Tokens"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.