company logo

Property :: setContextVariables - Set context variables

Sometimes the behavior of an object instance is context dependent (e.g. the language set defines the language displayed in an generic attribute might depend on current GUI settings). Usually the context is set automatically when accessing object instances in a certain hierarchy. Some applications, however, do access objects by instance identity (LOID). In this case the context is often undefined. To set the proper context information the function can send a context string that passes context parameters in sParameter from the property handle to the property and/or type context.

In order to process context information properly, the DBBaseContext::setContextVariables() function must be overloaded in appropriate specialized context class(es).

Implementation details

Property  :: setContextVariables ( odaba::String &sParameter )
  • sParameter - Parameter value

    Parameter values allow passing one or more parameters in a parameter string. Usually, parameters are separated by spaces. Parameters containing spaces have to be quoted using double quotes.