Salesforce

HTML Template Structure - Print Data (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

HTML Template Structure - Print Data (Magic xpa 4.x)

When HTML is specified as the print data output type, Magic xpa displays the data in the HTML template below:

<html>

<head>

<title> </title>

</head>

<body>

<MGTABLE>

</body>

</html>

You can define the MGTABLE style tags, RowStyle and ColumnStyle, in the HTML Template, as described below.

RowStyle:

  • All – Magic xpa creates a specific style for each row and title.

  • EvenAndOdd – Magic xpa creates two styles, an MG_Even_Row and an MG_Odd_Row.

  • Equal – Magic xpa creates the same style for all rows and titles.

Column Style:

  • All – Magic xpa creates a specific style for each column.

  • Equal – Magic xpa creates the same style for all columns.

The example below has four columns in the table. The MGTABLE is defined as < MGTABLE RowStyle=ALL ColumnStyle=ALL >:

<table border="1" width="100%" class="MG_TABLE">

<THEAD>

<tr >

<td width="25%" class="MG_TITLE1">t1</td>

<td width="25%" class="MG_TITLE2">t2</td>

<td width="25%" class="MG_TITLE3">t3</td>

<td width="25%" class="MG_TITLE4">t4</td>

</tr>

</THEAD>

<TBODY>

<tr class="MG_ROW1">

<td width="25%" class="MG_DATA1">d11</td>

<td width="25%" class="MG_DATA2">d12</td>

<td width="25%" class="MG_DATA3">d13</td>

<td width="25%" class="MG_DATA4">d14</td>

</tr>

<tr class="MG_ROW2">

<td width="25%" class="MG_DATA1">d21</td>

<td width="25%" class="MG_DATA2">d22</td>

<td width="25%" class="MG_DATA3">d23</td>

<td width="25%" class="MG_DATA4">d24</td>

</tr>

</TBODY>

</table>

Reference
Attachment 
Attachment