• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Is there any get column method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Is there any get column method?


  • Subject: RE: Is there any get column method?
  • From: "Tanmoy Roy" <email@hidden>
  • Date: Wed, 14 Jul 2004 09:37:45 +0530
  • Thread-topic: Is there any get column method?

Hi,
I think the following piece of code will solve the problem. My query uses the raw rows for fetching and it can select any number or rows specified by the specifier NEWVAL1 or NEWVAL2. You have to specify the exct syntax of the specifier during fetching.

String query=
"select <field_name1> AS NEWVAL1, <field_name2> as NEWVAL2 from <table_name> where <whereclause>";

NSArray results1 = EOUtilities.rawRowsForSQL(editingcontext,"<any-eomodel>", query);

if( results1 != null && results1.count() > 0)
{

for(int i=0;i<results1.count();i++)
{

id = (String)((NSDictionary)results1.objectAtIndex(i)).objectForKey("NEWVAL1").toString();

vecId.addElement(((NSDictionary)results1.objectAtIndex(i)).objectForKey("NEWVAL1"));

}

}


Thanks and Regards

Tanmoy Roy
Apple ACD Team
Infosys Technologies Limited - Bhubaneswar
* Ph: +91-674-2320001-50
* Extn: 2190

> ----------
> From: 	email@hidden on behalf of Kevin Xiaowen Ren
> Sent: 	Wednesday, July 14, 2004 4:23 AM
> To: 	email@hidden
> Subject: 	Is there any get column method?
>
> Hi,
>
> When I use EOQualifier, it's always return the whole raw from table.
> Is there any API to get column from table?
>
> Thanks,
>
> kevin
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: WOLongResponsePage
  • Next by Date: Re: Using mod_rewrite
  • Previous by thread: Re: Is there any get column method?
  • Next by thread: WOLongResponsePage
  • Index(es):
    • Date
    • Thread