I have a list control and i have set one of the fields in the row to onClick. what i need to do is to set session variables first. in other components i have been using an xbasic function but i am unsure how i would achieve the same using a list control
i did also look at adding a button to the list control but i am unsure how to set session variables and then redirect to another web page.
from the list control
i have used this in the past
i did also look at adding a button to the list control but i am unsure how to set session variables and then redirect to another web page.
from the list control
Code:
<div class="{dialog.style}ListItemLabelDetail" style="float: right;"><a href="crm.a5w" target="_self" onclick="$e.stopPropagation(event);" ontouchstart="$e.stopPropagation(event);">4 Tasks</a></div>
Code:
function SetSessionVar as c (e as p) dim ds as p ds = e.DataSubmitted dim session.caseparent as c = ds.CASE_PARENT_ID dim session.clientfirstname as c = ds.CLIENTFIRSTNAME dim session.clientsurname as c = ds.CLIENTSURNAME dim session.clientname2 as c = ds.CLIENTFIRSTNAME2 dim session.clientsurname2 as c = ds.CLIENTSURNAME2 dim session.caseref as c = ds.CASEREF dim session.clemail as c = ds.CLIENTEMAIL dim session.adviser as c = ds.ADVISER dim session.casemanager as c = ds.CASEMANAGER dim session.casestage as c = ds.STAGE dim session.fileloc as c = alltrim(ds.FILELOCATION)+chr(92)+alltrim(session.clientsurname)+alltrim(session.caseref) dim session.UserType as c = "Staff" SetSessionVar = "location.href='crm.a5w';" end function
Comment