Hi I have a very basic doubt about FBN All the data is stored as STRINGS Where should we convert the data into appropriate type For example we need to convert "Avail Seats" to Integer. And where should be this mapping. Is it OK to modify data info class Thanks
Ramandeep Singh
Paul Anilprem
Enthuware Software Support
Ranch Hand
Joined: Sep 23, 2000
Posts: 2547
posted
0
You can parse the avail. seats string to an integer when you need to process it. For ex. while validating a booking request (no of seats required should be less than no of seats available) or while updating the database after reducing the no. of available seats. For displaying etc. you can simply use it as a string. You can say that this is a limitation of your database that you can only store strings. You can but you don't need to modify the Data class for this. -Paul. ------------------ Get Certified, Guaranteed! www.enthuware.com/jqplus
Thx Paul Yeah I can convert the fields for claculation. But in that case I have to hardcode the conversion on client side. But I think it is okay for this application. Any Comments?