You wrote:
[ Hello, everyone.
[
[ I'm new to WebObjects and my quesion may sound trivial. I've searched
[ documentation, but couldn't find the answer.
[ I've created a Fetch Specification that uses qualifier variables. I am
[ trying to set their values from the code and then fetch data.
[ Documentation suggests to bind qualifier variables to elements of
[ interface, but this is not what I want to do. I want to do everythign in
[ the code.
[ Could anyone, please, help me out with this?
[
[ Thanks a lot.
[ Leon
[
[ P.S. I'm using version 4 under NT.
[
Leon,
If you go to the WOInfoCenter and search for EOQualifier and go to
the EOQualifier documentation, you should find a link to constructing
qualifiers which covers programmatic creation of qualifiers. After creating
a qualifier and fetchSpecification, you can get objects from the database by
asking [anEditingContext objectsWithFetchSpecification:myFetchSpec], or, if
you have a WODisplayGroup with an EODatabaseDataSource, you can set your
qualifier on the dataSource's fetchSpecification and then tell the
displayGroup to fetch.
Regards,
Paul
---
Paul Summermatter
LGS Systems, Inc.
Medical Computing Division
15 TJ Gamester Ave
Portsmouth, NH 03801-5871
(603) 433-9822 voice
(603) 433-9818 fax
(888) 898-6321 pager
[EMAIL PROTECTED] paging email
[EMAIL PROTECTED]
(NeXT or MIME Mail Welcome)
http://www.lgs-systems.com