• 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: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent


  • Subject: Re: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
  • From: Thomas Peters <email@hidden>
  • Date: Fri, 01 Nov 2013 16:04:49 -0400

thanks to both of you for your reply.

	The resultsList is an NSArray type casted to a Movie object. and has 5 elements in the array.
	I have setMovie and getMovie accessor methods.

I am trying to understand how to get the index of the selected element in the array.  the WOHyperlink is inside the WORepetition…  and I have 5 movies inside bases on the results of a fetch.  The WOHyperlink has the movie title set for each in the ResultTitle.  However, I am trying to understand how to pass the current object.

Thomas



On Nov 1, 2013, at 8:41 AM, Theodore Petrosky <email@hidden> wrote:

> Do you have accessors for 'movie'? setter and getter?
>
> I do this with an ajaxmodaldialogopener and it would not work without the setter and getter.
>
> Ted
>
>
>
> --------------------------------------------
> On Thu, 10/31/13, Thomas Peters <email@hidden> wrote:
>
> Subject: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
> To: "WebObjects Development" <email@hidden>
> Date: Thursday, October 31, 2013, 9:05 PM
>
> I have the following…
>  This should be working… the movie that is getting
> passed to setMovie on the MovieDetails method is null.
>  The WOHyperLink id inside the WORepetition that is the
> results list of movies.  Typical demo... what am I
> doing
> wrong?___________________________ Main.woResults : WORepetition {	list = resultsList;	item = movie;	index = indexrt;}
> ResultTitle :
> WOString {	value = movie.title;}
> MovieLink2 :
> WOHyperlink
> {	action = showDetails;}
> ___________________________Main.html<snippet>	<webobject name =
> "Results">
> 		<webobject name="MovieLink2">			<webobject name =
> "ResultTitle"
> />		</webobject><br><br>
> 	</webobject></snippet>
> ___________________________Main.java<snippet>	public WOComponent
> showDetails() {		MovieDetails detailsPage =
> (MovieDetails)pageWithName("MovieDetails");		detailsPage.setMovie(movie);		return detailsPage;	}</snippet>
>
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> 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
>


 _______________________________________________
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: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
      • From: Theodore Petrosky <email@hidden>
    • Re: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
      • From: Klaus Berkling <email@hidden>
References: 
 >Re: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: validatating to-many relationship
  • Next by Date: Re: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
  • Previous by thread: Re: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
  • Next by thread: Re: I am trying to create a WOHyperlink inside a WORepetition > null target WOComponent
  • Index(es):
    • Date
    • Thread