Passign params to HTML view
Hi :o)
I have created a HTML view that contains a form and a view.
This is to represent a hosting account and associated email addresses.
The form opens ok with the correct ID number in the address bar - but there is no data in the form and the view is not filtered.
The script behind the view is below:-
----------------------------------------------------
htmlpage Hosting_Detail(Id)
displayname = "Hosting Detail"
content
<%{%>
<div elName='zc-component' formLinkName='Hosting_account' params='zc_Header=true&zc_SuccMsg=Data Added Sucessfully!&zc_SubmitVal=Submit&zc_ResetVal=Reset&ID=<%=Id%>'>Loading ...</div>
<div elName='zc-component' viewLinkName='Email_accounts_View' params='zc_Header=true&zc_Footer=false&zc_SecHeader=false&ID=<%=ID%>'>Loading ...</div> <%}%>
I'm opening the HTML form with the function below which appears to be passing the value ok.
--------------------------------------------------------------------------------------------------------------------------------------
void display.OpenHosting(int Id)
{
openUrl("#View:Hosting_Detail?Id=" + input.Id + "&zc_Header=false&zc_Footer=false&zc_DelRec=false", "same window");
}
This is in turn called from the code behind the view
--------------------------------------------------------------------------
list Hosting_account_View
{
displayname = "Hosting account View"
show all rows from Hosting_account
(
Company
txtPrimaryDomain as "Primary domain"
txtCPAddress as "Control panel"
txtBillingAddress as "Billing Address"
Hosting_Provider as "Hosting Provider"
)
custom actions
(
"Edit Hosting"
(
function = display.OpenHosting(ID)
show action in view header = false
show action for each record = true
)
)
}
Any help would be appreciated please as pulling my hair out.
have downloaded the CRM app but can't work out how it works.
Many thanks
Tim :o)