Table autoformat styles, while document and table undergoes editorial

LO 25.2.7
Using table autoformat custom style while both document and table still undergoing editorial works.

A simple table of a number of rows and one column. The rows use two colors interchangeably however only regarding cell paragraph area fill: no color, then a grade of grey, no color, then a grade of grey, and so on. Rows use these colors interchangeably.
Table has been saved to table autoformat style.

Table may get long in terms of the number of rows. Table still undergoes editorial.
Table is also enabled to split over subsequent document pages.
Also the document may still undergo editorial in the way that document content above the table get a growth of its volume.

The intention is that every time a further row gets inserted into table the rows paragraph area fill color scheme get preserved: interchangeably no color then grey, and so on. The same requirement when document content above table increases the table splits over pages it keeps to maintain its desired color scheme row by row.

Furthermore table uses two types of table headers.
Table main header, to repeat if table splits to next page.
Secondary header that is deliminating vertical sections of table entries. Actually there are only two vertical sections of table content.
This header has own paragraph/character formatting. These headers differ to each other only by cell text. If table splits to next page the secondary header should also repeat, beside the major header. Secondary header should than have the content as he most recent occurrence (top down) on the previous page.
I understand that the point of secondary header might be a hard thing to have it automated.

At least the scheme of interchangeable colors inside cells (paragraph area fill color) should work automatically when document or table grows when editorial works are continued. So far no way found to have it working this way. Any ideas?

Tons of hours lost on consultations with DeepWiKI Devin trained on LO core code-base to find a solution.


Header, the main one and the secondary, never change their formatting. In whole table there are only two secondary headers in sequence as presented on attached sample.
It can happen that table splits when former page gets table row not colored at page bottom. It can also the opposite happen - greyed row at page bottom. Headers when the repeat on page split these don’t brake the row color shading scheme.
It will be acceptable if first row below second secondary, and below the first secondary due to page split header is always greyed, then the color pattern continues as described in this question.

I would advise against using Table styles except in limited circumstances. They overwrite styles and make changes hard because the table overwrites them when it is updated. You can look through some of the bug reports
Bug 107553 (Writer-Table-Styles) - [META] Writer table styles bugs and enhancements

Thanks for the hint. I grabbed for table autoformat style only in my hope to have a mean for goal achievement.

Presence of “main ans secondary headers” suggests to split your global table into separate smaller tables. Then your headers can be combined into top row or rows and your table is managed in the usual way.

You give the illusion of a single table by tuning spacing between the tables. Eliminate any paragraph between them so that you only deal with spacing around tables (without paragraphs complicating things).

PS: stop wasting your time with DeepWiki or other AI: they’ll only repeat what has already been released. They’ll never reckon they don’t know and will try to give ineffective suggestion in this case. They don’t understand the problem from the human point of view and can’t design an innovative solution.