KVSFCYAttributeSearch#
Procedures#
LoadAttributesByRecID(RecordId, Boolean) : Code[20]#
Summary: Loads item attributes associated with a specific record ID into the filter buffer for attribute search functionality. This procedure retrieves all attribute value mappings linked to the provided record ID, populates the temporary buffer with attribute names and codes, and handles hierarchical attribute inheritance for item categories by recursively loading parent category attributes. Supports attribute search across items, variants, versions, and categories.
procedure LoadAttributesByRecID(RecIDPar: RecordId; ClearPar: Boolean): Code[20]
Parameters:
RecIDPar: The record ID of the source record (Item, Item Variant, Item Version, or Item Category) from which to load associated item attributes and their mappingsClearPar: Flag indicating whether to clear the existing filter buffer before loading new attributes (true) or append to existing attributes (false) for hierarchical loading scenarios
Returns: Code[20] value (currently not used in implementation but maintained for interface compatibility)
Events#
OnBeforeLoadAttributesByRecID(Record Filter Item Attributes Buffer, RecordId, Boolean) :#
Summary: Triggers before loading attributes by record ID in attribute search.
[IntegrationEvent(false, false)]
local procedure OnBeforeLoadAttributesByRecID(var TempFilterItemAttributesBuffer: Record "Filter Item Attributes Buffer" temporary; RecIDPar: RecordId; ClearPar: Boolean):
[EventSubscriber(ObjectType::Page, Page::"KVSFCYAttributeSearch", 'OnBeforeLoadAttributesByRecID', '', false, false)]
local procedure DoSomethingOnBeforeLoadAttributesByRecID(var TempFilterItemAttributesBuffer: Record "Filter Item Attributes Buffer" temporary; RecIDPar: RecordId; ClearPar: Boolean)
begin
end;
Parameters:
TempFilterItemAttributesBuffer: Temporary filter buffer for item attributesRecIDPar: Record ID to load attributes fromClearPar: Flag indicating whether to clear existing attributes