I am trying to assign an email function to a button with active script that will generate an email using Outlook, TO the current record using the genie. When I run the button I receive the following error:
Script:OnPush line:26
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. (A secondary point of confusion) The error is saying �param_to not found�.
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)
It appears to me that the genie code creates a �_to_var� variable and then call the variable for the value to populate the address of the email.
Any recommendations and help are greatly appreciated?
Script:OnPush line:26
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. (A secondary point of confusion) The error is saying �param_to not found�.
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)
It appears to me that the genie code creates a �_to_var� variable and then call the variable for the value to populate the address of the email.
Any recommendations and help are greatly appreciated?
Comment