NextGen Knowledge Center

LIKE String Function

Use:Looks at the existing fields that are on the template.
Syntax:
{LIKE( «string» , «control name», «data type»)}
Arguments:

Table: "tablename"
Field: "fieldname"
Type: "Text", "Numeric", "Date" or "Decimal" and so on.
Hidden: "Y" hidden or "N" Not Hidden
Value: Value in field to compare
ValueNot: Value field not equal to
Panel: "Name of panel"
Style: One of the following -"Required Read", "Required", "Read-Only", or "Normal".
Control: One of the following - "ActiveImage", "Checkbox", "Edit", "ActiveText", "Button", "RadioButton", "DataSheet", "Label", "Graph", "LabOrder", "LabSummary", "Commponent", "DataGrid", "DemoGrid", "Employer", or "Note" and so on.
Attrib: Name of attribute that is {KBM.CodifyField} 
AttribValue: Value of attribue "True" 
Returns:Returns a parameter list to be used in function like SHOW, ENABLE, ASSIGN, FIELDSTYLE for the Trigger Scripting function
Example:
{LIKE( {P( Table:"local", Field:"txt_display", Type:"Text", Control:"Edit", Hidden:"N" )} )}

Result: A string parameter list of field names that match the like criteria.