Greetings.
What a headline: SQLite, Column Names, and AHLocale
I want to take advantage of all the wonderful presentation tools to the end user that Webview and Tables (original by Erel and expanded by Klaus) offer. Using these tools, I can quickly put together a query and give the end user a nice looking table to look at and if it is a table, one that he/she can even sort. GREAT!
Issue:
1. End users who speak different languages.
2. The header contains the column names used to create the data base.
3. The Queries contain the column names.
4. A Spanish speaking user would want to see Apellido and not Surname or Last Name in the Table or Webview; a German speaking user, Nachname; Italian - Cognome. You get the drift...
What I think I know:
1. I could select 4 or 5 languages and create data bases with the native language column names.
This solves part of the problem.
2. What about queries? Column numbers, from what I have read, cannot be used in queries, and is not really desirable for maintenance. Thus, this is a problem.
Could the column name be a variable IN A QUERY?
How could this Query be rewritten if:
I am out of my league in this area. What are best practices related to this issue?
Any help will be welcomed.
Thank you.
What a headline: SQLite, Column Names, and AHLocale
I want to take advantage of all the wonderful presentation tools to the end user that Webview and Tables (original by Erel and expanded by Klaus) offer. Using these tools, I can quickly put together a query and give the end user a nice looking table to look at and if it is a table, one that he/she can even sort. GREAT!
Issue:
1. End users who speak different languages.
2. The header contains the column names used to create the data base.
3. The Queries contain the column names.
4. A Spanish speaking user would want to see Apellido and not Surname or Last Name in the Table or Webview; a German speaking user, Nachname; Italian - Cognome. You get the drift...
What I think I know:
1. I could select 4 or 5 languages and create data bases with the native language column names.
This solves part of the problem.
2. What about queries? Column numbers, from what I have read, cannot be used in queries, and is not really desirable for maintenance. Thus, this is a problem.
Could the column name be a variable IN A QUERY?
B4X:
SELECT * FROM Persons WHERE [Last Name] = "Smith"...
How could this Query be rewritten if:
B4X:
Dim Col(2) as String
Col(2)="Last Name"
I am out of my league in this area. What are best practices related to this issue?
Any help will be welcomed.
Thank you.
Last edited: