Divider

The divider tag use for determine delimiter template between two rendering result.

Note

Renderable Commands at last can contains only one divider tag.

structure of divider tag
1
2
3
<divider rowcount="">
     [template]
</divider>

Important

The divider tag has no child tags.

Attributes

rowcount number optional [##-notaion

Determine number of cell in generated output rows. Default value is 1.

template html [##-notation

Determine template that rendering process use it to format output result. In divider tag, child elements considered as template.

Note

For see more Information about [##-notaion,see [## Notation

Tip

divider tag use mostly with incomplete tag. For more information see Incomplete.

Remarks

Best usage of divider tag is in grid style result. For example result that present table tag. Suppose we have db.numbers data source like this:

db.numbers

id

Name

1

A

2

B

3

C

4

D

5

E

6

F

7

G

8

H

9

I

And a Print Command command like this:

1
2
3
4
5
6
7
<basis core="print" datamembername="db.numbers">

   <face replace="true">
      @id
   </face>

</basis>

Generated result is:

1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9

Now add a simple divider tag to command:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<basis core="print" datamembername="db.numbers">

   <face replace="true">
      @id
   </face>

   <divider>
      *
   </divider>

</basis>

Now generated result is:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
1
*
2
*
3
*
4
*
5
*
6
*
7
*
8
*
9

Now set rowcount to 2 for group each two result together:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<basis core="print" datamembername="db.numbers">

   <face replace="true">
      @id
   </face>

   <divider rowcount="2">
      *
   </divider>

</basis>

Generated result is:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
1
2
*
3
4
*
5
6
*
7
8
*
9

Now use divider in complex case for create table result. Edit command for generate result as table tag:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<basis core="print" datamembername="db.numbers">

   <layout>
      <table>
         <tr>@child</tr>
      </table>
   </layout>

   <face replace="true">
     <td>@id</td>
   </face>

</basis>

Result is:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<table>
   <tr>
      <td>1</td>
      <td>2</td>
      <td>3</td>
      <td>4</td>
      <td>5</td>
      <td>6</td>
      <td>7</td>
      <td>8</td>
      <td>9</td>
   </tr>
</table>

Now add divider for change tr tag to contain only three td in each row:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<basis core="print" datamembername="db.numbers">

   <layout>
      <table>
         <tr>@child</tr>
      </table>
   </layout>

   <face replace="true">
     <td>@id</td>
   </face>

   <divider rowcount="3">
     </tr><tr>
   </divider>

</basis>

In divider tag, first close previous tr and open new tr tag. Generated result is:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<table>
   <tr>
      <td>1</td>
      <td>2</td>
      <td>3</td>
   </tr>
   <tr>
      <td>4</td>
      <td>5</td>
      <td>6</td>
   </tr>
   <tr>
      <td>7</td>
      <td>8</td>
      <td>9</td>
   </tr>
</table>