Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to fetch available seats from DataIInfo at client end ?

 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I am facing a problem in fetching Available seats from DataInfo which i got by calling getRecord(reco) at client end.
Should i hardcode objDataInfo[8] to get AVailable Seats at client end or should i modify DataInfo class to provide a method such as :
public String getValue(String colname)
to get any value depending on header name. IS there any other way to do this ?
Pls help me. My work is stucked becoz of this problem
Regards
Amit Kumar
 
Marre Mask
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implement a getValue(String value) function. I will work fine and the code will be clearer.
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marre Mask for the reply.
I still have a doubt regarding this.
Pls tell me where should i place this getValue(colname) method.
Inside DataInfo class or in FlightServices classs at client end where all the methoid being called by GUI is wriiten
Pls help
Amit Kumar
 
Kumar Amit
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any body pls help me in this problem
Regards
Amit
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic