[Geoserver-users] How to configure a config.yaml in printing module?

Hi guys.

I want to build a multi rows table(examle in attached image) in my yaml configuration file. I spend couple of days but now can create just a single row table:

  • !columns
    config:
    borderWidth: 1
    borderColor: black
    align: LEFT
    cells:
  • padding: 5
    borderWidth: 0.5
    items:
  • !columns
    config:
    borderWidth: 1
    borderColor: black
    align: LEFT
    cells:
  • padding: 5
    borderWidth: 0.5
    items:
  • !row
    items:
  • !text
    text: “Hi”
  • !text
    text: “Hi”
  • !text
    text: “Hi”
  • !text
    text: “Hi”
  • !columns
    config:
    borderWidth: 1
    borderColor: black
    align: LEFT
    cells:
  • padding: 5
    borderWidth: 0.5
    items:
  • !text
    text: “${comment}”

Any advices?

table_yaml.jpg

Hi,
You may want to ask this on the MapFish list.

However, could you just glue together several single-row items? That’s how I create my boxes.
So the below creates two boxes that are next to each other:

#Date Box

  • !columns
    config:
    borderWidth: 1
    borderColor: black
    cells:
  • padding: 3
    paddingBottom: 4
    vertAlign: middle
    absoluteX: 400
    absoluteY: 115
    width: 65
    items:
  • !text
    fontSize: 10
    align: center
    text: ‘${now yyyy-MM-dd}’
    #Title Box
    #On the bottom so its borders are on top
    #Don’t show box if mapTitle not set.
  • !columns
    condition: mapTitle
    config:
    borderWidth: 1
    borderColor: black
    cells:
  • padding: 0
    paddingBottom: 3
    backgroundColor: white
    vertAlign: middle
    absoluteX: 31
    absoluteY: 115
    width: 370
    items:
  • !text
    fontSize: 14
    align: center
    text: ‘${mapTitle}’

This transmission is intended for the named addressee(s) only and may contain confidential, sensitive or personal information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 13 June 2014 12:33, Макс Кливер <dh0m0ch@…84…> wrote:

Hi guys.

I want to build a multi rows table(examle in attached image) in my yaml configuration file. I spend couple of days but now can create just a single row table:

  • !columns
    config:
    borderWidth: 1
    borderColor: black
    align: LEFT
    cells:
  • padding: 5
    borderWidth: 0.5
    items:
  • !columns
    config:
    borderWidth: 1
    borderColor: black
    align: LEFT
    cells:
  • padding: 5
    borderWidth: 0.5
    items:
  • !row
    items:
  • !text
    text: “Hi”
  • !text
    text: “Hi”
  • !text
    text: “Hi”
  • !text
    text: “Hi”
  • !columns
    config:
    borderWidth: 1
    borderColor: black
    align: LEFT
    cells:
  • padding: 5
    borderWidth: 0.5
    items:
  • !text
    text: “${comment}”

Any advices?


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hope that helps,
Jonathan