• 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: Trouble referring to an item in a WORepetition in Java code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble referring to an item in a WORepetition in Java code


  • Subject: Re: Trouble referring to an item in a WORepetition in Java code
  • From: David Holt <email@hidden>
  • Date: Thu, 24 Nov 2005 12:28:23 -0800

Got it. I just had to refer to the item object that is being iterated (in this case aSurvey).

aSurvey.takeValueForKey(new NSTimestamp(),"dateOfLastChange");
mySession().setASurvey(aSurvey);

Sorry for the noise.


On 24 Nov 2005, at 12:21 PM, David Holt wrote:

Hi all,

In my Main component I have a conditional that appears if a user has created a survey. It is bound to session.user.surveys.@count. Inside the conditional I have a WORepition set to session.user.surveys and the item is aSurvey. There is a hyperlink to a method that returns the edit page.

I want to keep the survey data in the session (session.aSurvey). I am trying to pass the edit page the survey object, but I don't know how to access the session.user.surveys.aSurvey seen in WOBuilder using Java.

What should this method be?

public EditSurvey toEdit()
{
EditSurvey nextPage = (EditSurvey)pageWithName(");

// Initialize your component here
mySession.setASurvey = ??????


return nextPage;
}




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
--
Always do what is right. It will gratify half of mankind and astound the other.
<x-tad-smaller>
Mark Twain

from Sunbeams: http://www.thesunmagazine.org</x-tad-smaller>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trouble referring to an item in a WORepetition in Java code
      • From: wojingo <email@hidden>
References: 
 >Trouble referring to an item in a WORepetition in Java code (From: David Holt <email@hidden>)

  • Prev by Date: Trouble referring to an item in a WORepetition in Java code
  • Next by Date: Ingres 2.0 plug-in for WO
  • Previous by thread: Trouble referring to an item in a WORepetition in Java code
  • Next by thread: Re: Trouble referring to an item in a WORepetition in Java code
  • Index(es):
    • Date
    • Thread