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 > Non-Database mode - Dataobjects/EJB/Hibernate/File/Array/Vector Post New Topic   Post A Reply
column order with vector of javabeans printer friendly version
next newest post | next oldest post
Author Messages
Mike Lindenblatt
Unregistered
Edit or delete this message Reply w/Quote
Posted Tuesday, February 20, 2007 @ 20:41:46  

Hi,

i am using quicktable mit Vector of JavaBeans.

i am experiencing following issue:
I need to determine the Column order.

I found out to use move column.

BUT:
The initial order seems not to be determininistic, especially with different java versions (1.4.2_08 vs. 1.5).

Problem: when initial order is not the same, how can i reorder ?

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Tuesday, February 20, 2007 @ 21:49:33  

I think you are using the following method to load the javabeans
dbTable.refreshDataObject(valueList,null);

Instead if you pass the method array to refreshDataObject, then the columns will have the same order in which you provide the methodnames array.

String[] methodNames = new String[]{"getNo", "getName"};
dbTable.refreshDataObject(valueList,methodNames);

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