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

Another plea for help from a newbie


  • Subject: Another plea for help from a newbie
  • From: Justin Tocci <email@hidden>
  • Date: Wed, 2 Jun 2004 15:24:43 -0500

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?

The second page has a displaygroup and the code looks like this so far:

import com.webobjects.foundation.*;
import com.webobjects.appserver.*;
import com.webobjects.eocontrol.*;
import com.webobjects.eoaccess.*;

public class drawingDetail extends WOComponent {

     /** @TypeInfo Titemmaster */
     protected EOEnterpriseObject titemmaster;
     // This WODisplayGroup is initialized from the .woo archive in the
component's constructor method
     protected WODisplayGroup titemmasterDisplayGroup;
     protected int rowIndexItem;

     public drawingDetail(WOContext context) {
         super(context);
     }

	public NSArray objectForItem() {
    	    return
EOUtilities.objectsMatchingKeyAndValue(session().defaultEditingContext()
,
			"Titemmaster",
			"item",
			((Session)session()).getkitNumber());
	}

I am probably doing this all wrong, but I am way over on this project
and this is the last necessary page before I can deploy and the vast
majority of the pressure will be off. If anyone could point me in the
right direction I would be most grateful.

justin tocci
Fort Wayne, IN
_______________________________________________
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.


  • Follow-Ups:
    • Re: Another plea for help from a newbie
      • From: Art Isbell <email@hidden>
    • Re: Another plea for help from a newbie
      • From: James Cicenia <email@hidden>
  • Prev by Date: Beating request-response cycle on debug?
  • Next by Date: Re: Beating request-response cycle on debug?
  • Previous by thread: Re: Beating request-response cycle on debug?
  • Next by thread: Re: Another plea for help from a newbie
  • Index(es):
    • Date
    • Thread