Parameter passed to an HTML view via the URL keeps returning null values

Parameter passed to an HTML view via the URL keeps returning null values

Hi,

On my website, I have an embedded LIST view with a custom action next to each record called "print version".

The custom action is a simple openURL statement that opens an HTML view named "print-friendly" in a new window.

void Print (int ID)
{
    openUrl ((((((("http://creator.zoho.com/" + zoho.adminuser) + "/") + zoho.appname) + "/print/print_friendly?ID=") + input.ID), "new window");
}




When I click on the custom action button, the new window opens and the URL contains the ID of the selected record,

e.g. http://creator.zoho.com/<user>/<app>/print/print_friendly?ID=523554000000012170

The problem is that I can't get my print_friendly HTML view to read the ID in the URL. It keeps returning a null value, even though I can see it's not null.

Here's the start of my HTML code:

htmlpage print_friendly(ID)
displayname = "Print Friendly"
content
<%{
current_ID = input.ID;%>
Current ID: <%=current_ID%>






I've been struggling with this for hours. Maybe I'm missing the obvious here. Any advice greatly appreciated, thanks!