Re: rawRowsForSql - appending a Number to the String
Re: rawRowsForSql - appending a Number to the String
- Subject: Re: rawRowsForSql - appending a Number to the String
- From: George Domurot <email@hidden>
- Date: Sun, 9 Nov 2003 16:50:49 -0500
Jonathan: I believe, all you need to do is call the toString() method
to get the String equivalent of the Number.
On Nov 9, 2003, at 8:05 AM, Jonathan Fleming wrote:
Is it possible to use a PK (Number type) dynamically with
rawRowsForSql? As you know the SQL String argument is of a String
types. Eg.
aTbCategoryList = new
NSMutableArray(EOUtilities.rawRowsForSQL(ec,
"BTT",
"SELECT DISTINCT dbo.TB_CATEGORY.CATEGORY_NAME FROM dbo.TB_CATEGORY
INNER JOIN dbo.TB_ADMIN_USER ON dbo.TB_CLIENT.TB_ADMIN_USER_ID = "
+ new Integer( ((Application)application()).getTbAdminUserID())));
The code works without the PK appended, obviously, but I need to be
able to dynamically enter the PK.
Any suggestions?
Regards
Jonathan :^)
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
_______________________________________________
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.