Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Button in column
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Button in column
#31063
Button in column 12 Years, 3 Months ago Karma: 0
I need to make a button in one of my table columns link to a UPS tracking page with dynamic information from the table row.

I have tried this in the "Format" field for that columns formatting:
Code:

 <input type="submit" value="UPS" onClick="location.href='http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1={$columns:TrackingNumber}'"  />


The trouble is, the "TrackingNumber" value isn't being used in the link.

Can you help me?
The administrator has disabled public write access.
 
#31064
Re:Button in column 12 Years, 3 Months ago Karma: 760
Hello,

Could you provide a link to a page where we can see the problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#31065
Re:Button in column 12 Years, 3 Months ago Karma: 0
Unfortunately, it's on a user account page with protected data. Here's the image from the screen though.

Also, here's the code used in the query:
Code:

SELECT itemcode as 'Item Number', itemdescription as 'Item Name', Quantity as 'Qty Ordered', Price as 'Unit Price', CONCAT( '<a target="_blank" href="http://www.fedex.com/Tracking?language=english&cntry_code=us&tracknumbers=', `TrackingNumber`,'">', `TrackingNumber` , '</a>' ) AS 'FedEx Tracking', CONCAT( '<a target="_blank" href="http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=', `TrackingNumber`,'">', `TrackingNumber` , '</a>' ) AS 'Alt Tracking'
FROM `thisnameisbeinghidden`
WHERE docnum = {$REQUEST:currentPo}
AND UserID = {$UserLogin}




Just need to get a dynamic hyperlink from the button, using data from the TrackingNumber field.
Last Edit: 2012/08/28 16:32 By timtenn.
The administrator has disabled public write access.
 
#31066
Re:Button in column 12 Years, 3 Months ago Karma: 0
Is the key factor what's in the query for that column, or what's in the alias, or what's in the format field? Not sure the correct way I should be going about this. Can you advise?
The administrator has disabled public write access.
 
#31070
Re:Button in column 12 Years, 3 Months ago Karma: 760
It seems the query doesn't select "TrackingNumber" column so it can be used in "Format" parameter.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#31075
Re:Button in column 12 Years, 3 Months ago Karma: 0
What should the "Format" parameter look like if I had selected "TrackingNumber"? Or called a column that was, in fact selected?
The administrator has disabled public write access.
 
Go to topPage: 12