for(ArrayList record : result){
Farakh khan wrote:Thanks Ravi for helping me again but its throwing the following errors:
Smarty Ravi wrote:You might have made mistake some where else.
I have to convert it to String to use some columns for further formatting
String query= "select patient_id,to_char(rDate,'Month dd,yyyy') from patients order by patient_id desc";
Why are you converting text data to a string in your query?
Is there a PK constraint or a unique constraint on patient_id? What do you get when you run this query directly against your database?
Where do you call viewPatients?
Smarty Ravi wrote:Actually the coding above is very much perfect and doesnt require any more changes. May be you might have done some mistaken in your coding. Check out again ...
String patientId = (String) record.get(0)
then the columns are here there not displaying in accurate way
Of course, I found a very beautiful couch. Definitely. And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
|