set_column_search_string

Declaration

set_column_search_string (name: COLUMN; value: STRING)

Description

Limits the contents of the current query to items whose column name matches (case-insensitive) the string value.

See Also

database functions
Database

Example

Suppose you have a list of 10 questions, each of which specify easy, medium or hard for a property difficulty. Specify this property in EML, like this:

<question difficulty = "easy">
</question>

Suppose also that 3 of these questions have specified their difficulty as easy. If you want to make the current query hold only those 3 questions, then call this function from script, like this:

script load_easy_questions is
  set_column_search_string ('difficulty', 'easy')
end