I have a profile document which has a table in it. And then I showed the table in rich text field on a normal document.
Now I placed a button “Add”. The functionality what I need to do is to append another set of table to the existing one without loosing the data filled out in first one.
See here for instructions on adding to a rich text field while a document is being edited.
As far as appending tables, the NotesRichTextItem class contains methods for appending tables or whole blocks of rich text copied from another document.