documentation confusion

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

documentation confusion

Postby RobertMeyer » Thu Mar 25, 2004 6:13 pm

i got the following helpful response from the servoy
support folks last week:

Code: Select all
//get a specific table and get column info
var jstable = databaseManager.getTable('user_data','orders');
var columnNamesArray = jstable.getColumnNames();


which was exactly what i needed; but...i can't seem to
get an answer to the following question: the function
databaseManager.getTable returns an object of type
JSTable; is this a servoy-defiend object? or is it a
'standard' javascript object? where is it defined?
and, most importantly, where can i get documentation
on this, and other related objects, like JSColumn?

these items are not described in any of the servoy pdf
documents, or in the help system that comes with
the product.

i've also searched the web, and found very little information
on them. i'm so confused!

thanks in advance.
rm.
RobertMeyer
 
Posts: 268
Joined: Sat Dec 27, 2003 9:05 pm

Postby Jan Blok » Fri Mar 26, 2004 12:14 pm

We extended the sample data and showed the JSTable/JSColumn as return types under databaseManager in Servoy 2.0 rc10.

sample:
Code: Select all
//get a specific table and get column info
var jstable = databaseManager.getTable('user_data','orders');
var tableSQLName = jstable.getSQLName();
var columnNamesArray = jstable.getColumnNames();
var firstColumnName = columnNamesArray[0];
var jscolumn = jstable.getColumn(firstColumnName);
var columnLength = jscolumn.getLength();
var columnType = jscolumn.getType();
var columnSQLName = jscolumn.getSQLName();


columnType is the same integer as found in: http://java.sun.com/j2se/1.4.2/docs/api ... .sql.Types.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 7 guests

cron