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: Chuck Hill <email@hidden>
- Date: Wed, 12 May 2004 08:53:59 -0700
You will need to use the href (for the url) and queryDictionary (for
the part after ?) bindings on a WOHyperlink. You will also need to add
a target = "_blank" binding.
Chuck
On May 12, 2004, at 7:35 AM, Justin Tocci wrote:
I am trying to get a link that displays the tracking number in a
WORepetition.
The tracking number is in the link so that the page comes up showing
what happened with that particular package.
Here's an example:
Part Number Tracking Number Shipping Company
123zx 8574365475 Fed-Ex
222qw 1z2xx1203475 UPS
MS122 3n3n3n3333 DHL
The tracking numbers in this example would show up as links to the
shipping companies web sites, and in the link it would insert the
tracking number so that the particular package details would show on
the screen. Here is the basic html goal:
<a href="http://www.ups.com?id= 8574365475"
target="_blank">8574365475</a>
Right now it is in Javascript and it looks like this (not my code):
<script>
function openWindow(url) {
popupWin = window.open(url, 'new_page',
'top=15,left=15,width=650,height=475,scrollbars=yes')
}
</script>
<snip>
<a Title="Click to view Tracking Info" href="Javascript:
openWindow('http://wwwapps.ups.com/etracking/tracking.cgi?
tracknums_displayed=5&TypeOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumb
e
r1= 8574365475');">
<Font Color=blue >8574365475</font>
</a>
Any advice is welcome. I wrote a method that worked well for html
version, but I don't yet know how to insert the tracking number into
the link. My page has is a Display Group displaying a EOUtilities
fetch.
public NSArray objectsByUser() {
return
EOUtilities.objectsMatchingKeyAndValue(session().defaultEditingContext(
)
,
"Xyourorderstat",
"username",
((Session)session()).getLogin());
}
I want to point out that, either Javascript or html, I need access to
the data in the method, because I need to determine which shipping
company's website to go to.
Justin Tocci
Fort Wayne, IN
(last time I didn't give enough info, sorry if I gave too much)
_______________________________________________
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.