How to display table on conformation task page .


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 .

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
  2. <html dir="ltr" xml:lang="en" xmlns="" lang="en">
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta name="description" content="Bonita Forms Application" />
  5. <link href="css/bonita_form_confirm.css" rel="stylesheet" type="text/css" />
  6. </head>
  7. <div class="bonita_form_container">
  8. <div id="bonita_form_confirm_message" class="bonita_form_confirm_message"></div>
  9. <tr>
  10. <th>TEST</th>
  11. <th>DATA FORM PROCESS VAR</th>
  12. </tr>
  13. <tr>
  14. <td>TEST</td>
  15. <td>$TEST</td>
  16. </tr>
  17. <tr>
  18. <td>TEST</td>
  19. <td>$TEST</td>
  20. </tr>
  21. <div id="bonita_form_confirm_todolist" class="bonita_form_confirm_todolist"></div>
  22. </div>
  23. </body>

1 answer



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:

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

Cheers, Renaud