• 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: Chuck Hill <email@hidden>
  • Date: Wed, 12 May 2004 11:50:47 -0700

That will work for the first URL, but not the lower one with multiple values (unless you want to do more work in your code):

http://wwwapps.ups.com/etracking/tracking.cgi? tracknums_displayed=5&TypeOfInquiryNumber=T&HTMLVersion=4.0&InquiryNumbe r1= 8574365475'


Chuck


On May 12, 2004, at 11:46 AM, Patrick Robinson wrote:

Rather than using the queryDictionary binding, you could just add a new binding to the WOHyperlink:
?id
and bind it to the tracking number.


- Patrick

On May 12, 2004, at 11:53 AM, Chuck Hill wrote:
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&InquiryNu mbe
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().defaultEditingContex t()
,
"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.


References: 
 >Creating a data-dynamic link in a WORepetition? (From: Justin Tocci <email@hidden>)
 >Re: Creating a data-dynamic link in a WORepetition? (From: Chuck Hill <email@hidden>)
 >Re: Creating a data-dynamic link in a WORepetition? (From: Patrick Robinson <email@hidden>)

  • Prev by Date: Re: Creating a data-dynamic link in a WORepetition?
  • Next by Date: Override default WOHyperlink methods (was Re: Universal change for link URLs?)
  • Previous by thread: Re: Creating a data-dynamic link in a WORepetition?
  • Next by thread: Re: Creating a data-dynamic link in a WORepetition?
  • Index(es):
    • Date
    • Thread