KVSFCYItemAttributeFindMgt#
Procedures#
CalcLineResult(Record Filter Item Attributes Buffer) :#
Summary: Calculates the number of matching results for a single item attribute filter line. Evaluates the specified attribute filter criteria and counts how many items match the search value, updating the result count field in the filter buffer. Returns zero count if no search value is provided, enabling users to see real-time feedback on search result quantities before executing full searches. This supports progressive filtering and helps users refine their search criteria effectively.
procedure CalcLineResult(var FilterItemAttributesBufferVar: Record "Filter Item Attributes Buffer" temporary):
Parameters:
FilterItemAttributesBufferVar: Temporary filter buffer record containing the attribute search criteria and receiving the calculated result count.
Events#
OnBeforeHandleItemAttributeValueMapping(Record Item Attribute Value Mapping, Record KVSFCYItemAttrVarVersMapp, RecordRef, Boolean) :#
Summary: Integration event that is raised before handling item attribute value mapping during item attribute search operations, providing an extension point for implementing custom mapping logic for different table types or adding support for additional record types beyond the standard Item, Item Category, and Nonstock Item tables.
[IntegrationEvent(false, false)]
local procedure OnBeforeHandleItemAttributeValueMapping(var ItemAttributeValueMapping: Record "Item Attribute Value Mapping"; var TempKVSFCYItemAttrVarVersMapp: Record "KVSFCYItemAttrVarVersMapp"; RecRef: RecordRef; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYItemAttributeFindMgt", 'OnBeforeHandleItemAttributeValueMapping', '', false, false)]
local procedure DoSomethingOnBeforeHandleItemAttributeValueMapping(var ItemAttributeValueMapping: Record "Item Attribute Value Mapping"; var TempKVSFCYItemAttrVarVersMapp: Record "KVSFCYItemAttrVarVersMapp"; RecRef: RecordRef; var IsHandled: Boolean)
begin
end;
Parameters:
ItemAttributeValueMapping: Item Attribute Value Mapping record (passed by reference) containing the source mapping information with attribute ID, value ID, and record reference, providing context for the mapping operation being processed.TempKVSFCYItemAttrVarVersMapp: Temporary Item Attribute Variant Version Mapping record (passed by reference) that should be populated by the extension with the mapping result data, enabling custom mapping logic to create appropriate search result entries.RecRef: RecordRef variable containing the referenced record from the item attribute value mapping, providing access to the source record data for custom mapping logic and field value extraction.IsHandled: Boolean variable (passed by reference) that should be set to true by the extension if it has completely handled the item attribute value mapping processing, preventing execution of standard mapping logic for unsupported table types.