Re: Creating a data-dynamic link in a WORepetition?
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.