• 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: Creating a data-dynamic link in a WORepetition?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a data-dynamic link in a WORepetition?


  • Subject: Re: Creating a data-dynamic link in a WORepetition?
  • From: Arturo Perez <email@hidden>
  • Date: Wed, 12 May 2004 11:35:27 -0400

Justin Tocci wrote:

I am trying to get a link that displays the tracking number in a WORepetition.
Here is the basic html goal:


<a href="http://www.ups.com?id= 8574365475" target="_blank">8574365475</a>


Let's assume you have an object (possibly EO) defined with the following key values:
public Order extends <something> {
public URL shippingCompanyURL;
public String shippingCompanyOrderNo;
}
You have an array of these named orders and you have an item variable named iteratorVariable. You bind those to the WORepetition.


Then you should be able to bind your WOHyperLink fields to
	href: iteratorVariable.shippingCompanyURL
	string: iteratorVariable.shippingCompanyOrderNo

You can either use the queryDictionary binding to append the tracking number to the shipping company's URL or do it yourself within the shippingCompanyURL thing.


-arturo _______________________________________________ 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: 
 >Creating a data-dynamic link in a WORepetition? (From: Justin Tocci <email@hidden>)

  • Prev by Date: Re: Refreshing objects
  • Next by Date: Re: Refreshing objects
  • Previous by thread: Re: Creating a data-dynamic link in a WORepetition?
  • Next by thread: Entity / Attributes / Import
  • Index(es):
    • Date
    • Thread