This topic is locked

HTML Properties

12/20/2006 12:23:04 PM
ASPRunnerPro General questions
B
bsiinc author

When I look at the "view as" settings on the properties for a field in one of my tables called "Tracking", I can see a selection called HTML but when I choose that selection, I get the message "No Properties Found." I had hoped to create hyperlinks to tracking information that would vary based on the content of the field "tracking" (ie if tracking is like 1z, then UPS hyperlink, if like 502-, then another shipper hyperlink). I thought that I could do that by writing conditional html. Is there some way to add html to the properties of a field or is there another way to do this?
Thanks!

Sergey Kornilov admin 12/20/2006

View type HTML means field content will be displayed as is, without encoding HTML tags. This view type don't have any additional properties.
To write some conditional HTML use View type Custom.

B
bsiinc author 12/22/2006

I am hoping you can help me with this as I haven't been able to figure it out. I have a table called webshpdetail. This table has fields called Carrier and CusProNo. I would like for the appropriate carrier's tracking webpage to pop up with the cusprono (tracking number) already filled in. I can do this for UPS using the hyperlink property on the field cusprono, but I need to write code that will look at the "carrier" field and change the hyperlink to the correct carrier tracking page based on the carrier listed for each record.
Thank you!

Sergey Kornilov admin 12/22/2006

Use Custom View type to create a hyperlink that opens in a new window:

If your field contains UPS tracking number you can use something like this:

strValue = "<a target=_bliank href="http://www.ups.com..."; & strValue & ">Track</a>"