Hi all, first post, new user:
I am trying to create a button with active script that will generate an email, using Outlook, to the current record. Using the genie I have selected the email field and further wanted the contents of a specified field inserted into the body of the email. When I run the button I receive the following error:
Script:OnPush line:22
Email_client_external(param_to,param_subject,param_message,param_attachments,par
Variable �param_to� not found.
According to the error I would guess it is suggesting that line 22 has an issue. When I view the Xbasic code generated by the genie there is only 19 lines of code total. Am I translating this error code correctly?
The OnPush code reads:
'Send an e- mail message using the default external e-mail clilent.
if is_object(topparent.this) then
form_name = topparent.name()+".this"
else
form_name = ""
end if
Dim message_type as c
message_type = ""
_to_var = a5_eval_expression("=All_Cont_Email",local_variables())
param__to = _to_var
param_subject = "Referral activities update"
param_cc = ""
param_bcc = ""
message_var = a5_eval_expression("=Client_Table->Comments",local_variables())
param_message = message_var
attachment_list = ""
param_attachments = alltrim(attachment_list)
'Send the e-mail using the external e-mail client
email_client_external(param_to,param_subject,param_message,param_attachments,param_cc,param_bcc)
Any help is greatly appreciated?
I am trying to create a button with active script that will generate an email, using Outlook, to the current record. Using the genie I have selected the email field and further wanted the contents of a specified field inserted into the body of the email. When I run the button I receive the following error:
Script:OnPush line:22
Email_client_external(param_to,param_subject,param_message,param_attachments,par
Variable �param_to� not found.
According to the error I would guess it is suggesting that line 22 has an issue. When I view the Xbasic code generated by the genie there is only 19 lines of code total. Am I translating this error code correctly?
The OnPush code reads:
'Send an e- mail message using the default external e-mail clilent.
if is_object(topparent.this) then
form_name = topparent.name()+".this"
else
form_name = ""
end if
Dim message_type as c
message_type = ""
_to_var = a5_eval_expression("=All_Cont_Email",local_variables())
param__to = _to_var
param_subject = "Referral activities update"
param_cc = ""
param_bcc = ""
message_var = a5_eval_expression("=Client_Table->Comments",local_variables())
param_message = message_var
attachment_list = ""
param_attachments = alltrim(attachment_list)
'Send the e-mail using the external e-mail client
email_client_external(param_to,param_subject,param_message,param_attachments,param_cc,param_bcc)
Any help is greatly appreciated?
Comment