Hi guys,
How can call a clientMethod, Method or classMethod from a html component?
I've this hyperlink acting as a button in a zen page and onclick I've tried the below which is actually executing the function but failing to call the classMethod line, and is there a way to just call clientMethod instead of javascript ?
<td><a id="btnLast" data-role="button" onclick="getWOs();" href="MyOrders.WO.cls">Last </a></td>
ClassMethod retGetWO(wo)
{
Set (WO,Note,Desc,out)=""
if MtcId'=""
{
&SQL(Select Wo into :WO From Purchace.Order Where id=:wo)
}
I WO'="" s %session.Data("WO")=WO }
function getWOs()
{
var wo=document.getElementById("WOs4").value
sessionStorage.setItem("sWO", wo);
#server(..retGetWO(wo))#;
}
Thanks