Hi I have created a multifield inside another multifield where if I click "add" I will be able to enter two different levels of data any number of time. I have written a java code to fetch the values and wrote html to display them in tabular format. I am getting header correctly displayed but when displaying body different data is getting displayed in single row with ',' like below image.
How can I make the data display in different rows each ?
You need to get the data in a list format and then iterate over the list to print it in a order in <tr>.
Now it looks like the data is stored in a JSON format in multifield node and you are printing the complete string.
Are you using custom multifield? Please share the structure of the mulfield node in which the data is getting stored.
If it's getting stored in a Json format, you need to write a POJO class with the field values and then iterate over it and convert into a list. Now the same list can be used in HTL to print in the desired format.