• 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: Another plea for help from a newbie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another plea for help from a newbie


  • Subject: Re: Another plea for help from a newbie
  • From: Art Isbell <email@hidden>
  • Date: Wed, 2 Jun 2004 11:49:00 -1000

On Jun 2, 2004, at 10:24 AM, Justin Tocci wrote:

I've got a WORepetition table that has a column called KitPartNumber on
my first screen. I wrapped that column in a WOHyperlink so I could
click on all the different KitPartNumbers in the list and bound it to
this method:

public drawingDetail gotoDrawing()
{
Session session = (Session)session();
session.setkitNumber("TLCAAA123");
drawingDetail nextPage = (drawingDetail)pageWithName("drawingDetail");
return nextPage;
}


When I click on a KitPartNumber I get the details for the TLCAAA123
KitPartNumber displayed on the second screen. What I can't figure out
is, what do I do to get the KitPartNumber that is being clicked to get
set in the session so the next page picks it up and displays the
details for the one I clicked?

Looks like you're just trying to pass the selected object from one component to another. The selected object is bound to the repetition's "item" key (e.g., "kitPartItem"). So there's no need to involve Session in passing this object and there's no need to refetch it in your second component.


	// A Java class name starts with an uppercase character by convention.
	public DrawingDetail gotoDrawing() {
		DrawingDetail nextPage = (DrawingDetail)pageWithName("DrawingDetail");
		nextPage.setKitPart(kitPartItem);
         return nextPage;
    }

Aloha,
Art
_______________________________________________
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.


References: 
 >Another plea for help from a newbie (From: Justin Tocci <email@hidden>)

  • Prev by Date: Re: Another plea for help from a newbie
  • Next by Date: Re: Beating request-response cycle on debug?
  • Previous by thread: Re: Another plea for help from a newbie
  • Next by thread: Re: Another plea for help from a newbie
  • Index(es):
    • Date
    • Thread