Current position:  Home > Default > How to create a HTML Table in Workflow Notification ?

How to create a HTML Table in Workflow Notification ?

Time:November 30
Advertisement
Hi,
I have a requirement to display multiple records in a HTML table in Workflow Notification. I have developed the code. In my Notification, I am seeing HTML tags and not a formatted HTML report. Appreciate your help and comments.
The following is what I have done in WF.
1. Define attribute in WF of type Document
2. Define Message in Text Body ( Should i also copy the same thing in HTML Body ??)
The following is my PL/SQL
Variable l_table is defined as varchar2(30000)
-- HTML Table Heading
l_table := '<table><tr><td>Amount</td>
<td>Description</td>
<td>Type 1099</td>
</tr>';
WF_ENGINE.SetItemAttrText(itemtype,
itemkey,
'FRB_DISTRIBUTION_HISTORY',
l_table);
When I get a notification, I get the following sample
<table><tr><td>Amount</td>
<td>Description</td>
<td>Type 1099</td>
<td>Receipt Required Flag</td>
<td>Invoice Id</td>
<td>Invoice Distribution Id</td>
</tr><tr><td>100</td>
<td></td>
<td>MISC7</td>
<td></td>
<td>429684</td>
<td>464834</td>
</tr></table>
I am missing something, Can you please let me know, what am i missing.
Kiran
Advertisement
Hi Matt,
I am working on AP_WFAPPROVAL_PKG (Oracle EBS Invoice Approval Package).
I have defined a Workflow Attribute as Type 'Document' (in Workflow Builder)
In my AP_WFAPPROVAL_PKG Package, I am retrieving my values and returning it to a variable of type varchar2(32000) and seting the WF variable(displayed below).
WF_ENGINE.SetItemAttrText(itemtype,
itemkey,
'FRB_DISTRIBUTION_HISTORY', -- This is my WF Attribute of type 'Document'
l_table);
When I see the notification, i get the format displayed below (I do see the correct values generated, but they appear as tag, and not as a HTML Table Report)
<table><tr><td>Amount</td>
<td>Description</td>
<td>Type 1099</td>
<td>Receipt Required Flag</td>
<td>Invoice Id</td>
<td>Invoice Distribution Id</td>
</tr> <tr><td>60</td>
<td></td>
<td>MISC7</td>
<td></td>
<td>429681</td>
<td>464827</td>
</tr><tr><td>40</td>
<td></td>
<td>MISC7</td>
<td></td>
<td>429681</td>
<td>464828</td>
</tr>
Please advise
Kiran