Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot set the column headers in a nested table #72

Closed
wwalker opened this issue Nov 18, 2015 · 3 comments
Closed

cannot set the column headers in a nested table #72

wwalker opened this issue Nov 18, 2015 · 3 comments

Comments

@wwalker
Copy link

wwalker commented Nov 18, 2015

I have a template that I can find nothing wrong with (I've looked in it for the "text:span" bug (i've hit that one near constantly...) and that isn't it).

I'll attach the template. In the rendered versions, everything is good except the placeholder [CPA_DATE_TITLE] doesn't get replaced.

http://www.solid-constructs.com/odf/participant_detail_report.odt

@wwalker
Copy link
Author

wwalker commented Nov 18, 2015

An excerpt follows. 3 out f the 4 placeholders listed here get replaced.

    t.add_table("CPA_HEADERS", nil, :header => true) do |u|
      u.add_column("CPA_DATE_TITLE", title.date)
      u.add_column("CPA_REGULAR_TITLE", title.regular)
      u.add_column("CPA_BONUS_TITLE", title.bonus)
      u.add_column("CPA_REDEEM_TITLE", title.redeem)
    end

@wwalker wwalker changed the title one placeholder does not get populated cannot set the column headers in a nested table Nov 21, 2015
@wwalker
Copy link
Author

wwalker commented Nov 21, 2015

I believe I've narrowed this down to "you cannot have placeholders in the column header row of a nested table".

@wwalker
Copy link
Author

wwalker commented Nov 21, 2015

You can set column headers, but they must be set with add_field() in the main odt body. Therefore they cannot be dynamic (varying according to the data of the table they are nested in).

@sandrods sandrods closed this as completed Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants