CatalogManager.<Catalog name>.FindByCode
Syntax:
Parameters:
<Code> (required)
Search code.
It can be string or number depending on the catalog settings in the Configuration Manager.
<SearchByFullCode> (optional)
Determines search mode by a complete code. True specifies that the searched code should be set as a string containing a sequence of codes by catalog level delimited by "/" symbol.
Default value: False.
<Parent> (optional)
Parent to be searched. If it isn't specified the search is performed in the whole catalog.
<Owner> (optional)
Owner, within which you should perform searching. If it isn't specified the search is performed in the whole catalog.
Returned value:
If there is no item with the specified code, an empty reference is returned.
If code is not set (length = 0) for a catalog, the Undefined value is returned .
Description:
Availability:
Example:
StringOfCode = "840"; Currencies = Catalogs.Currencies; FoundReference = Currencies.FindByCode(StringOfCode); If FoundReference = Currencies.EmptyRef() Then Message("There is no """ + StringOfCode + """ currency"); EndIf; |