IsAMatchingWordSelection

Item Word Search Application Business Function

Minor Business Rule

Object Name: B4101200

Parent DLL: COPBASE

Location: Client/Server

Language: C

Input:
sz???

mn???

idWordListPointer = ptr to linked list of words created by ParseItemSearchString


Output:

cIsAMatchingSelection = '1' if its a matching selection


Functionality:

Given the Short Item Number and the 2nd Item Number, the function will check to see if all of the 
other words (from the search string) in the linked list of words are also contained in that selection.  

If all words are found to be contained in the selection, cIsAMatchingSelection will be equal to '1'.


^

Data Structure

D4101200A - Is A Matching Item Word Selection

Parameter NameData ItemData TypeReq/OptI/O/Both
mnIdentifierShortItemITMMATH_NUMERICOPTNONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

idWordListPointerGENLNGIDOPTNONE

General purpose ID variable.

cIsAMatchingSelectionEV01charOPTNONE

An option that specifies the type of processing for an event.

Related Functions

None

Related Tables

None
ParseItemWordSearchString

ParseItemWordSearchString

Item Word Search Application Business Function

Minor Business Rule

Object Name: B4101200

Parent DLL: COPBASE

Location: Client/Server

Language: C

ParseMenuSearchString

Input:

szSearchString[61] = string to parse

cSortByNumOccurrencesYorN -> pass in Y

cDoubleByteUserYN 


Output:

nNumberofWords = number of words in resulting list of words

cDone = status character

idWordListPtr = pointer to head of linked list of words 


Functionality:

Parses the search string into a linked list of words sorted by increasing number of occurrences (from the F00826 

Occurrences Table). Word with least number of occurrences will be first. Calls StringToWords (see its documentation for 

more information).


You MUST at some point call DeleteListOfWords (passing in idWordListPtr) to free memory allocated by this function. 

^

Data Structure

D4101190A - String To Words Data Structure

Parameter NameData ItemData TypeReq/OptI/O/Both
szSearchStringSRCHSTRNGcharOPTNONE

szSystemCodeSYcharOPTNONE

A user defined code (98/SY) that identifies a system. Valid values include: 01 Address Book 03B Accounts Receivable 04 Accounts 
Payable 09 General Accounting 11 Multicurrency

idTableHRequestGENLNGIDOPTNONE

General purpose ID variable.

nNumberOfWordsINT01integerOPTNONE

Number of Days in Future to Query for Responses Due. 

cDoneDONEcharOPTNONE

idWordListPtrGENLNGIDOPTNONE

General purpose ID variable.

szCountryCTRcharOPTNONE

A user defined code (00/CN) that identifies a country. The country code has no effect on currency conversion. The Address Book system 
uses the country code for data selection and address formatting.

cDoubleByteuserYNEV01charOPTNONE

An option that specifies the type of processing for an event.

Related Functions

None

Related Tables

None