Documentation for the parameters in the PDF_REPORT_CREATED event
Hi all,
I am trying to activate an event action that send the report “Customer Statement of Account” to the customers email address. But I am having a hard time getting it to work. All the parameters starting with pdf_ are blank.
Is there any documentation for the parameters?
Page 1 / 1
Hello @Hans Andersen ,
Have you checked the F1documentation page which I have attached below as a document?
Cheers!
@Imal Thiunuwan ,
Yes I have.
To my understanding, the pdf parameters are set through application code (most be IEE in this case). I therefore presumed that some of them had values. They are all empty.
I probably overlooksomething obvious.
Hello @Hans Andersen ,
Yes, the pdf_parameters are set by the code. The thing is that you will have to create separate event actions for each report that you want to send emails. You can change the values for the conditions by using the “Conditions for performing this action” option. Also, the parameter values can be assigned as mentioned in the F1Doc like below.
Defining default values for event parameters of the above PDF_REPORT_CREATED event can be done in Report Definition file (.rdf) of each report. Default values for PDF_PARAMETER_1 to PDF_PARAMETER_10 can be defined this way using interface in PdfReportEventParam logical unit.
You can set values as per your choice by using the above mentioned method or add conditions as mentioned in the f1 documentation.
Now you should be able to access the email from PDF_PARAMETER_1 of the event.
Cheers!
@Imal Thiunuwan,
Thanks for the link. Unfortunate, this is when there IS data in a pdf_parameter. In our case they are all empty.
We might have to do some coding as you suggest. It just puzzles me that it should be necessary. I have a feeling that something is wrong in our setup.
Hello @Hans Andersen,
I’m also having the same problem, were you able to solve this issue ?
Thank you.
Sort of..
I could not find a way to alter the content of the e-mail generated by “order report” or prevent it from sending the email.
Instead I made an event that sends out one more email to the customer. The results is that the employed ordering the report will receive 2 emails. The standard email from the system and a copy of the email going to the customer (this way the employee can see that the email was actually send to the customer.)
The code is a little complex, but here it is. Fill free to use it or ask questions.
select x.data into xml_ from xml_report_data x where x.result_key= '&RESULT_KEY';
x_:= xmltype.createxml(xml_);
select extractvalue(x_, '/CUST_STMT_ACCT_REP/CUSTOMERS/CUSTOMER/CUSTOMER_NO') into customer_id_ from dual;
select listagg(distinct value, ';') within group (order by value) into to_user_name_ from ( select value from customer_info_contact_cfv con inner join person_info_comm_method2 m on con.person_id = m.identity where con.customer_id=customer_id_ and m.method_id_db= 'E_MAIL' and con.cf$_receive_account_state_db= 'TRUE' union select value from COMM_METHOD_cfv c where c.identity =customer_id_ and c.PARTY_TYPE_DB='CUSTOMER' and c.method_id_db= 'E_MAIL' and c.cf$_receive_account_state_db= 'TRUE' ) t;
if (to_user_name_!=';') then to_user_name_:= to_user_name_ ||';'|| send_pdf_to_;
select customer_info_api.Get_Default_Language_Db(customer_id_) into lang_ from dual;