Hi all, I'm fairly new (only registered yesterday) to this group, and have had the assignment for the last three days. I have a couple of questions, please. First of all, is there any 'grouping' (for a lack of the better
word) of relevant issues on this site? I.e., all the posts relevant to the 'lock/unlock' issue?
I have a question regarding criteriaFind() method. Wasn't able to find any relevant posts (I suspect it could be because it's a 'newby' question), if one already exists please point me to it (and I apologies to all for the bandwidth waste
).
My question is about the argument sent to the criteriaFind() method. After reading the instructions, I think it should be written to accept any number of field/value comma separated parameters. Is that correct? Now, the example of the
String argument given to me was "Carrier='SpeedyAir',Origin='SFO'" . This 'Origin' part of the argument is confusing to me. The GUI section specifies the selection of the 'origin' and 'destination' fields. I had a look at the database, including the field names. The two required fields have names 'Destination Airport' and 'Origin Airport'. It would be much easier to select the records which satisfy the search criteria if I could send the EXACT field names as a parameters, ie. "Destination Airport='LAX',Origin Airport = 'SFO'". Should I expect the field names passed to be correct (full), or do I need to cater for the parameters like "Destination='LAX',Origin='SFO'" also? There are three fields which start with the letter 'D', so if I have to accept the partial field names, I'll need at least two characters. It seems ... wrong.
I know I can format the argument any way I want it (I will put values for both fields into JComboBox-es for user to select before I call criteriaFind()), but I want to make sure my criteriaFind() method is written properly.
TIA, Branko.
[ April 18, 2002: Message edited by: Branko Paskutini ]