Another plea for help from a newbie
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.