Multiple grids using advanced document templating

can we generate multiple grids using the advanced document template plugin? what is the xml and code syntax for that?

below is the syntax i was trying for the xml and not sure what the code we should use in the template.

I want developer tags to go into one grid.

Developer1 tags ro to go into second grid.

=<project><name>"test for document"</name>

<developer name='a1' lastName='test1' mail='test1@gmail.com' day='8/9/2018' />;

<developer name='b2' lastName='test2' mail='test2@gmail.com' day='8/9/2018' />;

<developer1 name='c3' lastName='test3' mail='test3@gmail.com' day='8/9/2018' />;

<developer1 name='d4' lastName='test4 mail='test4@gmail.com' day='8/9/2018' />;

</project>

Thanks in advance,

sindhu

  Discussion posts and replies are publicly visible

Parents
  • Hi Sindhu,

    Adding to the above comments, make sure your XML code should be formatted properly. Below is your XML code after few changes:

    "<project><name>test for document</name>

    <developer name='a1' lastName='test1' mail='test1@gmail.com' day='8/9/2018' />

    <developer name='b2' lastName='test2' mail='test2@gmail.com' day='8/9/2018' />

    <developer1 name='c3' lastName='test3' mail='test3@gmail.com' day='8/9/2018' />

    <developer1 name='d4' lastName='test4' mail='test4@gmail.com' day='8/9/2018' />

    </project>"

    The code we can use in the template for displaying data in separated grids as follows:

    developer:

    Name Last Name Mail Day
    «@before-row[#list doc.project.developer »«${d.@name}»«@after-row[/#list]» «${d.@lastName}» «${d.@mail}» «${d.@day}»

    developer1:

    Name Last Name Mail Day
    «@before-row[#list doc.project.developer1»«${d1.@name}»«@after-row[/#list]» «${d1.@lastName}» «${d1.@mail}» «${d1.@day}»

     

    Regards

    Vijay

     

     

  • 0
    A Score Level 1
    in reply to vijay

    venkatav thanks for the code. It generated two grids. But both the grids are having the data from the developer tag only.

    Can you please help.

Reply Children