The method GetRelativeSecureLink supports an optional logical secure or non-secure parameter. The syntax is...
o.GetRelativeSecureLink(lcLink,llNonSecure)
I am trying to parameterize the llNonSecure value within an html template file referenced in an ExpandTemplate call. However, the call to GetRelativeSecureLink itself is in a tag within the template file. Which looks something like:
<a href="<%= Request.GetRelativeSecureLink([viewstatus.cfm], .t.) %>?clientid=<%=poAccount.pkid%>">
I'm looking to convert that " .t. " parameter in the line above to something like: <%=pcNonSecure%>
But i cannot get the syntax correct or determine the right construct, either thru nesting or concatenating parm values.
Just create a variable in the Process class (or in the script code above the expression):
In process code:
PRIVATE plNonSecure && not really necessary since it's private by default
plNonSecure = .T.
or alternately in the script page (using ExpandScript()
)
<%
plNonSecure = .T.
%>
Then in the template body with the HTML expression:
<a href="<%= Request.GetRelativeSecureLink([viewstatus.cfm], plNonSecure) %>?clientid=<%=poAccount.pkid%>">
+++ Rick ---