Data Table Components in Sun Java(TM) Studio Creator 2
Background
Binding a Data Table Component to a Database Table
You can bind a Data Table component to a database table using the Table Layout dialog. You actually bind the Data Table component to the database table’s RowSet. Follow the steps outlined here to see how this is accomplished.
- Drop a Data Table from the Standard section of the Palette on to a page in the Design window.
- Add a database table to the page. In the Servers window, right-click a database table from the Data Sources node and select Add to Page from the context menu.
- Select the Data Table component. You can select the component in the Outline window or on the Design window page. Right-click to bring up its context menu and click Table Layout.
- From the Table Layout dialog, select the appropriate RowSet for the Get data from: prompt. Click OK. Figure 1 shows personRowSet selected from the dropdown list.
Figure 1: Bind Table to RowSet
|
After the operation completes, the Data Table component on the page changes to reflect the binding to the database table. The Data Table is now bound to the PERSON database table, personRowSet, as shown in Figure 2.
Figure 2: Standard Data Table Component After Binding
|
More Developer Resources
For more tech tips, articles, forums, tutorials, weblogs, and other expert advice for developers, visit the Java Studio Creator developer resources on the Sun Developer Network (SDN) at http://developers.sun.com/jscreator/
Chưa có phản hồi.
-
Gần đây
-
Liên kết
-
Lưu trữ
- Tháng Sáu 2008 (26)
- Tháng Năm 2008 (2)
- Tháng Tư 2008 (15)
- Tháng Ba 2008 (32)
-
Chuyên mục
-
RSS
RSS của bài viết
RSS của phản hồi
