RE: objectAtIndex of A WORepitition
RE: objectAtIndex of A WORepitition
- Subject: RE: objectAtIndex of A WORepitition
- From: "Williams, Alex" <email@hidden>
- Date: Thu, 23 Oct 2003 11:09:56 +0100
Hi Jonathan,
Maybe I've misunderstood your problem but, if not, it's very simple. In your
component you need:
protected NSArray users;
protected User userItem;
public adminUserIdForUserItem()
{
return userItem.tbAdminUserID();
}
You bind users to the "list" binding of your repetition and userItem to the
"item" binding. Then, in each row, you have a WOString with
value=userItem.name and another WOString with value=adminUserIdForUserItem.
It's as easy as that!
Hope that helps,
Alex
-----Original Message-----
From: Jonathan Fleming [mailto:email@hidden]
Sent: 23 October 2003 08:23
To: email@hidden; email@hidden
Subject: objectAtIndex of A WORepitition
Hi Guys
I want to try and use the userID that is in a row of a WORepitition to
establish a list of categories for that "user" in a popup within the
WORepititon's row
I'm think of something like this:
if I can get the index that the row is at (dynamically) I'm hoping I can use
a statement such as objectAtIndex(int
theFoundIndex).valueforKey("tbAdminUserID"); to then get the userID which is
what I'm after from each row of the list.
I know how to get the PK when that user's objects are being used that's easy
now (it wasn't once), but how do you do this when the objects are in a
WORepitition list so that each userID can do it's work?
Or can't this be done?
Regards
Jonathan :^)
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
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.
________________________________________________
This message is confidential. It may also be privileged or
otherwise protected by work product immunity or other legal
rules. If you have received it by mistake please let us know
by reply and then delete it from your system; you should not
copy the message or disclose its contents to anyone. All
messages sent to and from Linklaters may be monitored to
ensure compliance with internal policies and to protect our
business.
Please refer to http://www.linklaters.com/regulation for
important information on the regulatory position of the firm.
_______________________________________________
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.