Hi Experts,
I have created the custom business object with attachment using [DependentObject(AttachmentFolder)] node Attachment at root level in my custom business object i have add 2 actions 1) Generate PDF 2) Send Email with Attachment.
I have created the PDF form using create form and i have also design and Activate , Deploy Business Configuration.
my current functionality i have make preview button and it is working fine.
But
I want to generate PDF with content and after generating that pdf add under the AttachmentFolder component in my BO.
also i want to send email with attached pdf from AttachmentFolder component in my BO on action Send Email with Attachment.
To generate PDF using absl i have write code under the action Generate PDF
var FormTemplateLanguage = "E";
var PDF : BinaryObject;
var FormTemplateCode : OutputRequestFormTemplateCode;
FormTemplateCode.content = "Y1CRFP9I_P0FOT"; //Code is Form Template Header Code
// Reuse Service Call
PDF = OutputManagementUtilities.GetPDF(this,FormTemplateCode,FormTemplateLanguage);
I am using the yello highlighted code under the absl.
When i click on generate PDF button i can not see any pdf document in attachment component.
Can anyone help me why the above code is not add the pdf into the attachment component as shown above?
1) What are the steps required when i click on button "Generate PDF" the pdf create with content and add under the Attachment component ?
2) If my business object is below then how to use the attachment component ( Add generated PDF , read PDF to send email with attachment ) etc...
element data1 : LANGUAGEINDEPENDENT_MEDIUM_Text; | ||
element data2 : LANGUAGEINDEPENDENT_MEDIUM_Text; | ||
element data3 : LANGUAGEINDEPENDENT_MEDIUM_Text; | ||
element CFlag : Indicator; |
[DependentObject(AttachmentFolder)] node Attachment; | ||
action GeneratPDF; | ||
action SendEmail; |
3) I can able to Add any document from the Attachment component how to disable the "Add" button from the Attachment component because this component only for display
Kindly help me solve the above issue.
Many Thanks,
Mithun