Skip to Content

how to create a HTML Table in Groovy for Hana Cloud Integration

Aug 02, 2017 at 08:17 AM


avatar image


Please could provide your inputs.

I have to generate a report after execution in Table format.


How do i generate a table using Groovy.


sampletable.png (41.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Patrick Weber Aug 02, 2017 at 09:17 AM

Hi Praveen,
Can you elaborate more on your requirement? Do you have a frontend system calling a backend resource to retrieve data to be rendered as a table?

In such case, the rendering logic is typically something you would want to implement in your frontend. HCI is a middleware, i.e. it facilitates the communication between systems but it is not the most obvious place to implement presentation layer logic.


10 |10000 characters needed characters left characters exceeded
Praveen Katkoori Aug 02, 2017 at 09:30 AM

Hi Patrick,

Thank you for reply.Basically i have implemented one interface. During the execution of the interface, we are capturing key points(firstname ad lastname) and those keys need to send to sftp in table format.

Like we have html code to generate table.

"<!DOCTYPE html>



<table style="width:100%">





</tr> </table>



Please could help me is there any way to do that?

Thank you.


Praveen Katkoori

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Here's a general intro into how to use Groovy in integration flows:

And here is an introduction into parsing XML with Groovy (assuming you get your firstname/lastname input in XML format):

You basically loop across your input (with firstname/last name) and build your HTML string that you then pass to the setBody method.


Thank you Patrick. This will help me.Thanks a lot.