Skip to main content

DataTable & TabularDataModelAdapter

No replies
chicuslavic
Offline
Joined: 2005-02-26

Hi,

DataTable dt = ds.createTable("tier");
DataColumn idcol = dt.createColumn("id");
idcol.setType(Integer.class);

TabularDataModelAdapter tdma = new TabularDataModelAdapter(ds.getTable("tier"));
JNForm form = new JNForm();
form.bind(tdma);

q1: from where he know data types, for columns?
q2: is this a right way to bind form with dataTable?

Slavic
P.S. where I can see a complete working example using a relational database?