Values on top of the page

57 views
Skip to first unread message

Gabriel Madeira

unread,
Aug 26, 2016, 1:29:04 PM8/26/16
to Thinreports
I have a report with values that I need to put on the top o the page not on header or details.
Using the code example below:

report.start_new_page
report.page.values printed_at: Time.now
@orders.each do |order|
  report.page.list(:list).add_row do |row|
    row.item(:col1).value order.name
    row.item(:col2).value order.num
  end
end
 How can I add values to fileds that are outside the rows ? I have a field called custumer_name How should I address it on top of the page ?

tks

Katsuya HIDAKA

unread,
Sep 5, 2016, 1:38:03 PM9/5/16
to Thinreports
@customers.each do |customer|
  report
.start_new_page
  report
.page.item(:customer_name).value = customer.name

  customer
.orders.each do |order|
    report
.list.add_row do |list|
     
# :
   
end
 
end
end

How is this?

2016年8月27日土曜日 2時29分04秒 UTC+9 Gabriel Madeira:
Reply all
Reply to author
Forward
0 new messages