How to display table on conformation task page .

1
0
-1

i m using bonitasoft community 6.3 on confromation i just downloaded defauly html generated. and add table on it , but now i want to display some process variable's data into that table . how can i get this process variable data from that html

pl pl specify need code .

how can i refactor this code .

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Bonita Forms Application" />
<link href="css/bonita_form_confirm.css" rel="stylesheet" type="text/css" />
</head>
<body>
        <div class="bonita_form_container">
                <div id="bonita_form_confirm_message" class="bonita_form_confirm_message"></div>
                <table>
  <tr>
    <th>TEST</th>
    <th>DATA FORM PROCESS VAR</th>
  </tr>
  <tr>
    <td>TEST</td>
    <td>$TEST</td>
  </tr>
  <tr>
    <td>TEST</td>
    <td>$TEST</td>
  </tr>
</table>
                <div id="bonita_form_confirm_todolist" class="bonita_form_confirm_todolist"></div>
        </div>
</body>

1 answer

1
0
-1

Hi,

The html template will allow you to change the position of the different div, add local javascript, change stylesheet, eventually adding links toward other application or show data from other sources.

If you want to display data from the process, the content will need to be managed from the "message confirmation" box below the selected "message layout". The value here will be then displayed in the html div id="bonita_form_confirm_message". For instance to show a table with two process data email & name, you can configure a groovy script such as:

return "<table><tr><td>name</td><td>"+name+"</td></tr><tr><td>email</td><td>"+email+"</td></tr></table>"

Cheers, Renaud

Notifications