Populating Data To HTML field

Hi,

I am trying to display the breakdown of the accounts based on party members in Journal Entry. So, I was thinking of querying all the data from the database and display it on a HTML field on a table form so that user can see the total and the breakdown in the same page.

Are there any ways to populate the data to the HTML field or is there other better practice to solve this problem ?

Thanks

Add a few more details, a screenshot.

For example, I would like to query a list of data of different parties involved in this journal entry and populate into a data in the table under Payroll List. Currently, it is just plain HTML default text that I set.