How fill table-field-type?

How can i fill table -field-type with values from a list??
def list=[[k1],[k2],[k3]]
i used to Bonita Studio 5.9.I have retrieve a list from db,and i would like to fill table type dynamically.
Should it use html-widget,Right??
What code is required??

Thank in advance,
Katerina Rombogiannaki

hello, could you please edit your question and add details about the version of Bonita, etc?