OD SET CLAUSE IN CONTEXT

4D - Documentation   Français   English   German   English   4D for Oracle, Command Theme List   4D for Oracle, Command Alphabetical List   Back   Previous   Next

version 1.5


OD SET CLAUSE IN CONTEXT (context_ID; clauseNumber; clause)

ParameterTypeDescription
context_IDLongintContext identifier
clauseNumberIntegerNumber of clause to set
clauseStringText of clause

Description

The OD SET CLAUSE IN CONTEXT command accomplishes procedurally what OD EDIT CLAUSES IN CONTEXT allows you to do graphically.

You should use OD SET CLAUSE IN CONTEXT when you do not want users to build their own clauses. If you would like users to have some control over the clauses, but want to create a different interface for entering the clauses, you can specify a variable containing the clause in the clause parameter.

OD SET CLAUSE IN CONTEXT defines a clause in a context. context_ID must be the identifier for a previously created and inactive context.

clauseNumber is a number representing the clause you want to define:

Clause NumberClause
2WHERE
3GROUP BY
4HAVING
5CONNECT BY
6START WITH

clause is the text of the clause without the associated keyword (i.e. without the "WHERE" or other keyword).

Example

The following statement creates a WHERE clause that can be used to search for employees in department number 30:

   OD SET CLAUSE IN CONTEXT (Context_ID;2;"DEPTNO = 30")

See Also

OD EDIT CLAUSES IN CONTEXT, OD Get clause in context.


4D - Documentation   Français   English   German   English   4D for Oracle, Command Theme List   4D for Oracle, Command Alphabetical List   Back   Previous   Next