Language Sensitive Data sources

Top  Previous  Next

In order to turn the data sources into the language sensitive data sources @vof(LANG) definition is used in the query. @vof(LANG) definition resolves to the language code of the page to be displayed next.

Example:

Assume that you have a table called countries as follows.

language_sensitive_countries

 
Just define the Query property of your Relational Database datasource as

SELECT @vof(LANG) AS COUNTRY_NAME from countries

 

Before executing the query the RelDB component will resolve the @vof(LANG) symbols in it and form the query as follows.

SELECT en AS COUNTRY_NAME from countries