• 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: James Cicenia <email@hidden>
  • Date: Wed, 2 Jun 2004 16:19:48 -0500

are you trying to replace your hard coded string with the rendered
kitNumber? If,
so that is very easy... just replace "TLCAAA123" with your bound
variable.

I think something like so:

Part part = (Part)companyDisplayGroup.selectedObject();
> session.setkitNumber(part.kitNumber);


Hope this helps,
James


On Jun 2, 2004, at 3:24 PM, 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?
>
> 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.
_______________________________________________
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: Beating request-response cycle on debug?
  • Next by Date: Re: Another plea for help from a newbie
  • Previous by thread: Another plea for help from a newbie
  • Next by thread: Re: Another plea for help from a newbie
  • Index(es):
    • Date
    • Thread