craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > QuickTable Installation Issues Post New Topic   Post A Reply
integration with existing Swing app printer friendly version
next newest post | next oldest post
Author Messages
anand.kannan{@}orange.co.in
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Hi,
I already have an existing swing application that accepts 3 inputs from the user based on which a query needs to be run on the local access database and relevant records retrieved.

In other words, I would like my application to pass these parameters to QuickTableFrame which displays the results based on the 3 p'meters supplied.

How could this be done?.

admin{@}quicktable.org
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Andy,

It is possible to implement this using quicktable. Please have a look at CustomerOrderDemo.java in the samples directory, that explains how you can change the query and refresh Quicktable with new query results. The basic idea is to change the selectSql to your new sql and call refresh()

example

public void findEmployee(String name)
{

yourQuickTable.setSelectSql("select * from employee where employee_name like '%" + name + "%'";
yourQuickTable.refresh();
}

Ben

Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios