AWTX ホーム | デモ | ドキュメント(英語) | ダウンロード | サポート
サンプルリスト
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
New:
TreeTableアプレットをWebアプリケーションに利用した例
(マルチアカウントWebメーラー)がご覧いただけます。
1. ツリー表示とグリッド表示
2. グリッド表示のみ(NorthWind.mdb)
下記で Advanced バージョンの魅力的な機能がご覧いただけます。
3. セル内のチェックボックス
4. セル値の修正 - テキストフィールド
5. セル値の修正 - ドロップダウンリスト(コンボボックス)
6. コラムのドラッグ - 並べ替え
7. セル内のハイパーリンク
8. ポップアップメニュー
9. 多言語サポート(日本語)
10. ダイナミックローディング - ASP コードサンプル
<%
Delim = "@"
ParentId = request("id")
ParentId = mid(ParentId,2)
Set con = getConnection()
Set rs = con.Execute("select * from Bookstore_Categories" &_
" where ParentId=" & ParentId & " order by Id")
Do While Not rs.EoF
id = "c" & rs("id")
text = rs("name")
response.write id & Delim & text & Delim & id & Delim &_
"1" & Delim & "#ffffff" & Delim & "2" & Delim & "2"
response.write vbCrLf
rs.MoveNext
Loop
rs.close()
Set rs=Nothing
Set rs = con.Execute("select * from Bookstore_Books" &_
" where CategoryId=" & ParentId & " order by Id")
Do While Not rs.EoF
id = "b" & rs("id")
title = rs("Title")
author = rs("Author")
dscr=rs("Description")
icon=rs("Icon")
url=rs("URL")
if title="" then title=" "
if author="" then author=" "
if dscr="" then dscr=" "
if icon="" then icon=" "
dscr = replace(dscr,vbLf,"\n")
url = replace(url,vbLf,"\n")
text = title & "|" & author & "|" & dscr & "|" & icon & "|" & url
response.write id & Delim & text & Delim & id & Delim &_
"0" & Delim & "#ffffff" & Delim & "3" & Delim & "3"
response.write vbCrLf
rs.MoveNext
Loop
rs.close()
Set rs=Nothing
con.close()
Set con=Nothing
%>
11. ダイナミックローディング - JSP コードサンプル
<%
String id=request.getParameter("id");
int k=id.indexOf(",");
int lev=Integer.parseInt(id.substring(0,k));
int newLev=lev+1;
id=id.substring(k+1);
Connection con = getConnection();
Statement st = con.createStatement();
if(lev==0)
{
ResultSet rs = st.executeQuery("select * from customers");
while(rs.next())
{
String rs_id=newLev + ",'" +rs.getString("CustomerID")+"'";
String rs_lbl=rs.getString("CompanyName");
out.println(rs_id + "@" + rs_lbl + "@" + rs_id + "@1");
}
rs.close();
}
if(lev==1)
{
ResultSet rs = st.executeQuery("select * from orders where CustomerID="+id);
while(rs.next())
{
String rs_id=rs.getString("OrderID");
String rs_lbl="Order #"+rs_id;
rs_id=newLev + "," +rs_id;
out.println(rs_id + "@" + rs_lbl + "@" + rs_id + "@1");
}
rs.close();
}
if(lev==2)
{
ResultSet rs = st.executeQuery("select t1.*,t2.productname"+
" from [order details] t1,products t2"+
" where t1.orderid="+id+" and t2.productid=t1.productid");
NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
NumberFormat nf2 = NumberFormat.getPercentInstance(Locale.US);
while(rs.next())
{
String rs_id=newLev + "," +rs.getString("orderid");
String rs_lbl=rs.getString("productname");
float rs_up=rs.getFloat("unitprice");
int rs_q=rs.getInt("quantity");
float rs_dc=rs.getFloat("discount");
float ep = rs_up * rs_q * (1-rs_dc);
rs_lbl += "|"+nf.format(rs_up)+"|"+rs_q+"|"+nf2.format(rs_dc)+"|"+nf.format(ep);
out.println(rs_id + "@" + rs_lbl + "@" + rs_id + "@0");
}
rs.close();
}
st.close();
con.close();
%>
ご質問やご意見がありましたらご連絡ください。お待ちしております。
他の製品もあわせてご覧ください。
|