What I would like to do:
In the Edit Customer screen, I have a tab section called "Subaccounts" that has a grid that shows all subaccounts and associated information (active/inactive, phone number, email, etc.).
I would like the email field to be a hyperlink that launches a new email. The field is the Email field pulled from the Customer table.
In digging around, it appears the only way to do this is to use the SQL override for the email field in my grid.
In the CRM_CustomerList Table, there's a "Contact/Name/Email" field in the grid with the following SQL:
'<b>' + ISNULL(viewContacts.Name,'') + '</b>' + (CASE WHEN viewContacts.Title IS NULL OR viewContacts.Title='' THEN '' ELSE '<br />' + viewContacts.Title END) + (CASE WHEN viewContacts.Email IS NULL OR viewContacts.Email='' THEN '' ELSE '<br /><a href=''mailto:' + viewContacts.Email + ''' target=''new''>' + viewContacts.Email + '</a>' END)
Now, I just want the email portion of this to override that email address I'm pulling from the customer table. I'm assuming I need to do this instead of just making the email a hyperlink that launches a new email whan launched. I tried copying the last part of the SQL above:
CASE WHEN viewContacts.Email IS NULL OR viewContacts.Email='' THEN '' ELSE '<br /><a href=''mailto:' + viewContacts.Email + ''' target=''new''>' + viewContacts.Email + '</a>' END
but this does not appear to be correct and the grid didn't generate.
So, what's the proper/correct way to do this?
Thanks