UI-Table: how to use commands to add / update table content dynamically

Dear
I still have some difficulties I'm trying to learn. Please be able to share the example of the figure:

I thank you for your help.