Using lists

76 views
Skip to first unread message

Marc Hoeppner

unread,
Jul 18, 2018, 8:17:28 AM7/18/18
to Thinreports
Hi,

first of all, thanks for a really great tool!

I am struggling however to use the list elements. My use case:

report = Thinreports::Report.new


report
.use_layout 'default.tlf', :default => true
report
.use_layout 'cover.tlf', id: :cover


report
.start_new_page layout: :cover do |page|


  page
.item(:analysis_date).value(Time.now.strftime("%d/%m/%Y %H:%M"))
  page
.item(:patient_name).value(json["patient"])
  page
.item(:pipeline_version).value("1.0")

   
end


I would now like to include a table/list on that same page - I was able to draw a list placeholder about half a page high using thinreports editor. But I cannot figure out how to use that list from within my ruby code. All examples I found seem to assume that a list starts on a blank page and seems to belong to "report" and not "page".

Would it be possible to have an example how I can include a list on my cover page? Thank you!

/Marc

Marc Hoeppner

unread,
Jul 18, 2018, 8:36:30 AM7/18/18
to Thinreports
Nevermind, figured it out - forgot to add a text field to the detail section of the list ...
Reply all
Reply to author
Forward
0 new messages